[INFO] cloning repository https://github.com/Kumac13/monkey [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Kumac13/monkey" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKumac13%2Fmonkey", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKumac13%2Fmonkey'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 04b6b10af8467f12efc8a7c071d953400ce8c7fd [INFO] checking Kumac13/monkey/04b6b10af8467f12efc8a7c071d953400ce8c7fd against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKumac13%2Fmonkey" "/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/Kumac13/monkey on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Kumac13/monkey [INFO] finished tweaking git repo https://github.com/Kumac13/monkey [INFO] tweaked toml for git repo https://github.com/Kumac13/monkey written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Kumac13/monkey 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a3c502a66b9de5799af188aa0823c1d44dd4b3a4ace3c0fe27fd8fb5f69f4027 [INFO] running `Command { std: "docker" "start" "-a" "a3c502a66b9de5799af188aa0823c1d44dd4b3a4ace3c0fe27fd8fb5f69f4027", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a3c502a66b9de5799af188aa0823c1d44dd4b3a4ace3c0fe27fd8fb5f69f4027", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a3c502a66b9de5799af188aa0823c1d44dd4b3a4ace3c0fe27fd8fb5f69f4027", kill_on_drop: false }` [INFO] [stdout] a3c502a66b9de5799af188aa0823c1d44dd4b3a4ace3c0fe27fd8fb5f69f4027 [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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 025bd306ab4c1706837ef13dd6a98f92040dfe12fa7a484ae2534327ef0cb5ea [INFO] running `Command { std: "docker" "start" "-a" "025bd306ab4c1706837ef13dd6a98f92040dfe12fa7a484ae2534327ef0cb5ea", kill_on_drop: false }` [INFO] [stderr] Checking monkey v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variant `NOT_EQ` should have an upper camel case name [INFO] [stdout] --> src/token.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | NOT_EQ, [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `NotEq` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NOT_EQ` should have an upper camel case name [INFO] [stdout] --> src/token.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | NOT_EQ, [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `NotEq` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function cannot return without recursing [INFO] [stdout] --> src/ast.rs:280:5 [INFO] [stdout] | [INFO] [stdout] 280 | fn token_literal(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stdout] 281 | self.token_literal().clone() [INFO] [stdout] | -------------------- recursive call site [INFO] [stdout] | [INFO] [stdout] = help: a `loop` may express intention better if this is on purpose [INFO] [stdout] = note: `#[warn(unconditional_recursion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `statement_node` is never used [INFO] [stdout] --> src/ast.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait Statement: Node + Debug { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] 10 | fn statement_node(&self); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `expression_node` is never used [INFO] [stdout] --> src/ast.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub trait Expression: Node + Debug { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] 14 | fn expression_node(&self); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/ast.rs:146:9 [INFO] [stdout] | [INFO] [stdout] 144 | pub struct IntegerLiteral { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 145 | pub token: Token, [INFO] [stdout] 146 | pub value: i64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IntegerLiteral` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/ast.rs:194:9 [INFO] [stdout] | [INFO] [stdout] 192 | pub struct Boolean { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 193 | pub token: Token, [INFO] [stdout] 194 | pub value: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Boolean` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/ast.rs:269:9 [INFO] [stdout] | [INFO] [stdout] 268 | pub struct IfExpression { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 269 | pub token: Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IfExpression` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnexpectedToken` is never constructed [INFO] [stdout] --> src/parser.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum ParseError { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 9 | UnexpectedToken(Token), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Parser` is never constructed [INFO] [stdout] --> src/parser.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Parser { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Parser` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/parser.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl Parser { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 27 | pub fn new(tokens: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | fn next(&mut self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | fn peek(&mut self) -> Option<&Token> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn parse(&mut self) -> Program { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | fn parse_program(&mut self) -> Program { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | fn parse_statement(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | fn parse_let_statement(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | fn parse_return_statement(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | fn parse_expression_statement(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | fn parse_block_statement(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | fn parse_expression(&mut self, precedence: Precedence) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | fn parse_prefix_expression(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 210 | fn parse_infix_expression( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 229 | fn parse_grouped_expression(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 241 | fn parse_if_expression(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 281 | fn parse_identifier(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 288 | fn parse_integer_literal(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 295 | fn parse_function_literal(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 317 | fn parse_function_parameters(&mut self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 353 | fn parse_boolean(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 360 | fn peek_token_is(&mut self, kind: TokenKind) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 364 | fn current_token_is(&mut self, kind: TokenKind) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 368 | fn expect_peek(&mut self, kind: TokenKind) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 382 | fn peek_precedence(&mut self) -> Precedence { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 389 | fn current_precedence(&mut self) -> Precedence { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `EOF` is never constructed [INFO] [stdout] --> src/token.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum TokenKind { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 5 | ILLEGAL, [INFO] [stdout] 6 | EOF, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenKind` 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: method `precedence` is never used [INFO] [stdout] --> src/token.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 75 | impl Token { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn precedence(&self) -> Precedence { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/token.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 102 | pub enum Precedence { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 103 | Lowest = 1, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 104 | Equals = 2, // == [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 105 | Lessgreater = 3, // > or < [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 106 | Sum = 4, // + [INFO] [stdout] | ^^^ [INFO] [stdout] 107 | Product = 5, // * [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 108 | Prefix = 6, // -X or !X [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 109 | Call = 7, // my_function(x){} [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: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function cannot return without recursing [INFO] [stdout] --> src/ast.rs:280:5 [INFO] [stdout] | [INFO] [stdout] 280 | fn token_literal(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stdout] 281 | self.token_literal().clone() [INFO] [stdout] | -------------------- recursive call site [INFO] [stdout] | [INFO] [stdout] = help: a `loop` may express intention better if this is on purpose [INFO] [stdout] = note: `#[warn(unconditional_recursion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `statement_node` is never used [INFO] [stdout] --> src/ast.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait Statement: Node + Debug { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] 10 | fn statement_node(&self); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `expression_node` is never used [INFO] [stdout] --> src/ast.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub trait Expression: Node + Debug { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] 14 | fn expression_node(&self); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/ast.rs:146:9 [INFO] [stdout] | [INFO] [stdout] 144 | pub struct IntegerLiteral { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 145 | pub token: Token, [INFO] [stdout] 146 | pub value: i64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IntegerLiteral` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/ast.rs:194:9 [INFO] [stdout] | [INFO] [stdout] 192 | pub struct Boolean { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 193 | pub token: Token, [INFO] [stdout] 194 | pub value: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Boolean` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/ast.rs:269:9 [INFO] [stdout] | [INFO] [stdout] 268 | pub struct IfExpression { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 269 | pub token: Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IfExpression` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnexpectedToken` is never constructed [INFO] [stdout] --> src/parser.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum ParseError { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 9 | UnexpectedToken(Token), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Call` is never constructed [INFO] [stdout] --> src/token.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 102 | pub enum Precedence { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 109 | Call = 7, // my_function(x){} [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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.28s [INFO] running `Command { std: "docker" "inspect" "025bd306ab4c1706837ef13dd6a98f92040dfe12fa7a484ae2534327ef0cb5ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "025bd306ab4c1706837ef13dd6a98f92040dfe12fa7a484ae2534327ef0cb5ea", kill_on_drop: false }` [INFO] [stdout] 025bd306ab4c1706837ef13dd6a98f92040dfe12fa7a484ae2534327ef0cb5ea