[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] checking fsommar/rustboi against master#5518eaa946291f00471af8b254b2a1715f234882 for pr-120393-1 [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 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/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" "+5518eaa946291f00471af8b254b2a1715f234882" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded synstructure v0.10.2 [INFO] [stderr] Downloaded failure_derive v0.1.5 [INFO] [stderr] Downloaded autocfg v0.1.5 [INFO] [stderr] Downloaded cc v1.0.40 [INFO] [stderr] Downloaded failure v0.1.5 [INFO] [stderr] Downloaded syn v0.15.29 [INFO] [stderr] Downloaded libc v0.2.61 [INFO] [stderr] Downloaded backtrace-sys v0.1.31 [INFO] [stderr] Downloaded backtrace v0.3.34 [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] 6e4d0eab5407493cd5a33b06926ad400a1ed7d43e4bb4189843433b95d9db66f [INFO] running `Command { std: "docker" "start" "-a" "6e4d0eab5407493cd5a33b06926ad400a1ed7d43e4bb4189843433b95d9db66f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6e4d0eab5407493cd5a33b06926ad400a1ed7d43e4bb4189843433b95d9db66f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6e4d0eab5407493cd5a33b06926ad400a1ed7d43e4bb4189843433b95d9db66f", kill_on_drop: false }` [INFO] [stdout] 6e4d0eab5407493cd5a33b06926ad400a1ed7d43e4bb4189843433b95d9db66f [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] 54dbe2d36b351ac6f272e9d586ae68cea0987f4847377d0a37b22cbcc587d7b0 [INFO] running `Command { std: "docker" "start" "-a" "54dbe2d36b351ac6f272e9d586ae68cea0987f4847377d0a37b22cbcc587d7b0", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v0.4.27 [INFO] [stderr] Compiling syn v0.15.29 [INFO] [stderr] Compiling cc v1.0.40 [INFO] [stderr] Compiling libc v0.2.61 [INFO] [stderr] Compiling failure_derive v0.1.5 [INFO] [stderr] Compiling autocfg v0.1.5 [INFO] [stderr] Checking cfg-if v0.1.9 [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] Checking backtrace v0.3.34 [INFO] [stderr] Compiling synstructure v0.10.2 [INFO] [stderr] Checking failure v0.1.5 [INFO] [stderr] Checking rustboi v0.1.0 (/opt/rustwide/workdir) [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: 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| std::panic::panic_any(e)); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [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] = note: `#[warn(dead_code)]` on by default [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| std::panic::panic_any(e)); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 8.52s [INFO] running `Command { std: "docker" "inspect" "54dbe2d36b351ac6f272e9d586ae68cea0987f4847377d0a37b22cbcc587d7b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "54dbe2d36b351ac6f272e9d586ae68cea0987f4847377d0a37b22cbcc587d7b0", kill_on_drop: false }` [INFO] [stdout] 54dbe2d36b351ac6f272e9d586ae68cea0987f4847377d0a37b22cbcc587d7b0 [INFO] checking fsommar/rustboi against try#7622c0f807a4e13c4db886a1681bf343795692df+rustflags=-Dnon_local_definitions for pr-120393-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffsommar%2Frustboi" "/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/fsommar/rustboi 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/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-tc2/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" "+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] e453ec86019279001405e2283e3c76691ff6e66ee01f86b47f5a37076093d245 [INFO] running `Command { std: "docker" "start" "-a" "e453ec86019279001405e2283e3c76691ff6e66ee01f86b47f5a37076093d245", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e453ec86019279001405e2283e3c76691ff6e66ee01f86b47f5a37076093d245", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e453ec86019279001405e2283e3c76691ff6e66ee01f86b47f5a37076093d245", kill_on_drop: false }` [INFO] [stdout] e453ec86019279001405e2283e3c76691ff6e66ee01f86b47f5a37076093d245 [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] 82aff2a933f022c438d7953dedde709de80a06a752b0c71e9e92dcc6288dead8 [INFO] running `Command { std: "docker" "start" "-a" "82aff2a933f022c438d7953dedde709de80a06a752b0c71e9e92dcc6288dead8", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v0.4.27 [INFO] [stderr] Compiling syn v0.15.29 [INFO] [stderr] Compiling cc v1.0.40 [INFO] [stderr] Compiling libc v0.2.61 [INFO] [stderr] Compiling autocfg v0.1.5 [INFO] [stderr] Compiling failure_derive v0.1.5 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Checking cfg-if v0.1.9 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling quote v0.6.11 [INFO] [stderr] Compiling backtrace-sys v0.1.31 [INFO] [stderr] Checking backtrace v0.3.34 [INFO] [stderr] Compiling synstructure v0.10.2 [INFO] [stderr] Checking failure v0.1.5 [INFO] [stderr] Checking rustboi v0.1.0 (/opt/rustwide/workdir) [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: 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| std::panic::panic_any(e)); [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/gameboy/instr.rs:553:10 [INFO] [stdout] | [INFO] [stdout] 553 | #[derive(FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_FromPrimitive_FOR_Carry` [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: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/gameboy/instr.rs:553:25 [INFO] [stdout] | [INFO] [stdout] 553 | #[derive(FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_ToPrimitive_FOR_Carry` [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: this error originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rustboi` (bin "rustboi") due to 3 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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] = note: `#[warn(dead_code)]` on by default [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| std::panic::panic_any(e)); [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/gameboy/instr.rs:553:10 [INFO] [stdout] | [INFO] [stdout] 553 | #[derive(FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_FromPrimitive_FOR_Carry` [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: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/gameboy/instr.rs:553:25 [INFO] [stdout] | [INFO] [stdout] 553 | #[derive(FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_NUM_ToPrimitive_FOR_Carry` [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: this error originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rustboi` (bin "rustboi" test) due to 3 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "82aff2a933f022c438d7953dedde709de80a06a752b0c71e9e92dcc6288dead8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "82aff2a933f022c438d7953dedde709de80a06a752b0c71e9e92dcc6288dead8", kill_on_drop: false }` [INFO] [stdout] 82aff2a933f022c438d7953dedde709de80a06a752b0c71e9e92dcc6288dead8