[INFO] cloning repository https://github.com/JonasFovea/monkey-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JonasFovea/monkey-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJonasFovea%2Fmonkey-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJonasFovea%2Fmonkey-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1201226a510c8c54f44aa58c68321a7dbdf5694f [INFO] checking JonasFovea/monkey-rs/1201226a510c8c54f44aa58c68321a7dbdf5694f against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJonasFovea%2Fmonkey-rs" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/JonasFovea/monkey-rs 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/JonasFovea/monkey-rs [INFO] finished tweaking git repo https://github.com/JonasFovea/monkey-rs [INFO] tweaked toml for git repo https://github.com/JonasFovea/monkey-rs written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/JonasFovea/monkey-rs 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-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 109a670fd0a67488f371bf8e2dc77aa48207905fe7eefc42c6f33eda2a6bb8aa [INFO] running `Command { std: "docker" "start" "-a" "109a670fd0a67488f371bf8e2dc77aa48207905fe7eefc42c6f33eda2a6bb8aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "109a670fd0a67488f371bf8e2dc77aa48207905fe7eefc42c6f33eda2a6bb8aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "109a670fd0a67488f371bf8e2dc77aa48207905fe7eefc42c6f33eda2a6bb8aa", kill_on_drop: false }` [INFO] [stdout] 109a670fd0a67488f371bf8e2dc77aa48207905fe7eefc42c6f33eda2a6bb8aa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 2fc40a675a2708f9087b314925a31fe458ea70e57a120c70477ee89efd02c03a [INFO] running `Command { std: "docker" "start" "-a" "2fc40a675a2708f9087b314925a31fe458ea70e57a120c70477ee89efd02c03a", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.0.98 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking gimli v0.28.1 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking rustc-demangle v0.1.24 [INFO] [stderr] Checking whoami v1.5.1 [INFO] [stderr] Checking miniz_oxide v0.7.2 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking argparse v0.2.2 [INFO] [stderr] Checking object v0.32.2 [INFO] [stderr] Compiling backtrace v0.3.71 [INFO] [stderr] Checking addr2line v0.21.0 [INFO] [stderr] Checking monkey-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `anyhow::Context` [INFO] [stdout] --> src/code/test.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Context; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Instructions`, `Opcode`, and `make` [INFO] [stdout] --> src/code/test.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::code::{make, Instructions, Opcode}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `lookup`, `make`, and `read_operands` [INFO] [stdout] --> src/compiler/test.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::code::{lookup, make, read_operands, Instructions, Opcode}; [INFO] [stdout] | ^^^^^^ ^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Scope`, `SymbolTable`, and `Symbol` [INFO] [stdout] --> src/compiler/test.rs:3:37 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::compiler::symbol_table::{Scope, Symbol, SymbolTable}; [INFO] [stdout] | ^^^^^ ^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/compiler/test.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Mutex` [INFO] [stdout] --> src/compiler/test.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Scope`, `SymbolTable`, and `Symbol` [INFO] [stdout] --> src/compiler/test_symbol_table.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::compiler::symbol_table::{Scope, Symbol, SymbolTable}; [INFO] [stdout] | ^^^^^ ^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/compiler/test_symbol_table.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/compiler/test_symbol_table.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Mutex` [INFO] [stdout] --> src/compiler/test_symbol_table.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_vec`, `join`, `to_string`, and `fmt_instruction` are never used [INFO] [stdout] --> src/code/mod.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Instructions { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn from_vec(vec: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn join(instruction_sets: Vec) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn to_string(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub(crate) fn fmt_instruction(definition: &Definition, operands: &Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/code/mod.rs:323:5 [INFO] [stdout] | [INFO] [stdout] 322 | pub struct Definition { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 323 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Definition` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lookup` is never used [INFO] [stdout] --> src/code/mod.rs:327:8 [INFO] [stdout] | [INFO] [stdout] 327 | pub fn lookup(byte: u8) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_operands` is never used [INFO] [stdout] --> src/code/mod.rs:357:8 [INFO] [stdout] | [INFO] [stdout] 357 | pub fn read_operands(definition: Definition, instructions: Instructions) -> (Vec, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CompilerTestCase` is never constructed [INFO] [stdout] --> src/compiler/test.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct CompilerTestCase { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_compiler_tests` is never used [INFO] [stdout] --> src/compiler/test.rs:994:4 [INFO] [stdout] | [INFO] [stdout] 994 | fn run_compiler_tests(tests: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse` is never used [INFO] [stdout] --> src/compiler/test.rs:1015:4 [INFO] [stdout] | [INFO] [stdout] 1015 | fn parse(input: &str) -> Program { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_integer_object` is never used [INFO] [stdout] --> src/compiler/test.rs:1021:4 [INFO] [stdout] | [INFO] [stdout] 1021 | fn test_integer_object(expected: i64, actual: &Object) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_string_object` is never used [INFO] [stdout] --> src/compiler/test.rs:1028:4 [INFO] [stdout] | [INFO] [stdout] 1028 | fn test_string_object(expected: &str, actual: &Object) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_instructions` is never used [INFO] [stdout] --> src/compiler/test.rs:1035:4 [INFO] [stdout] | [INFO] [stdout] 1035 | fn test_instructions(expected: Vec, actual: Instructions, test_case: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_constants` is never used [INFO] [stdout] --> src/compiler/test.rs:1048:4 [INFO] [stdout] | [INFO] [stdout] 1048 | fn test_constants(expected: Vec, actual: Vec, test_case: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse` is never used [INFO] [stdout] --> src/vm/test.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn parse(input: &str) -> Program { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_integer_object` is never used [INFO] [stdout] --> src/vm/test.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn test_integer_object(expected: i64, actual: &Object, test_no: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_boolean_object` is never used [INFO] [stdout] --> src/vm/test.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn test_boolean_object(expected: bool, actual: &Object, test_no: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_string_object` is never used [INFO] [stdout] --> src/vm/test.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn test_string_object(expected: &str, actual: &Object, test_no: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_array_object` is never used [INFO] [stdout] --> src/vm/test.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn test_array_object(objects: &[Object], actual: &Object, test_no: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_hash_object` is never used [INFO] [stdout] --> src/vm/test.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn test_hash_object(expected: &HashMap, actual: &Object, test_no: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ExpectError` is never used [INFO] [stdout] --> src/vm/test.rs:58:6 [INFO] [stdout] | [INFO] [stdout] 58 | enum ExpectError { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VMTestCase` is never constructed [INFO] [stdout] --> src/vm/test.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | struct VMTestCase { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_int_result_case`, `new_bool_result_case`, `new_string_result_case`, `new_array_result_case`, `new_null_result_case`, and `new_expected_error` are never used [INFO] [stdout] --> src/vm/test.rs:71:19 [INFO] [stdout] | [INFO] [stdout] 70 | impl VMTestCase { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 71 | pub(crate) fn new_int_result_case(input: &str, expected_int: i64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub(crate) fn new_bool_result_case(input: &str, expected_bool: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub(crate) fn new_string_result_case(input: &str, expected_string: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub(crate) fn new_array_result_case(input: &str, expected_array: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub(crate) fn new_null_result_case(input: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub(crate) fn new_expected_error(input: &str, err_msg: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_vm_tests` is never used [INFO] [stdout] --> src/vm/test.rs:118:4 [INFO] [stdout] | [INFO] [stdout] 118 | fn run_vm_tests(tests: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_expected_object` is never used [INFO] [stdout] --> src/vm/test.rs:161:4 [INFO] [stdout] | [INFO] [stdout] 161 | fn test_expected_object(expected: &Object, actual: &Object, test_no: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.95s [INFO] running `Command { std: "docker" "inspect" "2fc40a675a2708f9087b314925a31fe458ea70e57a120c70477ee89efd02c03a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2fc40a675a2708f9087b314925a31fe458ea70e57a120c70477ee89efd02c03a", kill_on_drop: false }` [INFO] [stdout] 2fc40a675a2708f9087b314925a31fe458ea70e57a120c70477ee89efd02c03a