[INFO] cloning repository https://github.com/beoboo/monkey-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/beoboo/monkey-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbeoboo%2Fmonkey-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbeoboo%2Fmonkey-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ebdde1792827dcfb582f307ff0ec61e9ae0eb7dd [INFO] checking beoboo/monkey-rust against master#5518eaa946291f00471af8b254b2a1715f234882 for pr-120393 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbeoboo%2Fmonkey-rust" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/beoboo/monkey-rust on toolchain 5518eaa946291f00471af8b254b2a1715f234882 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/beoboo/monkey-rust [INFO] finished tweaking git repo https://github.com/beoboo/monkey-rust [INFO] tweaked toml for git repo https://github.com/beoboo/monkey-rust written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/beoboo/monkey-rust 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" "+5518eaa946291f00471af8b254b2a1715f234882" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded linkme-impl v0.2.7 [INFO] [stderr] Downloaded linkme v0.2.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c387ce61b64d5ef37b069d69c1b95ac5221aff5ac98dd2ab688cebe35e4782f5 [INFO] running `Command { std: "docker" "start" "-a" "c387ce61b64d5ef37b069d69c1b95ac5221aff5ac98dd2ab688cebe35e4782f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c387ce61b64d5ef37b069d69c1b95ac5221aff5ac98dd2ab688cebe35e4782f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c387ce61b64d5ef37b069d69c1b95ac5221aff5ac98dd2ab688cebe35e4782f5", kill_on_drop: false }` [INFO] [stdout] c387ce61b64d5ef37b069d69c1b95ac5221aff5ac98dd2ab688cebe35e4782f5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0e0aa5789301e2d8e8a9e47461ed6b3c301559eabf5dbc0e136defa17e605d06 [INFO] running `Command { std: "docker" "start" "-a" "0e0aa5789301e2d8e8a9e47461ed6b3c301559eabf5dbc0e136defa17e605d06", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.103 [INFO] [stderr] Compiling proc-macro2 v1.0.30 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.80 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking unicode-width v0.1.9 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking once_cell v1.8.0 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Checking users v0.11.0 [INFO] [stderr] Compiling linkme-impl v0.2.7 [INFO] [stderr] Compiling intertrait-macros v0.2.2 [INFO] [stderr] Checking linkme v0.2.7 [INFO] [stderr] Checking intertrait v0.2.2 [INFO] [stderr] Checking monkey v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `Disassembler` is never constructed [INFO] [stdout] --> src/disassembler.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Disassembler { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `disassemble`, `format_instruction`, `lookup`, and `read_operands` are never used [INFO] [stdout] --> src/disassembler.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Disassembler { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 9 | pub fn new(op_codes: OpCodes) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn disassemble(&self, instructions: Instructions) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn format_instruction(&self, definition: &Definition, operands: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn lookup(&self, op_code: &Byte) -> Option<&Definition> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn read_operands(&self, definition: &Definition, instructions: &[Byte]) -> (Vec, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4.48s [INFO] running `Command { std: "docker" "inspect" "0e0aa5789301e2d8e8a9e47461ed6b3c301559eabf5dbc0e136defa17e605d06", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0e0aa5789301e2d8e8a9e47461ed6b3c301559eabf5dbc0e136defa17e605d06", kill_on_drop: false }` [INFO] [stdout] 0e0aa5789301e2d8e8a9e47461ed6b3c301559eabf5dbc0e136defa17e605d06 [INFO] checking beoboo/monkey-rust against try#7622c0f807a4e13c4db886a1681bf343795692df+rustflags=-Dnon_local_definitions for pr-120393 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbeoboo%2Fmonkey-rust" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/beoboo/monkey-rust on toolchain 7622c0f807a4e13c4db886a1681bf343795692df [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/beoboo/monkey-rust [INFO] finished tweaking git repo https://github.com/beoboo/monkey-rust [INFO] tweaked toml for git repo https://github.com/beoboo/monkey-rust written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/beoboo/monkey-rust 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" "+7622c0f807a4e13c4db886a1681bf343795692df" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ef02326c22a8760602b127c9f7c7486e37f6f3261853e1478db3a9ec7ff696cf [INFO] running `Command { std: "docker" "start" "-a" "ef02326c22a8760602b127c9f7c7486e37f6f3261853e1478db3a9ec7ff696cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ef02326c22a8760602b127c9f7c7486e37f6f3261853e1478db3a9ec7ff696cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef02326c22a8760602b127c9f7c7486e37f6f3261853e1478db3a9ec7ff696cf", kill_on_drop: false }` [INFO] [stdout] ef02326c22a8760602b127c9f7c7486e37f6f3261853e1478db3a9ec7ff696cf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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 -Dnon_local_definitions" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4c8c0a77d6078842b3e9e5c38423f7e32e41116fe627d5b60abc5a6ed4f9a884 [INFO] running `Command { std: "docker" "start" "-a" "4c8c0a77d6078842b3e9e5c38423f7e32e41116fe627d5b60abc5a6ed4f9a884", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.103 [INFO] [stderr] Compiling proc-macro2 v1.0.30 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.80 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking unicode-width v0.1.9 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking once_cell v1.8.0 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking users v0.11.0 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling linkme-impl v0.2.7 [INFO] [stderr] Compiling intertrait-macros v0.2.2 [INFO] [stderr] Checking linkme v0.2.7 [INFO] [stderr] Checking intertrait v0.2.2 [INFO] [stderr] Checking monkey v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `Disassembler` is never constructed [INFO] [stdout] --> src/disassembler.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Disassembler { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `disassemble`, `format_instruction`, `lookup`, and `read_operands` are never used [INFO] [stdout] --> src/disassembler.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Disassembler { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 9 | pub fn new(op_codes: OpCodes) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn disassemble(&self, instructions: Instructions) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn format_instruction(&self, definition: &Definition, operands: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn lookup(&self, op_code: &Byte) -> Option<&Definition> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn read_operands(&self, definition: &Definition, instructions: &[Byte]) -> (Vec, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/op_code.rs:9:30 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Debug, Clone, Copy, FromPrimitive, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_FromPrimitive_FOR_OpCode` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: requested on the command line with `-D non-local-definitions` [INFO] [stdout] = note: this error originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `monkey` (bin "monkey") due to 2 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/op_code.rs:9:30 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Debug, Clone, Copy, FromPrimitive, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_FromPrimitive_FOR_OpCode` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: requested on the command line with `-D non-local-definitions` [INFO] [stdout] = note: this error originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `monkey` (bin "monkey" test) due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "4c8c0a77d6078842b3e9e5c38423f7e32e41116fe627d5b60abc5a6ed4f9a884", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c8c0a77d6078842b3e9e5c38423f7e32e41116fe627d5b60abc5a6ed4f9a884", kill_on_drop: false }` [INFO] [stdout] 4c8c0a77d6078842b3e9e5c38423f7e32e41116fe627d5b60abc5a6ed4f9a884