[INFO] cloning repository https://github.com/MahbodGhadiri/monkey_lang [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MahbodGhadiri/monkey_lang" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMahbodGhadiri%2Fmonkey_lang", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMahbodGhadiri%2Fmonkey_lang'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2509124ccd7428f76730e3a7da169c1acb5a1375 [INFO] checking MahbodGhadiri/monkey_lang against try#93086cfebfccb79083c59d0d3b2052944bba643c for pr-146440-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMahbodGhadiri%2Fmonkey_lang" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/MahbodGhadiri/monkey_lang [INFO] finished tweaking git repo https://github.com/MahbodGhadiri/monkey_lang [INFO] tweaked toml for git repo https://github.com/MahbodGhadiri/monkey_lang written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/MahbodGhadiri/monkey_lang on toolchain 93086cfebfccb79083c59d0d3b2052944bba643c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/MahbodGhadiri/monkey_lang 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" "+93086cfebfccb79083c59d0d3b2052944bba643c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a0b42cd6cb7cd13a7f827d1a2b514ade39e511d94a20829820e95574a4e4a958 [INFO] running `Command { std: "docker" "start" "-a" "a0b42cd6cb7cd13a7f827d1a2b514ade39e511d94a20829820e95574a4e4a958", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a0b42cd6cb7cd13a7f827d1a2b514ade39e511d94a20829820e95574a4e4a958", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a0b42cd6cb7cd13a7f827d1a2b514ade39e511d94a20829820e95574a4e4a958", kill_on_drop: false }` [INFO] [stdout] a0b42cd6cb7cd13a7f827d1a2b514ade39e511d94a20829820e95574a4e4a958 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 55b22b0b0fca69225166170c6413a56204495317162617a282a0ebb967c69f7b [INFO] running `Command { std: "docker" "start" "-a" "55b22b0b0fca69225166170c6413a56204495317162617a282a0ebb967c69f7b", kill_on_drop: false }` [INFO] [stderr] Checking monkey_lang v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: struct `Program` is never constructed [INFO] [stdout] --> src/ast/mod.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Program { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `pub` struct has private fields, no public constructor, and is not otherwise reachable through the external API, so consider providing a public constructor or removing it [INFO] [stdout] = note: `#[deny(unused_unconstructable_pub_structs)]` (part of `#[deny(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: struct `Program` is never constructed [INFO] [stdout] --> src/ast/mod.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Program { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `pub` struct has private fields, no public constructor, and is not otherwise reachable through the external API, so consider providing a public constructor or removing it [INFO] [stdout] = note: `#[deny(unused_unconstructable_pub_structs)]` (part of `#[deny(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/ast/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Node { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 5 | token: token::Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/ast/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Node { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 5 | token: token::Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_token` is never used [INFO] [stdout] --> src/ast/mod.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Node { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 13 | fn get_token(&self) -> &token::Token { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_token` is never used [INFO] [stdout] --> src/ast/mod.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Node { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 13 | fn get_token(&self) -> &token::Token { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `statements` is never read [INFO] [stdout] --> src/ast/mod.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Program { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 31 | statements: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `statements` is never read [INFO] [stdout] --> src/ast/mod.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Program { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 31 | statements: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_token` is never used [INFO] [stdout] --> src/ast/mod.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 34 | impl Program { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 35 | fn get_token(&self) -> Option<&Statement> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_token` is never used [INFO] [stdout] --> src/ast/mod.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 34 | impl Program { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 35 | fn get_token(&self) -> Option<&Statement> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `node`, `name`, and `value` are never read [INFO] [stdout] --> src/ast/mod.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct LetStatement { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 45 | node: Node, [INFO] [stdout] | ^^^^ [INFO] [stdout] 46 | name: token::Token, [INFO] [stdout] | ^^^^ [INFO] [stdout] 47 | value: Expression, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LetStatement` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `node`, `name`, and `value` are never read [INFO] [stdout] --> src/ast/mod.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct LetStatement { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 45 | node: Node, [INFO] [stdout] | ^^^^ [INFO] [stdout] 46 | name: token::Token, [INFO] [stdout] | ^^^^ [INFO] [stdout] 47 | value: Expression, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LetStatement` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `node` and `value` are never read [INFO] [stdout] --> src/ast/mod.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct ReturnStatement { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 52 | node: Node, [INFO] [stdout] | ^^^^ [INFO] [stdout] 53 | value: Expression, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ReturnStatement` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `node` and `value` are never read [INFO] [stdout] --> src/ast/mod.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct ReturnStatement { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 52 | node: Node, [INFO] [stdout] | ^^^^ [INFO] [stdout] 53 | value: Expression, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ReturnStatement` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `file` and `finish_char` are never read [INFO] [stdout] --> src/lexer/token.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct Token { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 45 | t_type: TokenType, [INFO] [stdout] 46 | file: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | finish_char: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `file` and `finish_char` are never read [INFO] [stdout] --> src/lexer/token.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct Token { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 45 | t_type: TokenType, [INFO] [stdout] 46 | file: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | finish_char: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `monkey_lang` (bin "monkey_lang" test) due to 1 previous error; 7 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `monkey_lang` (bin "monkey_lang") due to 1 previous error; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "55b22b0b0fca69225166170c6413a56204495317162617a282a0ebb967c69f7b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "55b22b0b0fca69225166170c6413a56204495317162617a282a0ebb967c69f7b", kill_on_drop: false }` [INFO] [stdout] 55b22b0b0fca69225166170c6413a56204495317162617a282a0ebb967c69f7b