[INFO] cloning repository https://github.com/aryuuu/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/aryuuu/monkey-lang" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faryuuu%2Fmonkey-lang", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faryuuu%2Fmonkey-lang'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 422b33a67b0d7afd78241aa8d9c2d79dc9ade897 [INFO] checking aryuuu/monkey-lang against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faryuuu%2Fmonkey-lang" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/aryuuu/monkey-lang on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/aryuuu/monkey-lang [INFO] finished tweaking git repo https://github.com/aryuuu/monkey-lang [INFO] tweaked toml for git repo https://github.com/aryuuu/monkey-lang written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/aryuuu/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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b8010320d4a73a7d4be56a06a8210e44c45937bde4703e05e54ae8387c2dd19f [INFO] running `Command { std: "docker" "start" "-a" "b8010320d4a73a7d4be56a06a8210e44c45937bde4703e05e54ae8387c2dd19f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b8010320d4a73a7d4be56a06a8210e44c45937bde4703e05e54ae8387c2dd19f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b8010320d4a73a7d4be56a06a8210e44c45937bde4703e05e54ae8387c2dd19f", kill_on_drop: false }` [INFO] [stdout] b8010320d4a73a7d4be56a06a8210e44c45937bde4703e05e54ae8387c2dd19f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d56add9aafe13aad992e761d17181af71aea7d4e76d34ac3ad441e077fd4ba20 [INFO] running `Command { std: "docker" "start" "-a" "d56add9aafe13aad992e761d17181af71aea7d4e76d34ac3ad441e077fd4ba20", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking phf_shared v0.11.2 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling syn v2.0.52 [INFO] [stderr] Compiling phf_macros v0.11.2 [INFO] [stderr] Checking phf v0.11.2 [INFO] [stderr] Checking monkey-lang v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::token` [INFO] [stdout] --> src/ast.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::token; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `lexer::Lexer` and `parser::Parser` [INFO] [stdout] --> src/evaluator/mod.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::{ast, lexer::Lexer, parser::Parser}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ast` [INFO] [stdout] --> src/repl.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::{ast, evaluator, parser::Parser}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::token::Token` [INFO] [stdout] --> src/repl.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::token::Token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::token` [INFO] [stdout] --> src/ast.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::token; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ast` [INFO] [stdout] --> src/repl.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::{ast, evaluator, parser::Parser}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::token::Token` [INFO] [stdout] --> src/repl.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::token::Token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/evaluator/mod.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/evaluator/mod.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 35 | ast::Statement::Expression(expr) => self.eval_expression_statement(expr), [INFO] [stdout] | -------------------------------- matches some of the same values [INFO] [stdout] 36 | ast::Statement::Return(expr) => self.eval_return_statement(expr), [INFO] [stdout] | ---------------------------- matches some of the same values [INFO] [stdout] 37 | ast::Statement::Let(ident, expr) => self.eval_let_statement(ident, expr), [INFO] [stdout] | -------------------------------- matches some of the same values [INFO] [stdout] 38 | _ => todo!(), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/evaluator/mod.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/evaluator/mod.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 44 | ast::Expression::Identifier(ident) => { [INFO] [stdout] | ---------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 48 | ast::Expression::String(string) => Some(object::Object::String(string)), [INFO] [stdout] | ------------------------------- matches some of the same values [INFO] [stdout] 49 | ast::Expression::Integer(val) => Some(object::Object::Integer(val as i64)), [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] 50 | ast::Expression::Boolean(val) => Some(object::Object::Boolean(val)), [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 88 | _ => todo!(), [INFO] [stdout] | ^ ...and 5 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/evaluator/mod.rs:187:13 [INFO] [stdout] | [INFO] [stdout] 187 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/evaluator/mod.rs:187:13 [INFO] [stdout] | [INFO] [stdout] 185 | ast::Prefix::Not => self.eval_not_operator_expression(right), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 186 | ast::Prefix::Minus => self.eval_minus_operator_expression(right), [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 187 | _ => todo!(), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Call` is never constructed [INFO] [stdout] --> src/ast.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 49 | pub enum Infix { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 60 | Call, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Infix` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Index` is never constructed [INFO] [stdout] --> src/ast.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 64 | pub enum Precedence { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 72 | Index, // array[index] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Precedence` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expression` [INFO] [stdout] --> src/parser.rs:858:34 [INFO] [stdout] | [INFO] [stdout] 858 | fn test_if_expression_helper(expression: &ast::Expression, expected: &ast::Expression) {} [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expression` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expected` [INFO] [stdout] --> src/parser.rs:858:64 [INFO] [stdout] | [INFO] [stdout] 858 | fn test_if_expression_helper(expression: &ast::Expression, expected: &ast::Expression) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expected` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/parser.rs:1280:13 [INFO] [stdout] | [INFO] [stdout] 1279 | ast::Identifier(name) => name, [INFO] [stdout] | --------------------- matches any value [INFO] [stdout] 1280 | _ => panic!("should be Identifier"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/evaluator/mod.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/evaluator/mod.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 35 | ast::Statement::Expression(expr) => self.eval_expression_statement(expr), [INFO] [stdout] | -------------------------------- matches some of the same values [INFO] [stdout] 36 | ast::Statement::Return(expr) => self.eval_return_statement(expr), [INFO] [stdout] | ---------------------------- matches some of the same values [INFO] [stdout] 37 | ast::Statement::Let(ident, expr) => self.eval_let_statement(ident, expr), [INFO] [stdout] | -------------------------------- matches some of the same values [INFO] [stdout] 38 | _ => todo!(), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/evaluator/mod.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/evaluator/mod.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 44 | ast::Expression::Identifier(ident) => { [INFO] [stdout] | ---------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 48 | ast::Expression::String(string) => Some(object::Object::String(string)), [INFO] [stdout] | ------------------------------- matches some of the same values [INFO] [stdout] 49 | ast::Expression::Integer(val) => Some(object::Object::Integer(val as i64)), [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] 50 | ast::Expression::Boolean(val) => Some(object::Object::Boolean(val)), [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 88 | _ => todo!(), [INFO] [stdout] | ^ ...and 5 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/evaluator/mod.rs:187:13 [INFO] [stdout] | [INFO] [stdout] 187 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/evaluator/mod.rs:187:13 [INFO] [stdout] | [INFO] [stdout] 185 | ast::Prefix::Not => self.eval_not_operator_expression(right), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 186 | ast::Prefix::Minus => self.eval_minus_operator_expression(right), [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 187 | _ => todo!(), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Call` is never constructed [INFO] [stdout] --> src/ast.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 49 | pub enum Infix { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 60 | Call, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Infix` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Index` is never constructed [INFO] [stdout] --> src/ast.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 64 | pub enum Precedence { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 72 | Index, // array[index] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Precedence` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_let_statement_helper` is never used [INFO] [stdout] --> src/parser.rs:1273:8 [INFO] [stdout] | [INFO] [stdout] 1273 | fn test_let_statement_helper(statement: ast::Statement, identifier: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.70s [INFO] running `Command { std: "docker" "inspect" "d56add9aafe13aad992e761d17181af71aea7d4e76d34ac3ad441e077fd4ba20", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d56add9aafe13aad992e761d17181af71aea7d4e76d34ac3ad441e077fd4ba20", kill_on_drop: false }` [INFO] [stdout] d56add9aafe13aad992e761d17181af71aea7d4e76d34ac3ad441e077fd4ba20