[INFO] cloning repository https://github.com/ettolrach/sqarlet [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ettolrach/sqarlet" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fettolrach%2Fsqarlet", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fettolrach%2Fsqarlet'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e48970a6084543a59f6d328d5cfcd2322ea90c0c [INFO] checking ettolrach/sqarlet against try#50d7e48beb74b48bd17c3749bfb73843c9ae0166 for pr-151102 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fettolrach%2Fsqarlet" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ettolrach/sqarlet [INFO] finished tweaking git repo https://github.com/ettolrach/sqarlet [INFO] tweaked toml for git repo https://github.com/ettolrach/sqarlet written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ettolrach/sqarlet on toolchain 50d7e48beb74b48bd17c3749bfb73843c9ae0166 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+50d7e48beb74b48bd17c3749bfb73843c9ae0166" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ettolrach/sqarlet already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+50d7e48beb74b48bd17c3749bfb73843c9ae0166" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+50d7e48beb74b48bd17c3749bfb73843c9ae0166" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1002c9d68364cae03dd2b8b0a12b454145af7b1fec69c52ec505c9b679376603 [INFO] running `Command { std: "docker" "start" "-a" "1002c9d68364cae03dd2b8b0a12b454145af7b1fec69c52ec505c9b679376603", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1002c9d68364cae03dd2b8b0a12b454145af7b1fec69c52ec505c9b679376603", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1002c9d68364cae03dd2b8b0a12b454145af7b1fec69c52ec505c9b679376603", kill_on_drop: false }` [INFO] [stdout] 1002c9d68364cae03dd2b8b0a12b454145af7b1fec69c52ec505c9b679376603 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+50d7e48beb74b48bd17c3749bfb73843c9ae0166" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 64d5c1279fa8fb7f175afaa886c3b27575783124c84494d2a3f6ad7b321470fc [INFO] running `Command { std: "docker" "start" "-a" "64d5c1279fa8fb7f175afaa886c3b27575783124c84494d2a3f6ad7b321470fc", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking sqarl-implementation v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/codegen.rs:69:40 [INFO] [stdout] | [INFO] [stdout] 69 | crate::expr::ExprKind::Set(id, expr) => todo!(), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/codegen.rs:69:44 [INFO] [stdout] | [INFO] [stdout] 69 | crate::expr::ExprKind::Set(id, expr) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/codegen.rs:70:43 [INFO] [stdout] | [INFO] [stdout] 70 | crate::expr::ExprKind::Record(id, items) => todo!(), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `items` [INFO] [stdout] --> src/codegen.rs:70:47 [INFO] [stdout] | [INFO] [stdout] 70 | crate::expr::ExprKind::Record(id, items) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_items` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/codegen.rs:93:40 [INFO] [stdout] | [INFO] [stdout] 93 | crate::expr::ExprKind::For(id, expr, expr1, expr2, exprs) => todo!(), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/codegen.rs:93:44 [INFO] [stdout] | [INFO] [stdout] 93 | crate::expr::ExprKind::For(id, expr, expr1, expr2, exprs) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr1` [INFO] [stdout] --> src/codegen.rs:93:50 [INFO] [stdout] | [INFO] [stdout] 93 | crate::expr::ExprKind::For(id, expr, expr1, expr2, exprs) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_expr1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr2` [INFO] [stdout] --> src/codegen.rs:93:57 [INFO] [stdout] | [INFO] [stdout] 93 | crate::expr::ExprKind::For(id, expr, expr1, expr2, exprs) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_expr2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exprs` [INFO] [stdout] --> src/codegen.rs:93:64 [INFO] [stdout] | [INFO] [stdout] 93 | crate::expr::ExprKind::For(id, expr, expr1, expr2, exprs) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_exprs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/codegen.rs:94:44 [INFO] [stdout] | [INFO] [stdout] 94 | crate::expr::ExprKind::ForEach(id, expr, exprs) => todo!(), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/codegen.rs:94:48 [INFO] [stdout] | [INFO] [stdout] 94 | crate::expr::ExprKind::ForEach(id, expr, exprs) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exprs` [INFO] [stdout] --> src/codegen.rs:94:54 [INFO] [stdout] | [INFO] [stdout] 94 | crate::expr::ExprKind::ForEach(id, expr, exprs) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_exprs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/codegen.rs:95:44 [INFO] [stdout] | [INFO] [stdout] 95 | crate::expr::ExprKind::Receive(id) => todo!(), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/codegen.rs:96:42 [INFO] [stdout] | [INFO] [stdout] 96 | crate::expr::ExprKind::BinOp(expr, operator, expr1) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `operator` [INFO] [stdout] --> src/codegen.rs:96:48 [INFO] [stdout] | [INFO] [stdout] 96 | crate::expr::ExprKind::BinOp(expr, operator, expr1) => todo!(), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_operator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr1` [INFO] [stdout] --> src/codegen.rs:96:58 [INFO] [stdout] | [INFO] [stdout] 96 | crate::expr::ExprKind::BinOp(expr, operator, expr1) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_expr1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/lib.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn generate(s: &str) -> Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Generator` is never constructed [INFO] [stdout] --> src/codegen.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Generator { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `var`, `generate`, and `generate_several` are never used [INFO] [stdout] --> src/codegen.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 10 | impl Generator { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 11 | fn var(&mut self) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn generate( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | fn generate_several(&mut self, exprs: &[Expr], env: &mut HashMap) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_code` is never used [INFO] [stdout] --> src/codegen.rs:118:8 [INFO] [stdout] | [INFO] [stdout] 118 | pub fn generate_code(program: &[Expr]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DeclareFromKeyboard`, `Record`, `IfThenElse`, `While`, `Repeat`, and `ForEach` are never constructed [INFO] [stdout] --> src/expr.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub enum ExprKind { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 71 | DeclareFromKeyboard(Id, Option), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | Record(Id, Vec), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 76 | /// Conditional. [INFO] [stdout] 77 | IfThenElse(Box, Vec, Vec), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 78 | While(Box, Vec), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 79 | Repeat(Vec, Box), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 80 | For(Id, Box, Box, Option>, Vec), [INFO] [stdout] 81 | ForEach(Id, Box, Vec), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExprKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_from_keyboard` is never used [INFO] [stdout] --> src/prelude.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn read_from_keyboard() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Record` is never constructed [INFO] [stdout] --> src/types.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 118 | pub struct Record { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Class` is never constructed [INFO] [stdout] --> src/types.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | pub struct Class { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr:` in this pattern is redundant [INFO] [stdout] --> src/codegen.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | expr: expr, [INFO] [stdout] | ^^^^^^^^^^ help: use shorthand field pattern: `expr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_shorthand_field_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/codegen.rs:69:40 [INFO] [stdout] | [INFO] [stdout] 69 | crate::expr::ExprKind::Set(id, expr) => todo!(), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/codegen.rs:69:44 [INFO] [stdout] | [INFO] [stdout] 69 | crate::expr::ExprKind::Set(id, expr) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/codegen.rs:70:43 [INFO] [stdout] | [INFO] [stdout] 70 | crate::expr::ExprKind::Record(id, items) => todo!(), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `items` [INFO] [stdout] --> src/codegen.rs:70:47 [INFO] [stdout] | [INFO] [stdout] 70 | crate::expr::ExprKind::Record(id, items) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_items` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/codegen.rs:93:40 [INFO] [stdout] | [INFO] [stdout] 93 | crate::expr::ExprKind::For(id, expr, expr1, expr2, exprs) => todo!(), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/codegen.rs:93:44 [INFO] [stdout] | [INFO] [stdout] 93 | crate::expr::ExprKind::For(id, expr, expr1, expr2, exprs) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr1` [INFO] [stdout] --> src/codegen.rs:93:50 [INFO] [stdout] | [INFO] [stdout] 93 | crate::expr::ExprKind::For(id, expr, expr1, expr2, exprs) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_expr1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr2` [INFO] [stdout] --> src/codegen.rs:93:57 [INFO] [stdout] | [INFO] [stdout] 93 | crate::expr::ExprKind::For(id, expr, expr1, expr2, exprs) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_expr2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exprs` [INFO] [stdout] --> src/codegen.rs:93:64 [INFO] [stdout] | [INFO] [stdout] 93 | crate::expr::ExprKind::For(id, expr, expr1, expr2, exprs) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_exprs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/codegen.rs:94:44 [INFO] [stdout] | [INFO] [stdout] 94 | crate::expr::ExprKind::ForEach(id, expr, exprs) => todo!(), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/codegen.rs:94:48 [INFO] [stdout] | [INFO] [stdout] 94 | crate::expr::ExprKind::ForEach(id, expr, exprs) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exprs` [INFO] [stdout] --> src/codegen.rs:94:54 [INFO] [stdout] | [INFO] [stdout] 94 | crate::expr::ExprKind::ForEach(id, expr, exprs) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_exprs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/codegen.rs:95:44 [INFO] [stdout] | [INFO] [stdout] 95 | crate::expr::ExprKind::Receive(id) => todo!(), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/codegen.rs:96:42 [INFO] [stdout] | [INFO] [stdout] 96 | crate::expr::ExprKind::BinOp(expr, operator, expr1) => todo!(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `operator` [INFO] [stdout] --> src/codegen.rs:96:48 [INFO] [stdout] | [INFO] [stdout] 96 | crate::expr::ExprKind::BinOp(expr, operator, expr1) => todo!(), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_operator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr1` [INFO] [stdout] --> src/codegen.rs:96:58 [INFO] [stdout] | [INFO] [stdout] 96 | crate::expr::ExprKind::BinOp(expr, operator, expr1) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_expr1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/lib.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn generate(s: &str) -> Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Generator` is never constructed [INFO] [stdout] --> src/codegen.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Generator { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `var`, `generate`, and `generate_several` are never used [INFO] [stdout] --> src/codegen.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 10 | impl Generator { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 11 | fn var(&mut self) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn generate( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | fn generate_several(&mut self, exprs: &[Expr], env: &mut HashMap) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_code` is never used [INFO] [stdout] --> src/codegen.rs:118:8 [INFO] [stdout] | [INFO] [stdout] 118 | pub fn generate_code(program: &[Expr]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Operator` is never used [INFO] [stdout] --> src/expr.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum Operator { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `arg_types` and `result_type` are never used [INFO] [stdout] --> src/expr.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl Operator { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 37 | pub fn arg_types(&self) -> (Type, Type) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn result_type(&self) -> &Type { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ExprKind` is never used [INFO] [stdout] --> src/expr.rs:59:10 [INFO] [stdout] | [INFO] [stdout] 59 | pub enum ExprKind { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Expr` is never constructed [INFO] [stdout] --> src/expr.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 90 | pub struct Expr { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Position` is never constructed [INFO] [stdout] --> src/parse.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Position { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_from_keyboard` is never used [INFO] [stdout] --> src/prelude.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn read_from_keyboard() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TypeError` is never used [INFO] [stdout] --> src/typechecking.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum TypeError { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check` is never used [INFO] [stdout] --> src/typechecking.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn check<'a>(expr: &'a Expr, context: &'a mut HashMap) -> Result<&'a Type, TypeError> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_exprs` is never used [INFO] [stdout] --> src/typechecking.rs:187:4 [INFO] [stdout] | [INFO] [stdout] 187 | fn check_exprs(exprs: &[Expr], context: &mut HashMap) -> Result<(), TypeError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `typecheck_program` is never used [INFO] [stdout] --> src/typechecking.rs:194:8 [INFO] [stdout] | [INFO] [stdout] 194 | pub fn typecheck_program(exprs: &[Expr]) -> Result<(), TypeError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Record` is never constructed [INFO] [stdout] --> src/types.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 118 | pub struct Record { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Class` is never constructed [INFO] [stdout] --> src/types.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | pub struct Class { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr:` in this pattern is redundant [INFO] [stdout] --> src/codegen.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | expr: expr, [INFO] [stdout] | ^^^^^^^^^^ help: use shorthand field pattern: `expr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_shorthand_field_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.40s [INFO] running `Command { std: "docker" "inspect" "64d5c1279fa8fb7f175afaa886c3b27575783124c84494d2a3f6ad7b321470fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64d5c1279fa8fb7f175afaa886c3b27575783124c84494d2a3f6ad7b321470fc", kill_on_drop: false }` [INFO] [stdout] 64d5c1279fa8fb7f175afaa886c3b27575783124c84494d2a3f6ad7b321470fc