[INFO] cloning repository https://github.com/HAW-Rust-SoSe24/gb_emulator [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/HAW-Rust-SoSe24/gb_emulator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHAW-Rust-SoSe24%2Fgb_emulator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHAW-Rust-SoSe24%2Fgb_emulator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1d58b36b40d28b1359dcb1d4bf88f2a515301e8f [INFO] checking HAW-Rust-SoSe24/gb_emulator/1d58b36b40d28b1359dcb1d4bf88f2a515301e8f against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHAW-Rust-SoSe24%2Fgb_emulator" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/HAW-Rust-SoSe24/gb_emulator on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/HAW-Rust-SoSe24/gb_emulator [INFO] finished tweaking git repo https://github.com/HAW-Rust-SoSe24/gb_emulator [INFO] tweaked toml for git repo https://github.com/HAW-Rust-SoSe24/gb_emulator written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/HAW-Rust-SoSe24/gb_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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 21928c13eff581916e9c9e0793b9be7f7d8ece3dcf1033d3a9c370456e5005f1 [INFO] running `Command { std: "docker" "start" "-a" "21928c13eff581916e9c9e0793b9be7f7d8ece3dcf1033d3a9c370456e5005f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "21928c13eff581916e9c9e0793b9be7f7d8ece3dcf1033d3a9c370456e5005f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "21928c13eff581916e9c9e0793b9be7f7d8ece3dcf1033d3a9c370456e5005f1", kill_on_drop: false }` [INFO] [stdout] 21928c13eff581916e9c9e0793b9be7f7d8ece3dcf1033d3a9c370456e5005f1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a98f05807838e9bd33cfd1bbac0fbbfdce2a7403f4a976feaad3eca24f372308 [INFO] running `Command { std: "docker" "start" "-a" "a98f05807838e9bd33cfd1bbac0fbbfdce2a7403f4a976feaad3eca24f372308", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling serde v1.0.202 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling target-lexicon v0.12.14 [INFO] [stderr] Compiling winnow v0.6.10 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling version-compare v0.1.1 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling libc v0.2.154 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling proc-macro2 v1.0.85 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling cfg-expr v0.15.8 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Compiling crc32fast v1.4.0 [INFO] [stderr] Checking simd-adler32 v0.3.7 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking miniz_oxide v0.7.2 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Checking instant v0.1.13 [INFO] [stderr] Checking linked-hash-map v0.5.6 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking zerocopy v0.7.34 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Checking flate2 v1.0.30 [INFO] [stderr] Compiling winnow v0.5.40 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking ordered-float v1.1.1 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Checking fdeflate v0.3.4 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Compiling miniquad v0.4.0 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking png v0.17.13 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking hashbrown v0.13.2 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Compiling toml_datetime v0.6.5 [INFO] [stderr] Compiling serde_spanned v0.6.5 [INFO] [stderr] Checking thread-id v3.3.0 [INFO] [stderr] Compiling toml_edit v0.22.12 [INFO] [stderr] Checking bytemuck v1.15.0 [INFO] [stderr] Checking arc-swap v0.4.8 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling rfd v0.14.1 [INFO] [stderr] Checking ttf-parser v0.15.2 [INFO] [stderr] Checking log-mdc v0.1.0 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking image v0.24.9 [INFO] [stderr] Compiling serde_derive v1.0.202 [INFO] [stderr] Compiling macroquad_macro v0.1.7 [INFO] [stderr] Checking is_debug v1.0.1 [INFO] [stderr] Checking raw-window-handle v0.6.2 [INFO] [stderr] Compiling toml_edit v0.21.1 [INFO] [stderr] Checking glam v0.21.3 [INFO] [stderr] Checking fontdue v0.7.3 [INFO] [stderr] Checking convert_case v0.5.0 [INFO] [stderr] Checking quad-rand v0.2.1 [INFO] [stderr] Checking bumpalo v3.16.0 [INFO] [stderr] Compiling toml v0.8.12 [INFO] [stderr] Compiling system-deps v6.2.1 [INFO] [stderr] Compiling proc-macro-crate v3.1.0 [INFO] [stderr] Checking macroquad v0.4.5 [INFO] [stderr] Compiling glib-sys v0.18.1 [INFO] [stderr] Compiling gobject-sys v0.18.0 [INFO] [stderr] Compiling atk-sys v0.18.0 [INFO] [stderr] Compiling gdk-sys v0.18.0 [INFO] [stderr] Compiling gio-sys v0.18.1 [INFO] [stderr] Compiling pango-sys v0.18.0 [INFO] [stderr] Compiling cairo-sys-rs v0.18.2 [INFO] [stderr] Compiling gdk-pixbuf-sys v0.18.0 [INFO] [stderr] Compiling gtk-sys v0.18.0 [INFO] [stderr] Compiling num_enum_derive v0.7.2 [INFO] [stderr] Checking num_enum v0.7.2 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Checking serde-value v0.6.0 [INFO] [stderr] Checking serde_yaml v0.8.26 [INFO] [stderr] Checking log4rs v0.13.0 [INFO] [stderr] Checking simple-log v1.6.0 [INFO] [stderr] Checking gb_emulator v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stdout] warning: variable `ppu_time` is assigned to, but never used [INFO] [stdout] --> src/main.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let mut ppu_time = time::Instant::now(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_ppu_time` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/main.rs (2 fixes) [INFO] [stdout] warning: unused variable: `dump_time` [INFO] [stdout] --> src/main.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | let dump_time = time::Instant::now(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dump_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ppu_time` is never read [INFO] [stdout] --> src/main.rs:132:17 [INFO] [stdout] | [INFO] [stdout] 132 | ppu_time = time::Instant::now(); [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: unused variable: `ram_size` [INFO] [stdout] --> src/mmu/mbc/no_mbc.rs:28:59 [INFO] [stdout] | [INFO] [stdout] 28 | fn init(&mut self, _rom_size: u8, cartridge_type: u8, ram_size: u8) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ram_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bank` [INFO] [stdout] --> src/mmu/mbc/no_mbc.rs:32:44 [INFO] [stdout] | [INFO] [stdout] 32 | fn fill_rom_bank_from_slice(&mut self, bank: u8, data: &[u8; 0x4000]) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bank` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bank` [INFO] [stdout] --> src/mmu/mbc/no_mbc.rs:36:44 [INFO] [stdout] | [INFO] [stdout] 36 | fn fill_ram_bank_from_slice(&mut self, bank: u8, data: &[u8; 0x2000]) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bank` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/mmu.rs:207:13 [INFO] [stdout] | [INFO] [stdout] 207 | _ => panic!("Address out of bounds: {:#X}", address) [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/mmu.rs:207:13 [INFO] [stdout] | [INFO] [stdout] 190 | 0x0000..=0x3FFF => { [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 197 | 0x4000..=0x7FFF => self.mbc.read_byte(address), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 198 | 0x8000..=0x9FFF => self.VRAM.read_byte(address), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 199 | 0xA000..=0xBFFF => self.mbc.read_byte(address), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 207 | _ => panic!("Address out of bounds: {:#X}", address) [INFO] [stdout] | ^ ...and 7 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/mmu.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 225 | _ => panic!("Address out of bounds: {:#X}", address) [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/mmu.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 214 | 0x0000..=0x3FFF => self.mbc.write_byte(address, value), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 215 | 0x4000..=0x7FFF => self.mbc.write_byte(address, value), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 216 | 0x8000..=0x9FFF => self.VRAM.write_byte(address, value), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 217 | 0xA000..=0xBFFF => self.mbc.write_byte(address, value), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 225 | _ => panic!("Address out of bounds: {:#X}", address) [INFO] [stdout] | ^ ...and 7 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WINDOWS` is never used [INFO] [stdout] --> src/main.rs:29:7 [INFO] [stdout] | [INFO] [stdout] 29 | const WINDOWS: bool = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `VRAM` should have a snake case name [INFO] [stdout] --> src/mmu.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | pub VRAM: SimpleRegion, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `vram` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `WRAM` should have a snake case name [INFO] [stdout] --> src/mmu.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | pub WRAM: SimpleRegion, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `wram` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `OAM` should have a snake case name [INFO] [stdout] --> src/mmu.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | pub OAM: SimpleRegion, [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `oam` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `IO` should have a snake case name [INFO] [stdout] --> src/mmu.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | pub IO: InputOutput, [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `HRAM` should have a snake case name [INFO] [stdout] --> src/mmu.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | pub HRAM: SimpleRegion, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `hram` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/cpu/instructions/arithmetic_and_logic.rs (1 fix) [INFO] [stdout] warning: variable `ppu_time` is assigned to, but never used [INFO] [stdout] --> src/main.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let mut ppu_time = time::Instant::now(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_ppu_time` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dump_time` [INFO] [stdout] --> src/main.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | let dump_time = time::Instant::now(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dump_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ppu_time` is never read [INFO] [stdout] --> src/main.rs:132:17 [INFO] [stdout] | [INFO] [stdout] 132 | ppu_time = time::Instant::now(); [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: unused variable: `ram_size` [INFO] [stdout] --> src/mmu/mbc/no_mbc.rs:28:59 [INFO] [stdout] | [INFO] [stdout] 28 | fn init(&mut self, _rom_size: u8, cartridge_type: u8, ram_size: u8) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ram_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bank` [INFO] [stdout] --> src/mmu/mbc/no_mbc.rs:32:44 [INFO] [stdout] | [INFO] [stdout] 32 | fn fill_rom_bank_from_slice(&mut self, bank: u8, data: &[u8; 0x4000]) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bank` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bank` [INFO] [stdout] --> src/mmu/mbc/no_mbc.rs:36:44 [INFO] [stdout] | [INFO] [stdout] 36 | fn fill_ram_bank_from_slice(&mut self, bank: u8, data: &[u8; 0x2000]) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bank` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/mmu.rs:207:13 [INFO] [stdout] | [INFO] [stdout] 207 | _ => panic!("Address out of bounds: {:#X}", address) [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/mmu.rs:207:13 [INFO] [stdout] | [INFO] [stdout] 190 | 0x0000..=0x3FFF => { [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 197 | 0x4000..=0x7FFF => self.mbc.read_byte(address), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 198 | 0x8000..=0x9FFF => self.VRAM.read_byte(address), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 199 | 0xA000..=0xBFFF => self.mbc.read_byte(address), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 207 | _ => panic!("Address out of bounds: {:#X}", address) [INFO] [stdout] | ^ ...and 7 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/mmu.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 225 | _ => panic!("Address out of bounds: {:#X}", address) [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/mmu.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 214 | 0x0000..=0x3FFF => self.mbc.write_byte(address, value), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 215 | 0x4000..=0x7FFF => self.mbc.write_byte(address, value), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 216 | 0x8000..=0x9FFF => self.VRAM.write_byte(address, value), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 217 | 0xA000..=0xBFFF => self.mbc.write_byte(address, value), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 225 | _ => panic!("Address out of bounds: {:#X}", address) [INFO] [stdout] | ^ ...and 7 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WINDOWS` is never used [INFO] [stdout] --> src/main.rs:29:7 [INFO] [stdout] | [INFO] [stdout] 29 | const WINDOWS: bool = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `VRAM` should have a snake case name [INFO] [stdout] --> src/mmu.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | pub VRAM: SimpleRegion, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `vram` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `WRAM` should have a snake case name [INFO] [stdout] --> src/mmu.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | pub WRAM: SimpleRegion, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `wram` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `OAM` should have a snake case name [INFO] [stdout] --> src/mmu.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | pub OAM: SimpleRegion, [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `oam` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `IO` should have a snake case name [INFO] [stdout] --> src/mmu.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | pub IO: InputOutput, [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `HRAM` should have a snake case name [INFO] [stdout] --> src/mmu.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | pub HRAM: SimpleRegion, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `hram` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.87s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking gb_emulator v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: variable `ppu_time` is assigned to, but never used [INFO] [stdout] --> src/main.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let mut ppu_time = time::Instant::now(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_ppu_time` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dump_time` [INFO] [stdout] --> src/main.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | let dump_time = time::Instant::now(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dump_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ppu_time` is never read [INFO] [stdout] --> src/main.rs:132:17 [INFO] [stdout] | [INFO] [stdout] 132 | ppu_time = time::Instant::now(); [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: variable `ppu_time` is assigned to, but never used [INFO] [stdout] --> src/main.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let mut ppu_time = time::Instant::now(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_ppu_time` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dump_time` [INFO] [stdout] --> src/main.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | let dump_time = time::Instant::now(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dump_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ppu_time` is never read [INFO] [stdout] --> src/main.rs:132:17 [INFO] [stdout] | [INFO] [stdout] 132 | ppu_time = time::Instant::now(); [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] error[E0599]: no method named `write_byte` found for struct `MMU` in the current scope [INFO] [stdout] --> src/cpu/instructions/arithmetic_and_logic.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | cpu.mmu.write_byte(cpu.get_16bit_register(Register16Bit::HL), 3); [INFO] [stdout] | ^^^^^^^^^^ method not found in `MMU` [INFO] [stdout] | [INFO] [stdout] ::: src/mmu.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn write_byte(&mut self, address: u16, value: u8); [INFO] [stdout] | ---------- the method is available for `MMU` here [INFO] [stdout] ... [INFO] [stdout] 72 | pub struct MMU { [INFO] [stdout] | -------------- method `write_byte` not found for this struct [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 71 | cpu.mmu.mbc.write_byte(cpu.get_16bit_register(Register16Bit::HL), 3); [INFO] [stdout] | ++++ [INFO] [stdout] help: trait `MemoryOperations` which provides `write_byte` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use crate::mmu::MemoryOperations; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_byte` found for struct `MMU` in the current scope [INFO] [stdout] --> src/cpu/instructions/arithmetic_and_logic.rs:128:24 [INFO] [stdout] | [INFO] [stdout] 128 | assert_eq!(cpu.mmu.read_byte(cpu.get_16bit_register(Register16Bit::HL)), 4); [INFO] [stdout] | ^^^^^^^^^ method not found in `MMU` [INFO] [stdout] | [INFO] [stdout] ::: src/mmu.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn read_byte(&self, address: u16) -> u8; [INFO] [stdout] | --------- the method is available for `MMU` here [INFO] [stdout] ... [INFO] [stdout] 72 | pub struct MMU { [INFO] [stdout] | -------------- method `read_byte` not found for this struct [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 128 | assert_eq!(cpu.mmu.mbc.read_byte(cpu.get_16bit_register(Register16Bit::HL)), 4); [INFO] [stdout] | ++++ [INFO] [stdout] help: trait `MemoryOperations` which provides `read_byte` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use crate::mmu::MemoryOperations; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_byte` found for struct `MMU` in the current scope [INFO] [stdout] --> src/cpu/instructions/arithmetic_and_logic.rs:180:13 [INFO] [stdout] | [INFO] [stdout] 180 | cpu.mmu.write_byte(cpu.get_16bit_register(Register16Bit::HL), 16); [INFO] [stdout] | ^^^^^^^^^^ method not found in `MMU` [INFO] [stdout] | [INFO] [stdout] ::: src/mmu.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn write_byte(&mut self, address: u16, value: u8); [INFO] [stdout] | ---------- the method is available for `MMU` here [INFO] [stdout] ... [INFO] [stdout] 72 | pub struct MMU { [INFO] [stdout] | -------------- method `write_byte` not found for this struct [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 180 | cpu.mmu.mbc.write_byte(cpu.get_16bit_register(Register16Bit::HL), 16); [INFO] [stdout] | ++++ [INFO] [stdout] help: trait `MemoryOperations` which provides `write_byte` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use crate::mmu::MemoryOperations; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_byte` found for struct `MMU` in the current scope [INFO] [stdout] --> src/cpu/instructions/arithmetic_and_logic.rs:221:13 [INFO] [stdout] | [INFO] [stdout] 221 | cpu.mmu.write_byte(cpu.get_16bit_register(Register16Bit::HL), 10); [INFO] [stdout] | ^^^^^^^^^^ method not found in `MMU` [INFO] [stdout] | [INFO] [stdout] ::: src/mmu.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn write_byte(&mut self, address: u16, value: u8); [INFO] [stdout] | ---------- the method is available for `MMU` here [INFO] [stdout] ... [INFO] [stdout] 72 | pub struct MMU { [INFO] [stdout] | -------------- method `write_byte` not found for this struct [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 221 | cpu.mmu.mbc.write_byte(cpu.get_16bit_register(Register16Bit::HL), 10); [INFO] [stdout] | ++++ [INFO] [stdout] help: trait `MemoryOperations` which provides `write_byte` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use crate::mmu::MemoryOperations; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_byte` found for struct `MMU` in the current scope [INFO] [stdout] --> src/cpu/instructions/arithmetic_and_logic.rs:247:13 [INFO] [stdout] | [INFO] [stdout] 247 | cpu.mmu.write_byte(cpu.get_16bit_register(Register16Bit::HL), 15); [INFO] [stdout] | ^^^^^^^^^^ method not found in `MMU` [INFO] [stdout] | [INFO] [stdout] ::: src/mmu.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn write_byte(&mut self, address: u16, value: u8); [INFO] [stdout] | ---------- the method is available for `MMU` here [INFO] [stdout] ... [INFO] [stdout] 72 | pub struct MMU { [INFO] [stdout] | -------------- method `write_byte` not found for this struct [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 247 | cpu.mmu.mbc.write_byte(cpu.get_16bit_register(Register16Bit::HL), 15); [INFO] [stdout] | ++++ [INFO] [stdout] help: trait `MemoryOperations` which provides `write_byte` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use crate::mmu::MemoryOperations; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_byte` found for struct `MMU` in the current scope [INFO] [stdout] --> src/cpu/instructions/arithmetic_and_logic.rs:276:13 [INFO] [stdout] | [INFO] [stdout] 276 | cpu.mmu.write_byte(cpu.get_16bit_register(Register16Bit::HL), 31); [INFO] [stdout] | ^^^^^^^^^^ method not found in `MMU` [INFO] [stdout] | [INFO] [stdout] ::: src/mmu.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn write_byte(&mut self, address: u16, value: u8); [INFO] [stdout] | ---------- the method is available for `MMU` here [INFO] [stdout] ... [INFO] [stdout] 72 | pub struct MMU { [INFO] [stdout] | -------------- method `write_byte` not found for this struct [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 276 | cpu.mmu.mbc.write_byte(cpu.get_16bit_register(Register16Bit::HL), 31); [INFO] [stdout] | ++++ [INFO] [stdout] help: trait `MemoryOperations` which provides `write_byte` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use crate::mmu::MemoryOperations; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ram_size` [INFO] [stdout] --> src/mmu/mbc/no_mbc.rs:28:59 [INFO] [stdout] | [INFO] [stdout] 28 | fn init(&mut self, _rom_size: u8, cartridge_type: u8, ram_size: u8) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ram_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bank` [INFO] [stdout] --> src/mmu/mbc/no_mbc.rs:32:44 [INFO] [stdout] | [INFO] [stdout] 32 | fn fill_rom_bank_from_slice(&mut self, bank: u8, data: &[u8; 0x4000]) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bank` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bank` [INFO] [stdout] --> src/mmu/mbc/no_mbc.rs:36:44 [INFO] [stdout] | [INFO] [stdout] 36 | fn fill_ram_bank_from_slice(&mut self, bank: u8, data: &[u8; 0x2000]) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bank` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/mmu.rs:207:13 [INFO] [stdout] | [INFO] [stdout] 207 | _ => panic!("Address out of bounds: {:#X}", address) [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/mmu.rs:207:13 [INFO] [stdout] | [INFO] [stdout] 190 | 0x0000..=0x3FFF => { [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 197 | 0x4000..=0x7FFF => self.mbc.read_byte(address), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 198 | 0x8000..=0x9FFF => self.VRAM.read_byte(address), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 199 | 0xA000..=0xBFFF => self.mbc.read_byte(address), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 207 | _ => panic!("Address out of bounds: {:#X}", address) [INFO] [stdout] | ^ ...and 7 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/mmu.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 225 | _ => panic!("Address out of bounds: {:#X}", address) [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/mmu.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 214 | 0x0000..=0x3FFF => self.mbc.write_byte(address, value), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 215 | 0x4000..=0x7FFF => self.mbc.write_byte(address, value), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 216 | 0x8000..=0x9FFF => self.VRAM.write_byte(address, value), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 217 | 0xA000..=0xBFFF => self.mbc.write_byte(address, value), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 225 | _ => panic!("Address out of bounds: {:#X}", address) [INFO] [stdout] | ^ ...and 7 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WINDOWS` is never used [INFO] [stdout] --> src/main.rs:29:7 [INFO] [stdout] | [INFO] [stdout] 29 | const WINDOWS: bool = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `VRAM` should have a snake case name [INFO] [stdout] --> src/mmu.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | pub VRAM: SimpleRegion, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `vram` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `WRAM` should have a snake case name [INFO] [stdout] --> src/mmu.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | pub WRAM: SimpleRegion, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `wram` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `OAM` should have a snake case name [INFO] [stdout] --> src/mmu.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | pub OAM: SimpleRegion, [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `oam` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `IO` should have a snake case name [INFO] [stdout] --> src/mmu.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | pub IO: InputOutput, [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `HRAM` should have a snake case name [INFO] [stdout] --> src/mmu.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | pub HRAM: SimpleRegion, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `hram` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ram_size` [INFO] [stdout] --> src/mmu/mbc/no_mbc.rs:28:59 [INFO] [stdout] | [INFO] [stdout] 28 | fn init(&mut self, _rom_size: u8, cartridge_type: u8, ram_size: u8) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ram_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bank` [INFO] [stdout] --> src/mmu/mbc/no_mbc.rs:32:44 [INFO] [stdout] | [INFO] [stdout] 32 | fn fill_rom_bank_from_slice(&mut self, bank: u8, data: &[u8; 0x4000]) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bank` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bank` [INFO] [stdout] --> src/mmu/mbc/no_mbc.rs:36:44 [INFO] [stdout] | [INFO] [stdout] 36 | fn fill_ram_bank_from_slice(&mut self, bank: u8, data: &[u8; 0x2000]) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bank` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/mmu.rs:207:13 [INFO] [stdout] | [INFO] [stdout] 207 | _ => panic!("Address out of bounds: {:#X}", address) [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/mmu.rs:207:13 [INFO] [stdout] | [INFO] [stdout] 190 | 0x0000..=0x3FFF => { [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 197 | 0x4000..=0x7FFF => self.mbc.read_byte(address), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 198 | 0x8000..=0x9FFF => self.VRAM.read_byte(address), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 199 | 0xA000..=0xBFFF => self.mbc.read_byte(address), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 207 | _ => panic!("Address out of bounds: {:#X}", address) [INFO] [stdout] | ^ ...and 7 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/mmu.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 225 | _ => panic!("Address out of bounds: {:#X}", address) [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/mmu.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 214 | 0x0000..=0x3FFF => self.mbc.write_byte(address, value), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 215 | 0x4000..=0x7FFF => self.mbc.write_byte(address, value), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 216 | 0x8000..=0x9FFF => self.VRAM.write_byte(address, value), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 217 | 0xA000..=0xBFFF => self.mbc.write_byte(address, value), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 225 | _ => panic!("Address out of bounds: {:#X}", address) [INFO] [stdout] | ^ ...and 7 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `gb_emulator` (bin "gb_emulator" test) due to 7 previous errors; 8 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "a98f05807838e9bd33cfd1bbac0fbbfdce2a7403f4a976feaad3eca24f372308", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a98f05807838e9bd33cfd1bbac0fbbfdce2a7403f4a976feaad3eca24f372308", kill_on_drop: false }` [INFO] [stdout] a98f05807838e9bd33cfd1bbac0fbbfdce2a7403f4a976feaad3eca24f372308