[INFO] cloning repository https://github.com/smacpher/rusty_monkey [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/smacpher/rusty_monkey" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsmacpher%2Frusty_monkey", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsmacpher%2Frusty_monkey'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c1b181e9e00918e4ca1662eaf5ee2b6725981e64 [INFO] building smacpher/rusty_monkey against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsmacpher%2Frusty_monkey" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/smacpher/rusty_monkey on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/smacpher/rusty_monkey [INFO] finished tweaking git repo https://github.com/smacpher/rusty_monkey [INFO] tweaked toml for git repo https://github.com/smacpher/rusty_monkey written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/smacpher/rusty_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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "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-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6167a6ef4eb2ad9071138b2aeb51136f4fd0977bfe2389d04cb549eee4b0c780 [INFO] running `Command { std: "docker" "start" "-a" "6167a6ef4eb2ad9071138b2aeb51136f4fd0977bfe2389d04cb549eee4b0c780", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6167a6ef4eb2ad9071138b2aeb51136f4fd0977bfe2389d04cb549eee4b0c780", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6167a6ef4eb2ad9071138b2aeb51136f4fd0977bfe2389d04cb549eee4b0c780", kill_on_drop: false }` [INFO] [stdout] 6167a6ef4eb2ad9071138b2aeb51136f4fd0977bfe2389d04cb549eee4b0c780 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7e13e2ffbf41b510d752b2102830613e836bdc620ce2c9b367b12ee5e4029cf9 [INFO] running `Command { std: "docker" "start" "-a" "7e13e2ffbf41b510d752b2102830613e836bdc620ce2c9b367b12ee5e4029cf9", kill_on_drop: false }` [INFO] [stderr] Compiling rusty_monkey v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variant `NOT_EQ` should have an upper camel case name [INFO] [stdout] --> src/lexer.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | 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: variants `Program`, `Statement`, and `Expression` are never constructed [INFO] [stdout] --> src/ast.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum Node { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 9 | Program(Program), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 10 | Statement(Statement), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 11 | Expression(Expression), [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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `token_literal` and `string` are never used [INFO] [stdout] --> src/ast.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Node { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 15 | pub fn token_literal(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn string(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `token_literal`, and `string` are never used [INFO] [stdout] --> src/ast.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 43 | impl Program { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 44 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn token_literal(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn string(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `BlockStatement`, `LetStatement`, `ReturnStatement`, and `ExpressionStatement` are never constructed [INFO] [stdout] --> src/ast.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 69 | pub enum Statement { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 70 | BlockStatement(BlockStatement), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 71 | LetStatement(LetStatement), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 72 | ReturnStatement(ReturnStatement), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 73 | ExpressionStatement(ExpressionStatement), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Statement` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `token_literal` and `string` are never used [INFO] [stdout] --> src/ast.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 76 | impl Statement { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 77 | pub fn token_literal(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn string(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `token_literal` and `string` are never used [INFO] [stdout] --> src/ast.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 102 | impl BlockStatement { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] 103 | pub fn token_literal(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn string(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `token_literal` and `string` are never used [INFO] [stdout] --> src/ast.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 125 | impl LetStatement { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 126 | pub fn token_literal(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | pub fn string(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `token_literal` and `string` are never used [INFO] [stdout] --> src/ast.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 152 | impl ReturnStatement { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] 153 | pub fn token_literal(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 157 | pub fn string(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `token_literal` and `string` are never used [INFO] [stdout] --> src/ast.rs:179:12 [INFO] [stdout] | [INFO] [stdout] 178 | impl ExpressionStatement { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] 179 | pub fn token_literal(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | pub fn string(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/ast.rs:191:5 [INFO] [stdout] | [INFO] [stdout] 190 | pub enum Expression { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 191 | Empty, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 192 | Identifier(Identifier), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 193 | IntegerLiteral(IntegerLiteral), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 194 | BooleanLiteral(BooleanLiteral), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 195 | PrefixExpression(PrefixExpression), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 196 | InfixExpression(InfixExpression), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 197 | IfExpression(IfExpression), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 198 | FunctionLiteral(FunctionLiteral), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 199 | CallExpression(CallExpression), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `token_literal` and `string` are never used [INFO] [stdout] --> src/ast.rs:203:12 [INFO] [stdout] | [INFO] [stdout] 202 | impl Expression { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 203 | pub fn token_literal(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | pub fn string(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `token_literal` and `string` are never used [INFO] [stdout] --> src/ast.rs:242:12 [INFO] [stdout] | [INFO] [stdout] 241 | impl Identifier { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 242 | pub fn token_literal(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 246 | pub fn string(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `token_literal` and `string` are never used [INFO] [stdout] --> src/ast.rs:260:12 [INFO] [stdout] | [INFO] [stdout] 259 | impl IntegerLiteral { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] 260 | pub fn token_literal(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | pub fn string(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `token_literal` and `string` are never used [INFO] [stdout] --> src/ast.rs:278:12 [INFO] [stdout] | [INFO] [stdout] 277 | impl BooleanLiteral { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] 278 | pub fn token_literal(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 282 | pub fn string(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `token_literal` and `string` are never used [INFO] [stdout] --> src/ast.rs:301:12 [INFO] [stdout] | [INFO] [stdout] 300 | impl PrefixExpression { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] 301 | pub fn token_literal(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 305 | pub fn string(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `token_literal` and `string` are never used [INFO] [stdout] --> src/ast.rs:336:12 [INFO] [stdout] | [INFO] [stdout] 335 | impl InfixExpression { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] 336 | pub fn token_literal(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 340 | pub fn string(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `token_literal` and `string` are never used [INFO] [stdout] --> src/ast.rs:379:12 [INFO] [stdout] | [INFO] [stdout] 378 | impl IfExpression { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 379 | pub fn token_literal(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 383 | pub fn string(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `token_literal` and `string` are never used [INFO] [stdout] --> src/ast.rs:416:12 [INFO] [stdout] | [INFO] [stdout] 415 | impl FunctionLiteral { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] 416 | pub fn token_literal(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 420 | pub fn string(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `token_literal` and `string` are never used [INFO] [stdout] --> src/ast.rs:453:12 [INFO] [stdout] | [INFO] [stdout] 452 | impl CallExpression { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] 453 | pub fn token_literal(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 457 | pub fn string(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `PrefixParseFn` is never used [INFO] [stdout] --> src/parser.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | type PrefixParseFn = fn(&mut Parser<'_>) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `InfixParseFn` is never used [INFO] [stdout] --> src/parser.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | type InfixParseFn = fn(&mut Parser<'_>, Option) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LOWEST` is never used [INFO] [stdout] --> src/parser.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const LOWEST: u8 = 1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EQUALS` is never used [INFO] [stdout] --> src/parser.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const EQUALS: u8 = 2; // == [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LESSGREATER` is never used [INFO] [stdout] --> src/parser.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const LESSGREATER: u8 = 3; // > or < [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SUM` is never used [INFO] [stdout] --> src/parser.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const SUM: u8 = 4; // + [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PRODUCT` is never used [INFO] [stdout] --> src/parser.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const PRODUCT: u8 = 5; // * [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PREFIX` is never used [INFO] [stdout] --> src/parser.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const PREFIX: u8 = 6; // -x or !x [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CALL` is never used [INFO] [stdout] --> src/parser.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const CALL: u8 = 7; // foo(x) [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `token_precedence` is never used [INFO] [stdout] --> src/parser.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn token_precedence(token_type: lexer::TokenType) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Parser` is never constructed [INFO] [stdout] --> src/parser.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | struct Parser<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/parser.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl<'a> Parser<'a> { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 49 | pub fn new(lexer: &'a mut lexer::Lexer) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | fn next_token(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | fn expect_peek(&mut self, token_type: lexer::TokenType) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | fn peek_precedence(&mut self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | fn current_precedence(&mut self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | fn parse_integer_literal(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | fn parse_boolean_literal(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 212 | fn parse_identifier(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 219 | fn parse_grouped_expression(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 229 | fn parse_if_expression(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 270 | fn parse_function_literal(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 289 | fn parse_function_parameters(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 331 | fn parse_prefix_expression(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 350 | fn parse_infix_expression(&mut self, left: Option) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 377 | fn parse_expression(&mut self, precedence: u8) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 405 | fn parse_let_statement(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 434 | fn parse_return_statement(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 449 | fn parse_expression_statement(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 470 | fn parse_block_statement(&mut self) -> ast::BlockStatement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 488 | fn parse_statement(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 514 | pub fn parse_program(&mut self) -> ast::Program { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.25s [INFO] running `Command { std: "docker" "inspect" "7e13e2ffbf41b510d752b2102830613e836bdc620ce2c9b367b12ee5e4029cf9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7e13e2ffbf41b510d752b2102830613e836bdc620ce2c9b367b12ee5e4029cf9", kill_on_drop: false }` [INFO] [stdout] 7e13e2ffbf41b510d752b2102830613e836bdc620ce2c9b367b12ee5e4029cf9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8ba2b878d9d09384185340ea2638ae1e9aa6c3d23a148b7284445e5df1bb380d [INFO] running `Command { std: "docker" "start" "-a" "8ba2b878d9d09384185340ea2638ae1e9aa6c3d23a148b7284445e5df1bb380d", kill_on_drop: false }` [INFO] [stderr] Compiling rusty_monkey v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variant `NOT_EQ` should have an upper camel case name [INFO] [stdout] --> src/lexer.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | 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: variants `Program`, `Statement`, and `Expression` are never constructed [INFO] [stdout] --> src/ast.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum Node { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 9 | Program(Program), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 10 | Statement(Statement), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 11 | Expression(Expression), [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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `token_literal` and `string` are never used [INFO] [stdout] --> src/ast.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Node { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 15 | pub fn token_literal(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn string(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `token_literal` is never used [INFO] [stdout] --> src/ast.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 43 | impl Program { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn token_literal(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BlockStatement` is never constructed [INFO] [stdout] --> src/ast.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 69 | pub enum Statement { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 70 | BlockStatement(BlockStatement), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Statement` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `token_literal` is never used [INFO] [stdout] --> src/ast.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 76 | impl Statement { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 77 | pub fn token_literal(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `token_literal` is never used [INFO] [stdout] --> src/ast.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 102 | impl BlockStatement { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 103 | pub fn token_literal(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `token_literal` is never used [INFO] [stdout] --> src/ast.rs:179:12 [INFO] [stdout] | [INFO] [stdout] 178 | impl ExpressionStatement { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] 179 | pub fn token_literal(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `CallExpression` is never constructed [INFO] [stdout] --> src/ast.rs:199:5 [INFO] [stdout] | [INFO] [stdout] 190 | pub enum Expression { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 199 | CallExpression(CallExpression), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `token_literal` is never used [INFO] [stdout] --> src/ast.rs:203:12 [INFO] [stdout] | [INFO] [stdout] 202 | impl Expression { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 203 | pub fn token_literal(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `token_literal` is never used [INFO] [stdout] --> src/ast.rs:242:12 [INFO] [stdout] | [INFO] [stdout] 241 | impl Identifier { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 242 | pub fn token_literal(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `token_literal` is never used [INFO] [stdout] --> src/ast.rs:260:12 [INFO] [stdout] | [INFO] [stdout] 259 | impl IntegerLiteral { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 260 | pub fn token_literal(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `token_literal` is never used [INFO] [stdout] --> src/ast.rs:278:12 [INFO] [stdout] | [INFO] [stdout] 277 | impl BooleanLiteral { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 278 | pub fn token_literal(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `token_literal` is never used [INFO] [stdout] --> src/ast.rs:301:12 [INFO] [stdout] | [INFO] [stdout] 300 | impl PrefixExpression { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 301 | pub fn token_literal(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `token_literal` is never used [INFO] [stdout] --> src/ast.rs:336:12 [INFO] [stdout] | [INFO] [stdout] 335 | impl InfixExpression { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 336 | pub fn token_literal(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `token_literal` is never used [INFO] [stdout] --> src/ast.rs:379:12 [INFO] [stdout] | [INFO] [stdout] 378 | impl IfExpression { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 379 | pub fn token_literal(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `token_literal` is never used [INFO] [stdout] --> src/ast.rs:416:12 [INFO] [stdout] | [INFO] [stdout] 415 | impl FunctionLiteral { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 416 | pub fn token_literal(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `token_literal` is never used [INFO] [stdout] --> src/ast.rs:453:12 [INFO] [stdout] | [INFO] [stdout] 452 | impl CallExpression { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 453 | pub fn token_literal(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CALL` is never used [INFO] [stdout] --> src/parser.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const CALL: u8 = 7; // foo(x) [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Boolean` is never constructed [INFO] [stdout] --> src/parser/tests.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 8 | enum Operand { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 9 | Integer(i64), [INFO] [stdout] 10 | Boolean(bool), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Operand` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.87s [INFO] running `Command { std: "docker" "inspect" "8ba2b878d9d09384185340ea2638ae1e9aa6c3d23a148b7284445e5df1bb380d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ba2b878d9d09384185340ea2638ae1e9aa6c3d23a148b7284445e5df1bb380d", kill_on_drop: false }` [INFO] [stdout] 8ba2b878d9d09384185340ea2638ae1e9aa6c3d23a148b7284445e5df1bb380d