[INFO] cloning repository https://github.com/Xander-Br/dmg_emulator [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Xander-Br/dmg_emulator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FXander-Br%2Fdmg_emulator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FXander-Br%2Fdmg_emulator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 63a4bf13cd53349641bd28616a83962b2b297c8d [INFO] checking Xander-Br/dmg_emulator/63a4bf13cd53349641bd28616a83962b2b297c8d against master#d6c8169c186ab16a3404cd0d0866674018e8a19e for pr-129935 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FXander-Br%2Fdmg_emulator" "/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/Xander-Br/dmg_emulator on toolchain d6c8169c186ab16a3404cd0d0866674018e8a19e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d6c8169c186ab16a3404cd0d0866674018e8a19e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Xander-Br/dmg_emulator [INFO] finished tweaking git repo https://github.com/Xander-Br/dmg_emulator [INFO] tweaked toml for git repo https://github.com/Xander-Br/dmg_emulator written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Xander-Br/dmg_emulator 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" "+d6c8169c186ab16a3404cd0d0866674018e8a19e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+d6c8169c186ab16a3404cd0d0866674018e8a19e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 58404d1f5da07e1aafdcb6a65507677a66796c84d7ef39aaa72a12432302ca92 [INFO] running `Command { std: "docker" "start" "-a" "58404d1f5da07e1aafdcb6a65507677a66796c84d7ef39aaa72a12432302ca92", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "58404d1f5da07e1aafdcb6a65507677a66796c84d7ef39aaa72a12432302ca92", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "58404d1f5da07e1aafdcb6a65507677a66796c84d7ef39aaa72a12432302ca92", kill_on_drop: false }` [INFO] [stdout] 58404d1f5da07e1aafdcb6a65507677a66796c84d7ef39aaa72a12432302ca92 [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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+d6c8169c186ab16a3404cd0d0866674018e8a19e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bb414d7eb662b0c91f66b4eeb33fc558a5d2ab16bbc4f0c2d981a8b15412f5a9 [INFO] running `Command { std: "docker" "start" "-a" "bb414d7eb662b0c91f66b4eeb33fc558a5d2ab16bbc4f0c2d981a8b15412f5a9", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling xml-rs v0.8.18 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking libloading v0.8.0 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Checking dlib v0.5.2 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking smallvec v1.11.0 [INFO] [stderr] Checking downcast-rs v1.2.0 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Checking memchr v2.6.3 [INFO] [stderr] Compiling rustix v0.38.13 [INFO] [stderr] Compiling wayland-sys v0.29.5 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking scoped-tls v1.0.1 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Checking bitflags v2.4.0 [INFO] [stderr] Checking linux-raw-sys v0.4.7 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Checking cty v0.2.2 [INFO] [stderr] Checking fastrand v2.0.0 [INFO] [stderr] Checking raw-window-handle v0.4.3 [INFO] [stderr] Checking lib_dmg v0.1.0 (/opt/rustwide/workdir/lib_dmg) [INFO] [stdout] warning: unused import: `crate::bus::Bus` [INFO] [stdout] --> lib_dmg/src/cpu/function.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::bus::Bus; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> lib_dmg/src/cpu/function.rs:268:22 [INFO] [stdout] | [INFO] [stdout] 268 | let half_carry = ((cpu.registers.value_of(&destination) & 0xF) < (value & 0xF) + borrow); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 268 - let half_carry = ((cpu.registers.value_of(&destination) & 0xF) < (value & 0xF) + borrow); [INFO] [stdout] 268 + let half_carry = (cpu.registers.value_of(&destination) & 0xF) < (value & 0xF) + borrow; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking nix v0.24.3 [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> lib_dmg/src/cpu/function.rs:286:22 [INFO] [stdout] | [INFO] [stdout] 286 | let half_carry = ((cpu.registers.value_of(&destination) & 0xF) < (value_from_memory & 0xF) + borrow); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 286 - let half_carry = ((cpu.registers.value_of(&destination) & 0xF) < (value_from_memory & 0xF) + borrow); [INFO] [stdout] 286 + let half_carry = (cpu.registers.value_of(&destination) & 0xF) < (value_from_memory & 0xF) + borrow; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::bus::Bus` [INFO] [stdout] --> lib_dmg/src/cpu/cb_function.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::bus::Bus; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::Cycle` [INFO] [stdout] --> lib_dmg/src/cpu/instructions.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::iter::Cycle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::bus::Bus` [INFO] [stdout] --> lib_dmg/src/cpu/instructions.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::bus::Bus; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::bus::Bus` [INFO] [stdout] --> lib_dmg/src/cpu/cb_instructions.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::bus::Bus; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::cpu::instructions::OpCodeHandler` [INFO] [stdout] --> lib_dmg/src/cpu/cb_instructions.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::cpu::instructions::OpCodeHandler; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `serialize` [INFO] [stdout] --> lib_dmg/src/io/joypad.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | #[cfg_attr(feature = "serialize", derive(Serialize))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `serialize` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `serialize` [INFO] [stdout] --> lib_dmg/src/io/joypad.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | #[cfg_attr(feature = "serialize", derive(Serialize))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `serialize` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `serialize` [INFO] [stdout] --> lib_dmg/src/gpu/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | #[cfg_attr(feature = "serialize", derive(Serialize))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `serialize` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `serialize` [INFO] [stdout] --> lib_dmg/src/gpu/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | #[cfg_attr(feature = "serialize", derive(Serialize))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `serialize` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `serialize` [INFO] [stdout] --> lib_dmg/src/gpu/mod.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | #[cfg_attr(feature = "serialize", derive(Serialize))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `serialize` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `serialize` [INFO] [stdout] --> lib_dmg/src/gpu/mod.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | #[cfg_attr(feature = "serialize", derive(Serialize))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `serialize` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `serialize` [INFO] [stdout] --> lib_dmg/src/gpu/mod.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 68 | #[cfg_attr(feature = "serialize", derive(Serialize))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `serialize` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `serialize` [INFO] [stdout] --> lib_dmg/src/gpu/mod.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | #[cfg_attr(feature = "serialize", derive(Serialize))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `serialize` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `serialize` [INFO] [stdout] --> lib_dmg/src/gpu/mod.rs:177:12 [INFO] [stdout] | [INFO] [stdout] 177 | #[cfg_attr(feature = "serialize", derive(Serialize))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `serialize` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `serialize` [INFO] [stdout] --> lib_dmg/src/gpu/mod.rs:186:12 [INFO] [stdout] | [INFO] [stdout] 186 | #[cfg_attr(feature = "serialize", derive(Serialize))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `serialize` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `serialize` [INFO] [stdout] --> lib_dmg/src/gpu/mod.rs:188:16 [INFO] [stdout] | [INFO] [stdout] 188 | #[cfg_attr(feature = "serialize", serde(skip_serializing))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `serialize` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `serialize` [INFO] [stdout] --> lib_dmg/src/gpu/mod.rs:190:16 [INFO] [stdout] | [INFO] [stdout] 190 | #[cfg_attr(feature = "serialize", serde(skip_serializing))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `serialize` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `serialize` [INFO] [stdout] --> lib_dmg/src/gpu/mod.rs:192:16 [INFO] [stdout] | [INFO] [stdout] 192 | #[cfg_attr(feature = "serialize", serde(skip_serializing))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `serialize` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `serialize` [INFO] [stdout] --> lib_dmg/src/gpu/mod.rs:194:16 [INFO] [stdout] | [INFO] [stdout] 194 | #[cfg_attr(feature = "serialize", serde(skip_serializing))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `serialize` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `serialize` [INFO] [stdout] --> lib_dmg/src/gpu/mod.rs:196:16 [INFO] [stdout] | [INFO] [stdout] 196 | #[cfg_attr(feature = "serialize", serde(skip_serializing))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `serialize` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> lib_dmg/src/gpu/mod.rs:766:64 [INFO] [stdout] | [INFO] [stdout] 766 | let pixel_x_offset = if object.xflip { (7 - x) } else { x } as usize; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 766 - let pixel_x_offset = if object.xflip { (7 - x) } else { x } as usize; [INFO] [stdout] 766 + let pixel_x_offset = if object.xflip { 7 - x } else { x } as usize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> lib_dmg/src/cpu/function.rs:866:9 [INFO] [stdout] | [INFO] [stdout] 866 | let result = cpu.registers.sp as u32 + i16_value as u32; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `register` [INFO] [stdout] --> lib_dmg/src/cpu/function.rs:934:30 [INFO] [stdout] | [INFO] [stdout] 934 | pub fn ld_rmv(cpu: &mut CPU, register: RegisterName, cycles: u8) -> u8 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_register` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> lib_dmg/src/cpu/instructions.rs:39:23 [INFO] [stdout] | [INFO] [stdout] 39 | map.insert(0x10, |cpu| panic!("STOP")); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `cycles` is never read [INFO] [stdout] --> lib_dmg/src/cpu/mod.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 63 | let mut cycles: u8 = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> lib_dmg/src/bus/mod.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | _ => panic!("Bus write address not implemented: {:04X}", address) [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> lib_dmg/src/bus/mod.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 82 | 0x0000..=0x3FFF => self.cart.cart_write(address, value),// ROM Bank 00 [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 83 | 0x4000..=0x7FFF => self.cart.cart_write(address, value),// ROM Bank 01->NN [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 84 | 0x8000..=0x9FFF => self.gpu.gpu_write(address, value), // GPU VRAM [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 85 | 0xA000..=0xBFFF => self.ram.ram_write(address, value), // 8 KiB External RAM [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 109 | _ => panic!("Bus write address not implemented: {:04X}", address) [INFO] [stdout] | ^ ...and 11 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> lib_dmg/src/bus/mod.rs:118:20 [INFO] [stdout] | [INFO] [stdout] 118 | let (addr, res) = address.overflowing_add(1); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> lib_dmg/src/bus/mod.rs:113:38 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn bus_write_word(&mut self, mut address: u16, value: u16) { [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> lib_dmg/src/cart/mod.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let mut boot_rom = DATA.to_vec(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> lib_dmg/src/cart/mod.rs:48:33 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn cart_read(&mut self, mut address: u16) -> u8 { [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> lib_dmg/src/cart/mod.rs:67:34 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn cart_write(&mut self, mut address: u16, value: u8) { [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> lib_dmg/src/gpu/mod.rs:417:13 [INFO] [stdout] | [INFO] [stdout] 417 | let mut data = self.object_data.get_mut(object_index).unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `log_index` is never read [INFO] [stdout] --> lib_dmg/src/cpu/mod.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct CPU { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | log_index: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `flush_frequency_based_on_index` and `flush_log_buffer` are never used [INFO] [stdout] --> lib_dmg/src/cpu/mod.rs:168:8 [INFO] [stdout] | [INFO] [stdout] 26 | impl CPU { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 168 | fn flush_frequency_based_on_index(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | fn flush_log_buffer(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ldi_a_mhl` is never used [INFO] [stdout] --> lib_dmg/src/cpu/function.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn ldi_a_mhl(cpu: &mut CPU, cycles: u8) -> u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ld_u16_a` is never used [INFO] [stdout] --> lib_dmg/src/cpu/function.rs:850:8 [INFO] [stdout] | [INFO] [stdout] 850 | pub fn ld_u16_a(cpu: &mut CPU, cycles: u8) -> u8 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::num::::wrapping_add` that must be used [INFO] [stdout] --> lib_dmg/src/io/timer.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | self.div.wrapping_add(1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this returns the result of the operation, without modifying the original [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 47 | let _ = self.div.wrapping_add(1); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 40 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling minifb v0.25.0 [INFO] [stderr] Compiling wayland-client v0.29.5 [INFO] [stderr] Compiling wayland-protocols v0.29.5 [INFO] [stderr] Checking wayland-commons v0.29.5 [INFO] [stderr] Checking xcursor v0.3.4 [INFO] [stderr] Checking tempfile v3.8.0 [INFO] [stderr] Checking wayland-cursor v0.29.5 [INFO] [stderr] Checking dmg_emulator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let mut cpu: CPU = CPU::new(&data); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let mut cpu: CPU = CPU::new(&data); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.38s [INFO] running `Command { std: "docker" "inspect" "bb414d7eb662b0c91f66b4eeb33fc558a5d2ab16bbc4f0c2d981a8b15412f5a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb414d7eb662b0c91f66b4eeb33fc558a5d2ab16bbc4f0c2d981a8b15412f5a9", kill_on_drop: false }` [INFO] [stdout] bb414d7eb662b0c91f66b4eeb33fc558a5d2ab16bbc4f0c2d981a8b15412f5a9