[INFO] cloning repository https://github.com/deepconcern/gameboy_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/deepconcern/gameboy_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdeepconcern%2Fgameboy_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdeepconcern%2Fgameboy_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2f50f57912b60d1b6a9c550f8ff067dd87aee639 [INFO] checking deepconcern/gameboy_rust against master#f9515fdd5aa132e27d9b580a35b27f4b453251c1 for pr-125923 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdeepconcern%2Fgameboy_rust" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/deepconcern/gameboy_rust on toolchain f9515fdd5aa132e27d9b580a35b27f4b453251c1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9515fdd5aa132e27d9b580a35b27f4b453251c1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/deepconcern/gameboy_rust [INFO] finished tweaking git repo https://github.com/deepconcern/gameboy_rust [INFO] tweaked toml for git repo https://github.com/deepconcern/gameboy_rust written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/deepconcern/gameboy_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" "+f9515fdd5aa132e27d9b580a35b27f4b453251c1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-0-tc1/source/emulation/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking deepconcern/gameboy_rust against try#71235522a9cf955f6b7ff56c0bfb2651ecd0180b for pr-125923 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdeepconcern%2Fgameboy_rust" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/deepconcern/gameboy_rust on toolchain 71235522a9cf955f6b7ff56c0bfb2651ecd0180b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+71235522a9cf955f6b7ff56c0bfb2651ecd0180b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/deepconcern/gameboy_rust [INFO] finished tweaking git repo https://github.com/deepconcern/gameboy_rust [INFO] tweaked toml for git repo https://github.com/deepconcern/gameboy_rust written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/deepconcern/gameboy_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" "+71235522a9cf955f6b7ff56c0bfb2651ecd0180b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-0-tc2/source/emulation/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+71235522a9cf955f6b7ff56c0bfb2651ecd0180b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cde1ed178adfbb8583d257222a532ad0d479481a76f0829c7079cec44735eff6 [INFO] running `Command { std: "docker" "start" "-a" "cde1ed178adfbb8583d257222a532ad0d479481a76f0829c7079cec44735eff6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cde1ed178adfbb8583d257222a532ad0d479481a76f0829c7079cec44735eff6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cde1ed178adfbb8583d257222a532ad0d479481a76f0829c7079cec44735eff6", kill_on_drop: false }` [INFO] [stdout] cde1ed178adfbb8583d257222a532ad0d479481a76f0829c7079cec44735eff6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+71235522a9cf955f6b7ff56c0bfb2651ecd0180b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 290ef8d9940f25cef7712bfc3a9a310d89b97f780339779367f4f2d483323765 [INFO] running `Command { std: "docker" "start" "-a" "290ef8d9940f25cef7712bfc3a9a310d89b97f780339779367f4f2d483323765", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/emulation/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.71 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling pkg-config v0.3.28 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling version-compare v0.1.1 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking bytemuck v1.14.0 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking smallvec v1.11.2 [INFO] [stderr] Compiling cpal v0.15.2 [INFO] [stderr] Checking encoding_rs v0.8.33 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking dasp_sample v0.11.0 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Compiling sdl2 v0.36.0 [INFO] [stderr] Checking hound v3.5.1 [INFO] [stderr] Checking claxon v0.4.3 [INFO] [stderr] Checking gameboy_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling sdl2-sys v0.36.0 [INFO] [stderr] Checking symphonia-core v0.5.3 [INFO] [stderr] Checking ogg v0.8.0 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling alsa-sys v0.3.1 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking lewton v0.10.2 [INFO] [stderr] Checking symphonia-metadata v0.5.3 [INFO] [stderr] Checking symphonia-bundle-mp3 v0.5.3 [INFO] [stderr] Checking num-complex v0.4.4 [INFO] [stderr] Checking nix v0.24.3 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking symphonia v0.5.3 [INFO] [stderr] Checking alsa v0.7.1 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Checking num v0.4.1 [INFO] [stderr] Checking rodio v0.17.3 [INFO] [stderr] Checking emulation v0.1.0 (/opt/rustwide/workdir/emulation) [INFO] [stdout] warning: constant `AUDIO_MASTER_CONTROL_REGISTER` is never used [INFO] [stdout] --> emulation/src/memory_component/audio_component.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub const AUDIO_MASTER_CONTROL_REGISTER: u16 = 0xff26u16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SOUND_PANNING_REGISTER` is never used [INFO] [stdout] --> emulation/src/memory_component/audio_component.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | pub const SOUND_PANNING_REGISTER: u16 = 0xff25u16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AudioMasterControlFlag` is never used [INFO] [stdout] --> emulation/src/memory_component/audio_component.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum AudioMasterControlFlag { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> emulation/src/condition.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Condition` [INFO] [stdout] 4 | #[repr(u8)] [INFO] [stdout] 5 | pub enum Condition { [INFO] [stdout] | --------- `Condition` is not local [INFO] [stdout] | [INFO] [stdout] = note: `impl` may be usable in bounds, etc. from outside the expression, which might e.g. make something constructible that previously wasn't, because it's still on a publicly-visible type [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> emulation/src/flag.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Flag` [INFO] [stdout] ... [INFO] [stdout] 4 | pub enum Flag { [INFO] [stdout] | ---- `Flag` is not local [INFO] [stdout] | [INFO] [stdout] = note: `impl` may be usable in bounds, etc. from outside the expression, which might e.g. make something constructible that previously wasn't, because it's still on a publicly-visible type [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> emulation/src/register.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | #[derive(Debug, Eq, FromPrimitive, Hash, PartialEq)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Register` [INFO] [stdout] 3 | #[repr(u8)] [INFO] [stdout] 4 | pub enum Register { [INFO] [stdout] | -------- `Register` is not local [INFO] [stdout] | [INFO] [stdout] = note: `impl` may be usable in bounds, etc. from outside the expression, which might e.g. make something constructible that previously wasn't, because it's still on a publicly-visible type [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> emulation/src/register.rs:38:21 [INFO] [stdout] | [INFO] [stdout] 38 | #[derive(Debug, Eq, FromPrimitive, Hash, PartialEq)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_RegisterPair` [INFO] [stdout] 39 | #[repr(u8)] [INFO] [stdout] 40 | pub enum RegisterPair { [INFO] [stdout] | ------------ `RegisterPair` is not local [INFO] [stdout] | [INFO] [stdout] = note: `impl` may be usable in bounds, etc. from outside the expression, which might e.g. make something constructible that previously wasn't, because it's still on a publicly-visible type [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `AUDIO_MASTER_CONTROL_REGISTER` is never used [INFO] [stdout] --> emulation/src/memory_component/audio_component.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub const AUDIO_MASTER_CONTROL_REGISTER: u16 = 0xff26u16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SOUND_PANNING_REGISTER` is never used [INFO] [stdout] --> emulation/src/memory_component/audio_component.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | pub const SOUND_PANNING_REGISTER: u16 = 0xff25u16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AudioMasterControlFlag` is never used [INFO] [stdout] --> emulation/src/memory_component/audio_component.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum AudioMasterControlFlag { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> emulation/src/condition.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Condition` [INFO] [stdout] 4 | #[repr(u8)] [INFO] [stdout] 5 | pub enum Condition { [INFO] [stdout] | --------- `Condition` is not local [INFO] [stdout] | [INFO] [stdout] = note: `impl` may be usable in bounds, etc. from outside the expression, which might e.g. make something constructible that previously wasn't, because it's still on a publicly-visible type [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> emulation/src/flag.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Flag` [INFO] [stdout] ... [INFO] [stdout] 4 | pub enum Flag { [INFO] [stdout] | ---- `Flag` is not local [INFO] [stdout] | [INFO] [stdout] = note: `impl` may be usable in bounds, etc. from outside the expression, which might e.g. make something constructible that previously wasn't, because it's still on a publicly-visible type [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> emulation/src/register.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | #[derive(Debug, Eq, FromPrimitive, Hash, PartialEq)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Register` [INFO] [stdout] 3 | #[repr(u8)] [INFO] [stdout] 4 | pub enum Register { [INFO] [stdout] | -------- `Register` is not local [INFO] [stdout] | [INFO] [stdout] = note: `impl` may be usable in bounds, etc. from outside the expression, which might e.g. make something constructible that previously wasn't, because it's still on a publicly-visible type [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> emulation/src/register.rs:38:21 [INFO] [stdout] | [INFO] [stdout] 38 | #[derive(Debug, Eq, FromPrimitive, Hash, PartialEq)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_RegisterPair` [INFO] [stdout] 39 | #[repr(u8)] [INFO] [stdout] 40 | pub enum RegisterPair { [INFO] [stdout] | ------------ `RegisterPair` is not local [INFO] [stdout] | [INFO] [stdout] = note: `impl` may be usable in bounds, etc. from outside the expression, which might e.g. make something constructible that previously wasn't, because it's still on a publicly-visible type [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking desktop v0.1.0 (/opt/rustwide/workdir/desktop) [INFO] [stdout] error[E0425]: cannot find value `opcode` in this scope [INFO] [stdout] --> emulation/tests/arithmetic_instruction_tests.rs:203:52 [INFO] [stdout] | [INFO] [stdout] 203 | let mut emulator = common::simple_emulator(opcode); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `register` in this scope [INFO] [stdout] --> emulation/tests/arithmetic_instruction_tests.rs:206:31 [INFO] [stdout] | [INFO] [stdout] 206 | emulator.set_register(register, b); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ADD_REGISTER_PAIR_TO_HL`, `ADD_WITH_CARRY_REGISTER_TO_A`, `COMPARE_HL_LOCATION_WITH_A`, `COMPARE_IMMEDIATE_N_WITH_A`, `COMPARE_REGISTER_WITH_A`, `DEC_HL_LOCATION`, `DEC_REGISTER_PAIR`, `DEC_REGISTER`, `INC_HL_LOCATION`, `INC_REGISTER_PAIR`, `INC_REGISTER`, `SUB_HL_LOCATION_FROM_A`, `SUB_IMMEDIATE_N_FROM_A`, `SUB_REGISTER_FROM_A`, `SUB_WITH_CARRY_HL_LOCATION_FROM_A`, `SUB_WITH_CARRY_IMMEDIATE_N_FROM_A`, and `SUB_WITH_CARRY_REGISTER_FROM_A` [INFO] [stdout] --> emulation/tests/arithmetic_instruction_tests.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | ADD_REGISTER_PAIR_TO_HL, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | ADD_WITH_CARRY_REGISTER_TO_A, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | COMPARE_HL_LOCATION_WITH_A, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | COMPARE_IMMEDIATE_N_WITH_A, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | COMPARE_REGISTER_WITH_A, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | DEC_HL_LOCATION, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 18 | DEC_REGISTER, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 19 | DEC_REGISTER_PAIR, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | INC_HL_LOCATION, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | INC_REGISTER, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 22 | INC_REGISTER_PAIR, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 23 | SUB_HL_LOCATION_FROM_A, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | SUB_IMMEDIATE_N_FROM_A, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 25 | SUB_REGISTER_FROM_A, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | SUB_WITH_CARRY_HL_LOCATION_FROM_A, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 27 | SUB_WITH_CARRY_IMMEDIATE_N_FROM_A, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 28 | SUB_WITH_CARRY_REGISTER_FROM_A, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_add_simple` in this scope [INFO] [stdout] --> emulation/tests/arithmetic_instruction_tests.rs:166:9 [INFO] [stdout] | [INFO] [stdout] 166 | test_add_simple(run); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_add_with_carry` in this scope [INFO] [stdout] --> emulation/tests/arithmetic_instruction_tests.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 42 | fn test_add_with_carry_flags(emulator: Emulator) { [INFO] [stdout] | ------------------------------------------------ similarly named function `test_add_with_carry_flags` defined here [INFO] [stdout] ... [INFO] [stdout] 171 | test_add_with_carry(run); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `test_add_with_carry_flags` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_add_with_half_carry` in this scope [INFO] [stdout] --> emulation/tests/arithmetic_instruction_tests.rs:176:9 [INFO] [stdout] | [INFO] [stdout] 49 | fn test_add_with_half_carry_flags(emulator: Emulator) { [INFO] [stdout] | ----------------------------------------------------- similarly named function `test_add_with_half_carry_flags` defined here [INFO] [stdout] ... [INFO] [stdout] 176 | test_add_with_half_carry(run); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `test_add_with_half_carry_flags` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_add_zeroed` in this scope [INFO] [stdout] --> emulation/tests/arithmetic_instruction_tests.rs:181:9 [INFO] [stdout] | [INFO] [stdout] 181 | test_add_zeroed(run); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_add_simple_results` in this scope [INFO] [stdout] --> emulation/tests/arithmetic_instruction_tests.rs:233:21 [INFO] [stdout] | [INFO] [stdout] 35 | fn test_add_simple_flags(emulator: Emulator) { [INFO] [stdout] | -------------------------------------------- similarly named function `test_add_simple_flags` defined here [INFO] [stdout] ... [INFO] [stdout] 233 | test_add_simple_results(emulator, with_carry) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `test_add_simple_flags` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_add_simple` in this scope [INFO] [stdout] --> emulation/tests/arithmetic_instruction_tests.rs:235:22 [INFO] [stdout] | [INFO] [stdout] 235 | _ => test_add_simple(opcode, run), [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_add_with_carry` in this scope [INFO] [stdout] --> emulation/tests/arithmetic_instruction_tests.rs:244:13 [INFO] [stdout] | [INFO] [stdout] 42 | fn test_add_with_carry_flags(emulator: Emulator) { [INFO] [stdout] | ------------------------------------------------ similarly named function `test_add_with_carry_flags` defined here [INFO] [stdout] ... [INFO] [stdout] 244 | test_add_with_carry(opcode, run); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `test_add_with_carry_flags` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_add_with_half_carry` in this scope [INFO] [stdout] --> emulation/tests/arithmetic_instruction_tests.rs:251:13 [INFO] [stdout] | [INFO] [stdout] 49 | fn test_add_with_half_carry_flags(emulator: Emulator) { [INFO] [stdout] | ----------------------------------------------------- similarly named function `test_add_with_half_carry_flags` defined here [INFO] [stdout] ... [INFO] [stdout] 251 | test_add_with_half_carry(opcode, run); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `test_add_with_half_carry_flags` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_add_zeroed` in this scope [INFO] [stdout] --> emulation/tests/arithmetic_instruction_tests.rs:258:13 [INFO] [stdout] | [INFO] [stdout] 258 | test_add_zeroed(opcode, run); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_adc_simple` in this scope [INFO] [stdout] --> emulation/tests/arithmetic_instruction_tests.rs:288:9 [INFO] [stdout] | [INFO] [stdout] 288 | test_adc_simple(run, ); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_adc_with_carry` in this scope [INFO] [stdout] --> emulation/tests/arithmetic_instruction_tests.rs:293:9 [INFO] [stdout] | [INFO] [stdout] 293 | test_adc_with_carry(run); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_adc_with_half_carry` in this scope [INFO] [stdout] --> emulation/tests/arithmetic_instruction_tests.rs:298:9 [INFO] [stdout] | [INFO] [stdout] 49 | fn test_add_with_half_carry_flags(emulator: Emulator) { [INFO] [stdout] | ----------------------------------------------------- similarly named function `test_add_with_half_carry_flags` defined here [INFO] [stdout] ... [INFO] [stdout] 298 | test_adc_with_half_carry(run); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `test_add_with_half_carry_flags` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_adc_zeroed` in this scope [INFO] [stdout] --> emulation/tests/arithmetic_instruction_tests.rs:303:9 [INFO] [stdout] | [INFO] [stdout] 303 | test_adc_zeroed(run); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_adc_simple` in this scope [INFO] [stdout] --> emulation/tests/arithmetic_instruction_tests.rs:332:9 [INFO] [stdout] | [INFO] [stdout] 332 | test_adc_simple(run); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_adc_with_carry` in this scope [INFO] [stdout] --> emulation/tests/arithmetic_instruction_tests.rs:337:9 [INFO] [stdout] | [INFO] [stdout] 337 | test_adc_with_carry(run); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_adc_with_half_carry` in this scope [INFO] [stdout] --> emulation/tests/arithmetic_instruction_tests.rs:342:9 [INFO] [stdout] | [INFO] [stdout] 49 | fn test_add_with_half_carry_flags(emulator: Emulator) { [INFO] [stdout] | ----------------------------------------------------- similarly named function `test_add_with_half_carry_flags` defined here [INFO] [stdout] ... [INFO] [stdout] 342 | test_adc_with_half_carry(run); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `test_add_with_half_carry_flags` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `test_adc_zeroed` in this scope [INFO] [stdout] --> emulation/tests/arithmetic_instruction_tests.rs:347:9 [INFO] [stdout] | [INFO] [stdout] 347 | test_adc_zeroed(run); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 19 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `emulation` (test "arithmetic_instruction_tests") due to 20 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "290ef8d9940f25cef7712bfc3a9a310d89b97f780339779367f4f2d483323765", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "290ef8d9940f25cef7712bfc3a9a310d89b97f780339779367f4f2d483323765", kill_on_drop: false }` [INFO] [stdout] 290ef8d9940f25cef7712bfc3a9a310d89b97f780339779367f4f2d483323765