[INFO] cloning repository https://github.com/sasakissa/monkey [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sasakissa/monkey" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsasakissa%2Fmonkey", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsasakissa%2Fmonkey'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8be2e4fa692d1fbffb85312284997cd17dfceed8 [INFO] testing sasakissa/monkey against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsasakissa%2Fmonkey" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sasakissa/monkey on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sasakissa/monkey [INFO] finished tweaking git repo https://github.com/sasakissa/monkey [INFO] tweaked toml for git repo https://github.com/sasakissa/monkey written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/sasakissa/monkey already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 40418315d58204c9f29d2941a1c425cd8fa65ae6620ed3f19d34fc0c672b4121 [INFO] running `Command { std: "docker" "start" "-a" "40418315d58204c9f29d2941a1c425cd8fa65ae6620ed3f19d34fc0c672b4121", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "40418315d58204c9f29d2941a1c425cd8fa65ae6620ed3f19d34fc0c672b4121", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "40418315d58204c9f29d2941a1c425cd8fa65ae6620ed3f19d34fc0c672b4121", kill_on_drop: false }` [INFO] [stdout] 40418315d58204c9f29d2941a1c425cd8fa65ae6620ed3f19d34fc0c672b4121 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 12282b697e8decaa4d7821870efa97002449793ba928bf97b0afa3f1bb517c90 [INFO] running `Command { std: "docker" "start" "-a" "12282b697e8decaa4d7821870efa97002449793ba928bf97b0afa3f1bb517c90", kill_on_drop: false }` [INFO] [stderr] Compiling monkey v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/ast.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::HashMap`, `error::Error` [INFO] [stdout] --> src/parser.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, error::Error}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::Node` [INFO] [stdout] --> src/parser.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::ast::Node; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/token.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NOT_EQ` should have an upper camel case name [INFO] [stdout] --> src/token.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | 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: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/repl.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn start(reader: &mut Read, writer: &mut Write) { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 5 - pub fn start(reader: &mut Read, writer: &mut Write) { [INFO] [stdout] 5 + pub fn start(reader: &mut dyn Read, writer: &mut Write) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/repl.rs:5:46 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn start(reader: &mut Read, writer: &mut Write) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 5 - pub fn start(reader: &mut Read, writer: &mut Write) { [INFO] [stdout] 5 + pub fn start(reader: &mut Read, writer: &mut dyn Write) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ident` [INFO] [stdout] --> src/parser.rs:145:26 [INFO] [stdout] | [INFO] [stdout] 145 | Token::IDENT(ident) => self.parse_identifier(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ident` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/parser.rs:146:24 [INFO] [stdout] | [INFO] [stdout] 146 | Token::INT(i) => self.parse_integer_literarl(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `writer` [INFO] [stdout] --> src/repl.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn start(reader: &mut Read, writer: &mut Write) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_writer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/token.rs:46:24 [INFO] [stdout] | [INFO] [stdout] 46 | Token::INT(i) => "int", [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `LOWEST` [INFO] [stdout] --> src/parser.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | const LOWEST: u8 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `EQUALS` [INFO] [stdout] --> src/parser.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | const EQUALS: u8 = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `LESSGREATER` [INFO] [stdout] --> src/parser.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | const LESSGREATER: u8 = 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SUM` [INFO] [stdout] --> src/parser.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | const SUM: u8 = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PRODUCT` [INFO] [stdout] --> src/parser.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | const PRODUCT: u8 = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PREFIX` [INFO] [stdout] --> src/parser.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | const PREFIX: u8 = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `CALL` [INFO] [stdout] --> src/parser.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | const CALL: u8 = 7; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `precedences` [INFO] [stdout] --> src/parser.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn precedences(token: &Token) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `l` [INFO] [stdout] --> src/parser.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | l: Lexer<'a>, [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] --> src/parser.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `cur_token` [INFO] [stdout] --> src/parser.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | cur_token: Token, [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] --> src/parser.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `peek_token` [INFO] [stdout] --> src/parser.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | peek_token: Token, [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] --> src/parser.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `errors` [INFO] [stdout] --> src/parser.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | errors: Vec, [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] --> src/parser.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/parser.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | fn new(l: Lexer<'a>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `next_token` [INFO] [stdout] --> src/parser.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | fn next_token(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_program` [INFO] [stdout] --> src/parser.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | fn parse_program(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_statement` [INFO] [stdout] --> src/parser.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | fn parse_statement(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_let_statement` [INFO] [stdout] --> src/parser.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | fn parse_let_statement(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_return_statement` [INFO] [stdout] --> src/parser.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | fn parse_return_statement(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cur_token_is` [INFO] [stdout] --> src/parser.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 113 | fn cur_token_is(&self, expected_token: Token) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek_token_is` [INFO] [stdout] --> src/parser.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | fn peek_token_is(&self, expected_token: &Token) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `expect_peek` [INFO] [stdout] --> src/parser.rs:121:8 [INFO] [stdout] | [INFO] [stdout] 121 | fn expect_peek(&mut self, expected_token: &Token) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_expression_statement` [INFO] [stdout] --> src/parser.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 132 | fn parse_expression_statement(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_expression` [INFO] [stdout] --> src/parser.rs:142:8 [INFO] [stdout] | [INFO] [stdout] 142 | fn parse_expression(&mut self, precedence: u8) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_identifier` [INFO] [stdout] --> src/parser.rs:182:8 [INFO] [stdout] | [INFO] [stdout] 182 | fn parse_identifier(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_integer_literarl` [INFO] [stdout] --> src/parser.rs:191:8 [INFO] [stdout] | [INFO] [stdout] 191 | fn parse_integer_literarl(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_boolean` [INFO] [stdout] --> src/parser.rs:200:8 [INFO] [stdout] | [INFO] [stdout] 200 | fn parse_boolean(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_prefix_expression` [INFO] [stdout] --> src/parser.rs:210:8 [INFO] [stdout] | [INFO] [stdout] 210 | fn parse_prefix_expression(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_infix_expression` [INFO] [stdout] --> src/parser.rs:223:8 [INFO] [stdout] | [INFO] [stdout] 223 | fn parse_infix_expression(&mut self, left: Expression) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_grouped_expression` [INFO] [stdout] --> src/parser.rs:235:8 [INFO] [stdout] | [INFO] [stdout] 235 | fn parse_grouped_expression(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_if_expression` [INFO] [stdout] --> src/parser.rs:244:8 [INFO] [stdout] | [INFO] [stdout] 244 | fn parse_if_expression(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_block_statement` [INFO] [stdout] --> src/parser.rs:274:8 [INFO] [stdout] | [INFO] [stdout] 274 | fn parse_block_statement(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_function` [INFO] [stdout] --> src/parser.rs:286:8 [INFO] [stdout] | [INFO] [stdout] 286 | fn parse_function(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_function_parameters` [INFO] [stdout] --> src/parser.rs:301:8 [INFO] [stdout] | [INFO] [stdout] 301 | fn parse_function_parameters(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_call_expression` [INFO] [stdout] --> src/parser.rs:326:8 [INFO] [stdout] | [INFO] [stdout] 326 | fn parse_call_expression(&mut self, function: Expression) -> Expression { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_call_arguments` [INFO] [stdout] --> src/parser.rs:336:8 [INFO] [stdout] | [INFO] [stdout] 336 | fn parse_call_arguments(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `errors` [INFO] [stdout] --> src/parser.rs:365:8 [INFO] [stdout] | [INFO] [stdout] 365 | fn errors(&self) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek_error` [INFO] [stdout] --> src/parser.rs:369:8 [INFO] [stdout] | [INFO] [stdout] 369 | fn peek_error(&mut self, expected_token: &Token) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek_precedence` [INFO] [stdout] --> src/parser.rs:377:8 [INFO] [stdout] | [INFO] [stdout] 377 | fn peek_precedence(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cur_precedence` [INFO] [stdout] --> src/parser.rs:382:8 [INFO] [stdout] | [INFO] [stdout] 382 | fn cur_precedence(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `no_prefix_parse_fn_error` [INFO] [stdout] --> src/parser.rs:387:8 [INFO] [stdout] | [INFO] [stdout] 387 | fn no_prefix_parse_fn_error(&mut self, token: &Token) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/repl.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | scanner.read_to_string(&mut buf); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 52 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.37s [INFO] running `Command { std: "docker" "inspect" "12282b697e8decaa4d7821870efa97002449793ba928bf97b0afa3f1bb517c90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "12282b697e8decaa4d7821870efa97002449793ba928bf97b0afa3f1bb517c90", kill_on_drop: false }` [INFO] [stdout] 12282b697e8decaa4d7821870efa97002449793ba928bf97b0afa3f1bb517c90 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 68be6efa894ff48aadca2751a22246e54e17c9cc2cab65ec1879cefa791da43e [INFO] running `Command { std: "docker" "start" "-a" "68be6efa894ff48aadca2751a22246e54e17c9cc2cab65ec1879cefa791da43e", kill_on_drop: false }` [INFO] [stderr] Compiling monkey v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `macos` in `os` [INFO] [stdout] --> src/parser.rs:396:18 [INFO] [stdout] | [INFO] [stdout] 396 | use std::os::macos::raw::stat; [INFO] [stdout] | ^^^^^ could not find `macos` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/ast.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::HashMap`, `error::Error` [INFO] [stdout] --> src/parser.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, error::Error}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ast::Node` [INFO] [stdout] --> src/parser.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::ast::Node; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/token.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NOT_EQ` should have an upper camel case name [INFO] [stdout] --> src/token.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | 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: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/repl.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn start(reader: &mut Read, writer: &mut Write) { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 5 - pub fn start(reader: &mut Read, writer: &mut Write) { [INFO] [stdout] 5 + pub fn start(reader: &mut dyn Read, writer: &mut Write) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/repl.rs:5:46 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn start(reader: &mut Read, writer: &mut Write) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 5 - pub fn start(reader: &mut Read, writer: &mut Write) { [INFO] [stdout] 5 + pub fn start(reader: &mut Read, writer: &mut dyn Write) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `monkey` due to 2 previous errors; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "68be6efa894ff48aadca2751a22246e54e17c9cc2cab65ec1879cefa791da43e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "68be6efa894ff48aadca2751a22246e54e17c9cc2cab65ec1879cefa791da43e", kill_on_drop: false }` [INFO] [stdout] 68be6efa894ff48aadca2751a22246e54e17c9cc2cab65ec1879cefa791da43e