[INFO] cloning repository https://github.com/NuclearOreo/Game-Boy-Emulator [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/NuclearOreo/Game-Boy-Emulator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNuclearOreo%2FGame-Boy-Emulator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNuclearOreo%2FGame-Boy-Emulator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8223ccad5ffc266e95accc64bc16c39652775a42 [INFO] checking NuclearOreo/Game-Boy-Emulator against master#bca37a20bd376ce3fd138e7cdee7fe704e0f8814 for pr-139493-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNuclearOreo%2FGame-Boy-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] started tweaking git repo https://github.com/NuclearOreo/Game-Boy-Emulator [INFO] finished tweaking git repo https://github.com/NuclearOreo/Game-Boy-Emulator [INFO] tweaked toml for git repo https://github.com/NuclearOreo/Game-Boy-Emulator written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/NuclearOreo/Game-Boy-Emulator on toolchain bca37a20bd376ce3fd138e7cdee7fe704e0f8814 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/NuclearOreo/Game-Boy-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" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded version-compare v0.1.1 [INFO] [stderr] Downloaded libc v0.2.145 [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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9371bab13ecd75a6ffc5b645ccd2ccd88fb30c28401bb1c92fb86daea17ca85b [INFO] running `Command { std: "docker" "start" "-a" "9371bab13ecd75a6ffc5b645ccd2ccd88fb30c28401bb1c92fb86daea17ca85b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9371bab13ecd75a6ffc5b645ccd2ccd88fb30c28401bb1c92fb86daea17ca85b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9371bab13ecd75a6ffc5b645ccd2ccd88fb30c28401bb1c92fb86daea17ca85b", kill_on_drop: false }` [INFO] [stdout] 9371bab13ecd75a6ffc5b645ccd2ccd88fb30c28401bb1c92fb86daea17ca85b [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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dd325e5327a62426c91ef07ca46a127e9fd20a4459704084ac7cd80006a5f9b9 [INFO] running `Command { std: "docker" "start" "-a" "dd325e5327a62426c91ef07ca46a127e9fd20a4459704084ac7cd80006a5f9b9", kill_on_drop: false }` [INFO] [stderr] Compiling version-compare v0.1.1 [INFO] [stderr] Compiling libc v0.2.145 [INFO] [stderr] Compiling sdl2 v0.35.2 [INFO] [stderr] Compiling game_boy_emulator v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling sdl2-sys v0.35.2 [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/emu_components/cart.rs:244:33 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn cart_write(address: u16, value: u8) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/emu_components/cpu_fetch.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | _ => panic!("Unknown Addressing mode"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/emu_components/cpu_fetch.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 14 | AddrMode::AM_IMP => (), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 15 | AddrMode::AM_R => { [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 18 | AddrMode::AM_R_R => { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 21 | AddrMode::AM_R_D8 => { [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 138 | _ => panic!("Unknown Addressing mode"), [INFO] [stdout] | ^ ...and 15 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/emu_components/cpu_proc.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | fn proc_none(ctx: &mut CpuContext) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/emu_components/cpu_proc.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | fn proc_nop(ctx: &mut CpuContext) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu_cycles` [INFO] [stdout] --> src/emu_components/emu.rs:75:19 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn emu_cycles(cpu_cycles: i32) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cpu_cycles` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/emu_components/stack.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let mut regs = cpu_get_regs(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bus_read16` is never used [INFO] [stdout] --> src/emu_components/bus.rs:91:15 [INFO] [stdout] | [INFO] [stdout] 91 | pub unsafe fn bus_read16(address: u16) -> u16 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `between` is never used [INFO] [stdout] --> src/emu_components/common.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn between(a: u8, b: u8, c: u8) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stepping` is never read [INFO] [stdout] --> src/emu_components/cpu.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct CpuContext { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 33 | pub stepping: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CpuContext` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `emu_get_context` is never used [INFO] [stdout] --> src/emu_components/emu.rs:30:15 [INFO] [stdout] | [INFO] [stdout] 30 | pub unsafe fn emu_get_context() -> &'static mut EmuContext { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `AM_D16_R` is never constructed [INFO] [stdout] --> src/emu_components/instructions.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum AddrMode { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 20 | AM_D16_R, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AddrMode` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `RT_F` and `RT_PC` are never constructed [INFO] [stdout] --> src/emu_components/instructions.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub enum RegType { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 32 | RT_F, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | RT_PC, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RegType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/emu_components/instructions.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 63 | pub enum InType { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 67 | IN_INC, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 68 | IN_DEC, [INFO] [stdout] 69 | IN_RLCA, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 70 | IN_ADD, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 71 | IN_RRCA, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 72 | IN_STOP, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 73 | IN_RLA, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 74 | IN_JR, [INFO] [stdout] 75 | IN_RRA, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 76 | IN_DAA, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 77 | IN_CPL, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 78 | IN_SCF, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 79 | IN_CCF, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 80 | IN_HALT, [INFO] [stdout] 81 | IN_ADC, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 82 | IN_SUB, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 83 | IN_SBC, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 84 | IN_AND, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 85 | IN_XOR, [INFO] [stdout] 86 | IN_OR, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 87 | IN_CP, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | IN_CB, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | IN_JPHL, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 97 | IN_DI, [INFO] [stdout] 98 | IN_EI, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 99 | IN_RST, [INFO] [stdout] 100 | IN_ERR, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 101 | //CB instructions... [INFO] [stdout] 102 | IN_RLC, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 103 | IN_RRC, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 104 | IN_RL, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 105 | IN_RR, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 106 | IN_SLA, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 107 | IN_SRA, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 108 | IN_SWAP, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 109 | IN_SRL, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 110 | IN_BIT, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 111 | IN_RES, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 112 | IN_SET, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ppu_init` is never used [INFO] [stdout] --> src/emu_components/ppu.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn ppu_init() {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ppu_tick` is never used [INFO] [stdout] --> src/emu_components/ppu.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn ppu_tick() {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `stack_pop16` is never used [INFO] [stdout] --> src/emu_components/stack.rs:104:15 [INFO] [stdout] | [INFO] [stdout] 104 | pub unsafe fn stack_pop16() -> u16 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `timer_init` is never used [INFO] [stdout] --> src/emu_components/timer.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn timer_init() {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `timer_tick` is never used [INFO] [stdout] --> src/emu_components/timer.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn timer_tick() {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/emu_components/cart.rs:166:5 [INFO] [stdout] | [INFO] [stdout] 166 | / CTX.header [INFO] [stdout] 167 | | .entry [INFO] [stdout] 168 | | .copy_from_slice(&CTX.rom_data[0x100..=0x103]); [INFO] [stdout] | |______________________________________________________^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/emu_components/cart.rs:169:5 [INFO] [stdout] | [INFO] [stdout] 169 | / CTX.header [INFO] [stdout] 170 | | .logo [INFO] [stdout] 171 | | .copy_from_slice(&CTX.rom_data[0x104..=0x133]); [INFO] [stdout] | |______________________________________________________^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/emu_components/cart.rs:172:5 [INFO] [stdout] | [INFO] [stdout] 172 | / CTX.header [INFO] [stdout] 173 | | .title [INFO] [stdout] 174 | | .copy_from_slice(&CTX.rom_data[0x134..=0x143]); [INFO] [stdout] | |______________________________________________________^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/emu_components/cart.rs:175:5 [INFO] [stdout] | [INFO] [stdout] 175 | / CTX.header [INFO] [stdout] 176 | | .manufacturer_code [INFO] [stdout] 177 | | .copy_from_slice(&CTX.rom_data[0x13F..=0x142]); [INFO] [stdout] | |______________________________________________________^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cart.rs:194:29 [INFO] [stdout] | [INFO] [stdout] 194 | let mut fp = File::open(&CTX.filename)?; [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 194 | let mut fp = File::open(&raw const CTX.filename)?; [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cart.rs:196:28 [INFO] [stdout] | [INFO] [stdout] 196 | println!("Opened: {}", &CTX.filename); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 196 | println!("Opened: {}", &raw const CTX.filename); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cart.rs:210:33 [INFO] [stdout] | [INFO] [stdout] 210 | String::from_utf8_lossy(&CTX.header.title) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 210 | String::from_utf8_lossy(&raw const CTX.header.title) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cart.rs:214:9 [INFO] [stdout] | [INFO] [stdout] 214 | CTX.header.c_type, ROM_TYPES[CTX.header.c_type as usize] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cart.rs:217:34 [INFO] [stdout] | [INFO] [stdout] 217 | println!("\t RAM Size : {}", CTX.header.ram_size); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cart.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 220 | CTX.header.lic_code, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cart.rs:223:34 [INFO] [stdout] | [INFO] [stdout] 223 | println!("\t ROM Vers : {}", CTX.header.version); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cart.rs:232:9 [INFO] [stdout] | [INFO] [stdout] 232 | CTX.header.checksum, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/emu_components/cpu.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | &mut CTX [INFO] [stdout] | ^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 72 | &raw mut CTX [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cpu.rs:86:52 [INFO] [stdout] | [INFO] [stdout] 86 | _ => panic!("Unknown instruction: {:02X}", CTX.cur_opcode), [INFO] [stdout] | ^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/emu_components/cpu.rs:92:10 [INFO] [stdout] | [INFO] [stdout] 92 | proc(&mut CTX); [INFO] [stdout] | ^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 92 | proc(&raw mut CTX); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cpu.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | CTX.cur_inst.i_type, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cpu.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | CTX.cur_opcode, [INFO] [stdout] | ^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cpu.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | CTX.regs.a, [INFO] [stdout] | ^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cpu.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | CTX.regs.b, [INFO] [stdout] | ^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cpu.rs:110:13 [INFO] [stdout] | [INFO] [stdout] 110 | CTX.regs.c, [INFO] [stdout] | ^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cpu.rs:111:13 [INFO] [stdout] | [INFO] [stdout] 111 | CTX.regs.d, [INFO] [stdout] | ^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cpu.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | CTX.regs.e, [INFO] [stdout] | ^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cpu.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | CTX.regs.h, [INFO] [stdout] | ^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cpu.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | CTX.regs.l, [INFO] [stdout] | ^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/emu_components/emu.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | &mut CTX [INFO] [stdout] | ^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 31 | &raw mut CTX [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/emu_components/cart.rs:244:33 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn cart_write(address: u16, value: u8) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/emu_components/cpu_fetch.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | _ => panic!("Unknown Addressing mode"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/emu_components/cpu_fetch.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 14 | AddrMode::AM_IMP => (), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 15 | AddrMode::AM_R => { [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 18 | AddrMode::AM_R_R => { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 21 | AddrMode::AM_R_D8 => { [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 138 | _ => panic!("Unknown Addressing mode"), [INFO] [stdout] | ^ ...and 15 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/emu_components/cpu_proc.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | fn proc_none(ctx: &mut CpuContext) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/emu_components/cpu_proc.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | fn proc_nop(ctx: &mut CpuContext) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu_cycles` [INFO] [stdout] --> src/emu_components/emu.rs:75:19 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn emu_cycles(cpu_cycles: i32) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cpu_cycles` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/emu_components/stack.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let mut regs = cpu_get_regs(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bus_read16` is never used [INFO] [stdout] --> src/emu_components/bus.rs:91:15 [INFO] [stdout] | [INFO] [stdout] 91 | pub unsafe fn bus_read16(address: u16) -> u16 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `between` is never used [INFO] [stdout] --> src/emu_components/common.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn between(a: u8, b: u8, c: u8) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stepping` is never read [INFO] [stdout] --> src/emu_components/cpu.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct CpuContext { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 33 | pub stepping: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CpuContext` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `emu_get_context` is never used [INFO] [stdout] --> src/emu_components/emu.rs:30:15 [INFO] [stdout] | [INFO] [stdout] 30 | pub unsafe fn emu_get_context() -> &'static mut EmuContext { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `AM_D16_R` is never constructed [INFO] [stdout] --> src/emu_components/instructions.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum AddrMode { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 20 | AM_D16_R, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AddrMode` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `RT_F` and `RT_PC` are never constructed [INFO] [stdout] --> src/emu_components/instructions.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub enum RegType { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 32 | RT_F, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | RT_PC, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RegType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/emu_components/instructions.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 63 | pub enum InType { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 67 | IN_INC, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 68 | IN_DEC, [INFO] [stdout] 69 | IN_RLCA, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 70 | IN_ADD, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 71 | IN_RRCA, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 72 | IN_STOP, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 73 | IN_RLA, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 74 | IN_JR, [INFO] [stdout] 75 | IN_RRA, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 76 | IN_DAA, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 77 | IN_CPL, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 78 | IN_SCF, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 79 | IN_CCF, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 80 | IN_HALT, [INFO] [stdout] 81 | IN_ADC, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 82 | IN_SUB, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 83 | IN_SBC, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 84 | IN_AND, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 85 | IN_XOR, [INFO] [stdout] 86 | IN_OR, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 87 | IN_CP, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | IN_CB, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | IN_JPHL, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 97 | IN_DI, [INFO] [stdout] 98 | IN_EI, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 99 | IN_RST, [INFO] [stdout] 100 | IN_ERR, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 101 | //CB instructions... [INFO] [stdout] 102 | IN_RLC, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 103 | IN_RRC, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 104 | IN_RL, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 105 | IN_RR, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 106 | IN_SLA, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 107 | IN_SRA, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 108 | IN_SWAP, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 109 | IN_SRL, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 110 | IN_BIT, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 111 | IN_RES, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 112 | IN_SET, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ppu_init` is never used [INFO] [stdout] --> src/emu_components/ppu.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn ppu_init() {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ppu_tick` is never used [INFO] [stdout] --> src/emu_components/ppu.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn ppu_tick() {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `stack_pop16` is never used [INFO] [stdout] --> src/emu_components/stack.rs:104:15 [INFO] [stdout] | [INFO] [stdout] 104 | pub unsafe fn stack_pop16() -> u16 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `timer_init` is never used [INFO] [stdout] --> src/emu_components/timer.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn timer_init() {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `timer_tick` is never used [INFO] [stdout] --> src/emu_components/timer.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn timer_tick() {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/emu_components/cart.rs:166:5 [INFO] [stdout] | [INFO] [stdout] 166 | / CTX.header [INFO] [stdout] 167 | | .entry [INFO] [stdout] 168 | | .copy_from_slice(&CTX.rom_data[0x100..=0x103]); [INFO] [stdout] | |______________________________________________________^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/emu_components/cart.rs:169:5 [INFO] [stdout] | [INFO] [stdout] 169 | / CTX.header [INFO] [stdout] 170 | | .logo [INFO] [stdout] 171 | | .copy_from_slice(&CTX.rom_data[0x104..=0x133]); [INFO] [stdout] | |______________________________________________________^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/emu_components/cart.rs:172:5 [INFO] [stdout] | [INFO] [stdout] 172 | / CTX.header [INFO] [stdout] 173 | | .title [INFO] [stdout] 174 | | .copy_from_slice(&CTX.rom_data[0x134..=0x143]); [INFO] [stdout] | |______________________________________________________^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/emu_components/cart.rs:175:5 [INFO] [stdout] | [INFO] [stdout] 175 | / CTX.header [INFO] [stdout] 176 | | .manufacturer_code [INFO] [stdout] 177 | | .copy_from_slice(&CTX.rom_data[0x13F..=0x142]); [INFO] [stdout] | |______________________________________________________^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cart.rs:194:29 [INFO] [stdout] | [INFO] [stdout] 194 | let mut fp = File::open(&CTX.filename)?; [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 194 | let mut fp = File::open(&raw const CTX.filename)?; [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cart.rs:196:28 [INFO] [stdout] | [INFO] [stdout] 196 | println!("Opened: {}", &CTX.filename); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 196 | println!("Opened: {}", &raw const CTX.filename); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cart.rs:210:33 [INFO] [stdout] | [INFO] [stdout] 210 | String::from_utf8_lossy(&CTX.header.title) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 210 | String::from_utf8_lossy(&raw const CTX.header.title) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cart.rs:214:9 [INFO] [stdout] | [INFO] [stdout] 214 | CTX.header.c_type, ROM_TYPES[CTX.header.c_type as usize] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cart.rs:217:34 [INFO] [stdout] | [INFO] [stdout] 217 | println!("\t RAM Size : {}", CTX.header.ram_size); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cart.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 220 | CTX.header.lic_code, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cart.rs:223:34 [INFO] [stdout] | [INFO] [stdout] 223 | println!("\t ROM Vers : {}", CTX.header.version); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cart.rs:232:9 [INFO] [stdout] | [INFO] [stdout] 232 | CTX.header.checksum, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/emu_components/cpu.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | &mut CTX [INFO] [stdout] | ^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 72 | &raw mut CTX [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cpu.rs:86:52 [INFO] [stdout] | [INFO] [stdout] 86 | _ => panic!("Unknown instruction: {:02X}", CTX.cur_opcode), [INFO] [stdout] | ^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/emu_components/cpu.rs:92:10 [INFO] [stdout] | [INFO] [stdout] 92 | proc(&mut CTX); [INFO] [stdout] | ^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 92 | proc(&raw mut CTX); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cpu.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | CTX.cur_inst.i_type, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cpu.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | CTX.cur_opcode, [INFO] [stdout] | ^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cpu.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | CTX.regs.a, [INFO] [stdout] | ^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cpu.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | CTX.regs.b, [INFO] [stdout] | ^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cpu.rs:110:13 [INFO] [stdout] | [INFO] [stdout] 110 | CTX.regs.c, [INFO] [stdout] | ^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cpu.rs:111:13 [INFO] [stdout] | [INFO] [stdout] 111 | CTX.regs.d, [INFO] [stdout] | ^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cpu.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | CTX.regs.e, [INFO] [stdout] | ^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cpu.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | CTX.regs.h, [INFO] [stdout] | ^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/emu_components/cpu.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | CTX.regs.l, [INFO] [stdout] | ^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/emu_components/emu.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | &mut CTX [INFO] [stdout] | ^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 31 | &raw mut CTX [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.71s [INFO] running `Command { std: "docker" "inspect" "dd325e5327a62426c91ef07ca46a127e9fd20a4459704084ac7cd80006a5f9b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dd325e5327a62426c91ef07ca46a127e9fd20a4459704084ac7cd80006a5f9b9", kill_on_drop: false }` [INFO] [stdout] dd325e5327a62426c91ef07ca46a127e9fd20a4459704084ac7cd80006a5f9b9