[INFO] cloning repository https://github.com/fsommar/rustboi [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fsommar/rustboi" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffsommar%2Frustboi", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffsommar%2Frustboi'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] af01ff0477843146622a23e85101e4f212f088e1 [INFO] testing fsommar/rustboi against master#ebf0cf75d368c035f4c7e7246d203bd469ee4a51 for pr-137940-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffsommar%2Frustboi" "/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/fsommar/rustboi on toolchain ebf0cf75d368c035f4c7e7246d203bd469ee4a51 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ebf0cf75d368c035f4c7e7246d203bd469ee4a51" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/fsommar/rustboi [INFO] finished tweaking git repo https://github.com/fsommar/rustboi [INFO] tweaked toml for git repo https://github.com/fsommar/rustboi written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/fsommar/rustboi 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" "+ebf0cf75d368c035f4c7e7246d203bd469ee4a51" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded autocfg v0.1.5 [INFO] [stderr] Downloaded failure_derive v0.1.5 [INFO] [stderr] Downloaded num-derive v0.2.5 [INFO] [stderr] Downloaded num-traits v0.2.8 [INFO] [stderr] Downloaded cfg-if v0.1.9 [INFO] [stderr] Downloaded synstructure v0.10.2 [INFO] [stderr] Downloaded rustc-demangle v0.1.16 [INFO] [stderr] Downloaded failure v0.1.5 [INFO] [stderr] Downloaded quote v0.6.11 [INFO] [stderr] Downloaded cc v1.0.40 [INFO] [stderr] Downloaded syn v0.15.29 [INFO] [stderr] Downloaded backtrace v0.3.34 [INFO] [stderr] Downloaded proc-macro2 v0.4.27 [INFO] [stderr] Downloaded libc v0.2.61 [INFO] [stderr] Downloaded backtrace-sys v0.1.31 [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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+ebf0cf75d368c035f4c7e7246d203bd469ee4a51" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9ea85726f05dc8757759b12c8ab9d2b5b69092f8349b457bf41f58b1d1ed013e [INFO] running `Command { std: "docker" "start" "-a" "9ea85726f05dc8757759b12c8ab9d2b5b69092f8349b457bf41f58b1d1ed013e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9ea85726f05dc8757759b12c8ab9d2b5b69092f8349b457bf41f58b1d1ed013e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ea85726f05dc8757759b12c8ab9d2b5b69092f8349b457bf41f58b1d1ed013e", kill_on_drop: false }` [INFO] [stdout] 9ea85726f05dc8757759b12c8ab9d2b5b69092f8349b457bf41f58b1d1ed013e [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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+ebf0cf75d368c035f4c7e7246d203bd469ee4a51" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bd88b087a7dc631224cc3f9eb58c5dc7eb1cd1e312063476281a72ecfcb2f142 [INFO] running `Command { std: "docker" "start" "-a" "bd88b087a7dc631224cc3f9eb58c5dc7eb1cd1e312063476281a72ecfcb2f142", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v0.4.27 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling syn v0.15.29 [INFO] [stderr] Compiling libc v0.2.61 [INFO] [stderr] Compiling cc v1.0.40 [INFO] [stderr] Compiling failure_derive v0.1.5 [INFO] [stderr] Compiling autocfg v0.1.5 [INFO] [stderr] Compiling cfg-if v0.1.9 [INFO] [stderr] Compiling rustc-demangle v0.1.16 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling backtrace-sys v0.1.31 [INFO] [stderr] Compiling quote v0.6.11 [INFO] [stderr] Compiling backtrace v0.3.34 [INFO] [stderr] Compiling synstructure v0.10.2 [INFO] [stderr] Compiling failure v0.1.5 [INFO] [stderr] Compiling rustboi v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/gameboy/instr.rs:553:10 [INFO] [stdout] | [INFO] [stdout] 553 | #[derive(FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `FromPrimitive` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: 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: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` 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: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/gameboy/instr.rs:553:25 [INFO] [stdout] | [INFO] [stdout] 553 | #[derive(FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `ToPrimitive` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `toggle` is never used [INFO] [stdout] --> src/gameboy/cpu/flag.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 50 | impl Value { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn toggle(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `overflowing_sub` is never used [INFO] [stdout] --> src/gameboy/instr.rs:316:8 [INFO] [stdout] | [INFO] [stdout] 310 | trait Integer: num_traits::PrimInt + num_traits::Unsigned { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 316 | fn overflowing_sub(self, rhs: Self) -> (Self, bool); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `N`, `H`, `NN`, and `NH` are never constructed [INFO] [stdout] --> src/gameboy/instr.rs:462:5 [INFO] [stdout] | [INFO] [stdout] 459 | enum Flags { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 462 | N, [INFO] [stdout] | ^ [INFO] [stdout] 463 | H, [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 466 | NN, [INFO] [stdout] | ^^ [INFO] [stdout] 467 | NH, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `read_u8_mut` is never used [INFO] [stdout] --> src/gameboy/mem.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl MMU { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn read_u8_mut(&mut self, addr: u16) -> &mut u8 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/gameboy/mod.rs:16:60 [INFO] [stdout] | [INFO] [stdout] 16 | self.execute(opcode).unwrap_or_else(|e| panic!(e)); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 16 | self.execute(opcode).unwrap_or_else(|e| panic!("{}", e)); [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 16 - self.execute(opcode).unwrap_or_else(|e| panic!(e)); [INFO] [stdout] 16 + self.execute(opcode).unwrap_or_else(|e| std::panic::panic_any(e)); [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] --> src/gameboy/instr.rs:553:10 [INFO] [stdout] | [INFO] [stdout] 553 | #[derive(FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Carry` [INFO] [stdout] 554 | enum Carry { [INFO] [stdout] | ----- `Carry` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [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: 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: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [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] --> src/gameboy/instr.rs:553:25 [INFO] [stdout] | [INFO] [stdout] 553 | #[derive(FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_Carry` [INFO] [stdout] 554 | enum Carry { [INFO] [stdout] | ----- `Carry` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [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: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.25s [INFO] running `Command { std: "docker" "inspect" "bd88b087a7dc631224cc3f9eb58c5dc7eb1cd1e312063476281a72ecfcb2f142", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bd88b087a7dc631224cc3f9eb58c5dc7eb1cd1e312063476281a72ecfcb2f142", kill_on_drop: false }` [INFO] [stdout] bd88b087a7dc631224cc3f9eb58c5dc7eb1cd1e312063476281a72ecfcb2f142 [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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+ebf0cf75d368c035f4c7e7246d203bd469ee4a51" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 23e9ab95fe0dfeecf7954072de1eecaef3ad596131810e6f5ea21862a80f5a4e [INFO] running `Command { std: "docker" "start" "-a" "23e9ab95fe0dfeecf7954072de1eecaef3ad596131810e6f5ea21862a80f5a4e", kill_on_drop: false }` [INFO] [stderr] Compiling rustboi v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/gameboy/instr.rs:553:10 [INFO] [stdout] | [INFO] [stdout] 553 | #[derive(FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `FromPrimitive` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: 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: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` 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: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/gameboy/instr.rs:553:25 [INFO] [stdout] | [INFO] [stdout] 553 | #[derive(FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `ToPrimitive` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `overflowing_sub` is never used [INFO] [stdout] --> src/gameboy/instr.rs:316:8 [INFO] [stdout] | [INFO] [stdout] 310 | trait Integer: num_traits::PrimInt + num_traits::Unsigned { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 316 | fn overflowing_sub(self, rhs: Self) -> (Self, bool); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `N`, `H`, `NN`, and `NH` are never constructed [INFO] [stdout] --> src/gameboy/instr.rs:462:5 [INFO] [stdout] | [INFO] [stdout] 459 | enum Flags { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 462 | N, [INFO] [stdout] | ^ [INFO] [stdout] 463 | H, [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 466 | NN, [INFO] [stdout] | ^^ [INFO] [stdout] 467 | NH, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `read_u8_mut` is never used [INFO] [stdout] --> src/gameboy/mem.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl MMU { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn read_u8_mut(&mut self, addr: u16) -> &mut u8 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/gameboy/mod.rs:16:60 [INFO] [stdout] | [INFO] [stdout] 16 | self.execute(opcode).unwrap_or_else(|e| panic!(e)); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 16 | self.execute(opcode).unwrap_or_else(|e| panic!("{}", e)); [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 16 - self.execute(opcode).unwrap_or_else(|e| panic!(e)); [INFO] [stdout] 16 + self.execute(opcode).unwrap_or_else(|e| std::panic::panic_any(e)); [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] --> src/gameboy/instr.rs:553:10 [INFO] [stdout] | [INFO] [stdout] 553 | #[derive(FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Carry` [INFO] [stdout] 554 | enum Carry { [INFO] [stdout] | ----- `Carry` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [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: 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: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [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] --> src/gameboy/instr.rs:553:25 [INFO] [stdout] | [INFO] [stdout] 553 | #[derive(FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_Carry` [INFO] [stdout] 554 | enum Carry { [INFO] [stdout] | ----- `Carry` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [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: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.55s [INFO] running `Command { std: "docker" "inspect" "23e9ab95fe0dfeecf7954072de1eecaef3ad596131810e6f5ea21862a80f5a4e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "23e9ab95fe0dfeecf7954072de1eecaef3ad596131810e6f5ea21862a80f5a4e", kill_on_drop: false }` [INFO] [stdout] 23e9ab95fe0dfeecf7954072de1eecaef3ad596131810e6f5ea21862a80f5a4e [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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+ebf0cf75d368c035f4c7e7246d203bd469ee4a51" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 7cc003599fbbb0d384f2079f1a1c21f304fbd427d627725113d558cfae332b6b [INFO] running `Command { std: "docker" "start" "-a" "7cc003599fbbb0d384f2079f1a1c21f304fbd427d627725113d558cfae332b6b", kill_on_drop: false }` [INFO] [stderr] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stderr] --> src/gameboy/instr.rs:553:10 [INFO] [stderr] | [INFO] [stderr] 553 | #[derive(FromPrimitive, ToPrimitive)] [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `FromPrimitive` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: 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] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stderr] --> src/gameboy/instr.rs:553:25 [INFO] [stderr] | [INFO] [stderr] 553 | #[derive(FromPrimitive, ToPrimitive)] [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stderr] = help: try referring to `ToPrimitive` crate for guidance on how handle this unexpected cfg [INFO] [stderr] = help: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: method `overflowing_sub` is never used [INFO] [stderr] --> src/gameboy/instr.rs:316:8 [INFO] [stderr] | [INFO] [stderr] 310 | trait Integer: num_traits::PrimInt + num_traits::Unsigned { [INFO] [stderr] | ------- method in this trait [INFO] [stderr] ... [INFO] [stderr] 316 | fn overflowing_sub(self, rhs: Self) -> (Self, bool); [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variants `N`, `H`, `NN`, and `NH` are never constructed [INFO] [stderr] --> src/gameboy/instr.rs:462:5 [INFO] [stderr] | [INFO] [stderr] 459 | enum Flags { [INFO] [stderr] | ----- variants in this enum [INFO] [stderr] ... [INFO] [stderr] 462 | N, [INFO] [stderr] | ^ [INFO] [stderr] 463 | H, [INFO] [stderr] | ^ [INFO] [stderr] ... [INFO] [stderr] 466 | NN, [INFO] [stderr] | ^^ [INFO] [stderr] 467 | NH, [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: method `read_u8_mut` is never used [INFO] [stderr] --> src/gameboy/mem.rs:22:12 [INFO] [stderr] | [INFO] [stderr] 6 | impl MMU { [INFO] [stderr] | -------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 22 | pub fn read_u8_mut(&mut self, addr: u16) -> &mut u8 { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/gameboy/mod.rs:16:60 [INFO] [stderr] | [INFO] [stderr] 16 | self.execute(opcode).unwrap_or_else(|e| panic!(e)); [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stderr] help: add a "{}" format string to `Display` the message [INFO] [stderr] | [INFO] [stderr] 16 | self.execute(opcode).unwrap_or_else(|e| panic!("{}", e)); [INFO] [stderr] | +++++ [INFO] [stderr] help: or use std::panic::panic_any instead [INFO] [stderr] | [INFO] [stderr] 16 - self.execute(opcode).unwrap_or_else(|e| panic!(e)); [INFO] [stderr] 16 + self.execute(opcode).unwrap_or_else(|e| std::panic::panic_any(e)); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/gameboy/instr.rs:553:10 [INFO] [stderr] | [INFO] [stderr] 553 | #[derive(FromPrimitive, ToPrimitive)] [INFO] [stderr] | ^------------ [INFO] [stderr] | | [INFO] [stderr] | `FromPrimitive` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Carry` [INFO] [stderr] 554 | enum Carry { [INFO] [stderr] | ----- `Carry` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/gameboy/instr.rs:553:25 [INFO] [stderr] | [INFO] [stderr] 553 | #[derive(FromPrimitive, ToPrimitive)] [INFO] [stderr] | ^---------- [INFO] [stderr] | | [INFO] [stderr] | `ToPrimitive` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_Carry` [INFO] [stderr] 554 | enum Carry { [INFO] [stderr] | ----- `Carry` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stderr] = 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] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `rustboi` (bin "rustboi" test) generated 8 warnings (run `cargo fix --bin "rustboi" --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rustboi-2476dfe82421ab83) [INFO] [stdout] [INFO] [stdout] running 13 tests [INFO] [stdout] test gameboy::cpu::flag::test_flag_offsets ... ok [INFO] [stdout] test gameboy::cpu::flag::test_toggle ... ok [INFO] [stdout] test gameboy::cpu::register::tests::test_as_u16 ... ok [INFO] [stdout] test gameboy::cpu::flag::test_as_bool ... ok [INFO] [stdout] test gameboy::cpu::flag::test_set_reset ... ok [INFO] [stdout] test gameboy::cpu::register::tests::test_get_f_register ... ok [INFO] [stdout] test gameboy::cpu::register::tests::test_as_u16_mut ... ok [INFO] [stdout] test gameboy::cpu::flag::test_set_bool ... ok [INFO] [stdout] test gameboy::cpu::flag::test_sizes ... ok [INFO] [stdout] test gameboy::cpu::register::tests::test_lo_hi_mut ... ok [INFO] [stdout] test gameboy::cpu::register::tests::test_struct_sizes ... ok [INFO] [stdout] test gameboy::mem::test_write_u16 ... ok [INFO] [stdout] test gameboy::mem::test_read_u16 ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "7cc003599fbbb0d384f2079f1a1c21f304fbd427d627725113d558cfae332b6b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7cc003599fbbb0d384f2079f1a1c21f304fbd427d627725113d558cfae332b6b", kill_on_drop: false }` [INFO] [stdout] 7cc003599fbbb0d384f2079f1a1c21f304fbd427d627725113d558cfae332b6b