[INFO] cloning repository https://github.com/lowlevelers/nes-emulator [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lowlevelers/nes-emulator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flowlevelers%2Fnes-emulator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flowlevelers%2Fnes-emulator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 385a3eae905c8327e7e84f0e551a58bf8147b1ba [INFO] checking lowlevelers/nes-emulator against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flowlevelers%2Fnes-emulator" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/lowlevelers/nes-emulator on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/lowlevelers/nes-emulator [INFO] finished tweaking git repo https://github.com/lowlevelers/nes-emulator [INFO] tweaked toml for git repo https://github.com/lowlevelers/nes-emulator written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/lowlevelers/nes-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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0acb5cfee783fce20e8d661b49ce6e1386d50e7c00330f3dad860b237a057060 [INFO] running `Command { std: "docker" "start" "-a" "0acb5cfee783fce20e8d661b49ce6e1386d50e7c00330f3dad860b237a057060", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0acb5cfee783fce20e8d661b49ce6e1386d50e7c00330f3dad860b237a057060", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0acb5cfee783fce20e8d661b49ce6e1386d50e7c00330f3dad860b237a057060", kill_on_drop: false }` [INFO] [stdout] 0acb5cfee783fce20e8d661b49ce6e1386d50e7c00330f3dad860b237a057060 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 14ba8514df2a69d6394efeeec20023ba785c3438ffc3cb448523ac293d6f0c47 [INFO] running `Command { std: "docker" "start" "-a" "14ba8514df2a69d6394efeeec20023ba785c3438ffc3cb448523ac293d6f0c47", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking unicode-width v0.1.11 [INFO] [stderr] Compiling unicode-segmentation v1.10.1 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Compiling anyhow v1.0.75 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking bitflags v2.4.1 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Checking structopt v0.3.26 [INFO] [stderr] Checking nes-emulator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `address::*` [INFO] [stdout] --> src/cpu/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use address::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `address::*` [INFO] [stdout] --> src/cpu/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use address::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debugger::*` [INFO] [stdout] --> src/cpu/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use debugger::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `instr::*` [INFO] [stdout] --> src/cpu/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use instr::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `instruction::*` [INFO] [stdout] --> src/cpu/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use instruction::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `opcode::*` [INFO] [stdout] --> src/cpu/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub use opcode::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mem::Mem` [INFO] [stdout] --> src/main.rs:19:63 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::{constant::ADDRESS_TEST_PROGRAM, cpu::Cpu6502, mem::Mem}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | mod tests { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `address::*` [INFO] [stdout] --> src/cpu/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use address::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `address::*` [INFO] [stdout] --> src/cpu/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use address::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debugger::*` [INFO] [stdout] --> src/cpu/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use debugger::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `instr::*` [INFO] [stdout] --> src/cpu/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use instr::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `instruction::*` [INFO] [stdout] --> src/cpu/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use instruction::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `opcode::*` [INFO] [stdout] --> src/cpu/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub use opcode::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function cannot return without recursing [INFO] [stdout] --> src/ppu/mod.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | fn default() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stdout] 33 | Self { [INFO] [stdout] 34 | ..Default::default() [INFO] [stdout] | ------------------ recursive call site [INFO] [stdout] | [INFO] [stdout] = help: a `loop` may express intention better if this is on purpose [INFO] [stdout] = note: `#[warn(unconditional_recursion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `PpuRegister` is more private than the item `Ppu::registers` [INFO] [stdout] --> src/ppu/mod.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub registers: PpuRegister, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ field `Ppu::registers` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `PpuRegister` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/ppu/mod.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | struct PpuRegister { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cpu` and `ppu` are never read [INFO] [stdout] --> src/nes.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | struct NesEmulator { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 6 | pub cpu: Box, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | pub ppu: Box, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ppu/mod.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | struct PpuRegister { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 13 | // $2000 - PPUCTRL controller [INFO] [stdout] 14 | ppuctrl: PpuControlRegister, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 15 | // $2001 - PPUMASK mask register [INFO] [stdout] 16 | ppumask: PpuMaskRegister, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 17 | // $2002 - PPUSTATUS status [INFO] [stdout] 18 | ppustatus: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 19 | // $2003 - OAM data read/write [INFO] [stdout] 20 | odmadata: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 21 | // $2004 - OAM data read/write [INFO] [stdout] 22 | oamdata: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | // $2005 - fine scroll position [INFO] [stdout] 24 | ppuscroll: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 25 | // $2006 - PPU read/write address (two writes: most significant byte, least significant byte) [INFO] [stdout] 26 | ppuaddr: PpuAddrRegister, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 27 | // $2007 - PPU data read/write [INFO] [stdout] 28 | ppudata: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PpuRegister` 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: field `registers` is never read [INFO] [stdout] --> src/ppu/mod.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct Ppu { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 41 | pub registers: PpuRegister, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ppu` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `write_to_ppuaddr`, `write_to_ppuctrl`, and `write_to_ppumask` are never used [INFO] [stdout] --> src/ppu/mod.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 45 | impl Ppu { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 46 | fn write_to_ppuaddr(&mut self, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn write_to_ppuctrl(&mut self, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn write_to_ppumask(&mut self, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `value` and `hi_ptr` are never read [INFO] [stdout] --> src/ppu/registers/ppuaddr.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct PpuAddrRegister { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 6 | value: (u8, u8), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | hi_ptr: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PpuAddrRegister` 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 associated items are never used [INFO] [stdout] --> src/ppu/registers/ppuaddr.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl PpuAddrRegister { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | fn set(&mut self, data: u16) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn get(&self) -> u16 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | fn mirror_down(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn write(&mut self, data: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn increment(&mut self, inc: u8) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn reset_latch(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/ppu/registers/ppuctrl.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 34 | impl PpuControlRegister { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 35 | pub const fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn write(&mut self, val: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn nametable_addr(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub const fn vram_increment(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub const fn spr_select(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub const fn bg_select(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub const fn spr_height(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub const fn master_slave(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | pub const fn nmi_enabled(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `write` are never used [INFO] [stdout] --> src/ppu/registers/ppumask.rs:31:18 [INFO] [stdout] | [INFO] [stdout] 30 | impl PpuMaskRegister { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 31 | pub const fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn write(&mut self, val: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function cannot return without recursing [INFO] [stdout] --> src/ppu/mod.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | fn default() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stdout] 33 | Self { [INFO] [stdout] 34 | ..Default::default() [INFO] [stdout] | ------------------ recursive call site [INFO] [stdout] | [INFO] [stdout] = help: a `loop` may express intention better if this is on purpose [INFO] [stdout] = note: `#[warn(unconditional_recursion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `PpuRegister` is more private than the item `Ppu::registers` [INFO] [stdout] --> src/ppu/mod.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub registers: PpuRegister, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ field `Ppu::registers` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `PpuRegister` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/ppu/mod.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | struct PpuRegister { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cpu` and `ppu` are never read [INFO] [stdout] --> src/nes.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | struct NesEmulator { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 6 | pub cpu: Box, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | pub ppu: Box, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ppu/mod.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | struct PpuRegister { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 13 | // $2000 - PPUCTRL controller [INFO] [stdout] 14 | ppuctrl: PpuControlRegister, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 15 | // $2001 - PPUMASK mask register [INFO] [stdout] 16 | ppumask: PpuMaskRegister, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 17 | // $2002 - PPUSTATUS status [INFO] [stdout] 18 | ppustatus: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 19 | // $2003 - OAM data read/write [INFO] [stdout] 20 | odmadata: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 21 | // $2004 - OAM data read/write [INFO] [stdout] 22 | oamdata: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | // $2005 - fine scroll position [INFO] [stdout] 24 | ppuscroll: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 25 | // $2006 - PPU read/write address (two writes: most significant byte, least significant byte) [INFO] [stdout] 26 | ppuaddr: PpuAddrRegister, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 27 | // $2007 - PPU data read/write [INFO] [stdout] 28 | ppudata: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PpuRegister` 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: field `registers` is never read [INFO] [stdout] --> src/ppu/mod.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct Ppu { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 41 | pub registers: PpuRegister, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ppu` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `write_to_ppuaddr`, `write_to_ppuctrl`, and `write_to_ppumask` are never used [INFO] [stdout] --> src/ppu/mod.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 45 | impl Ppu { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 46 | fn write_to_ppuaddr(&mut self, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn write_to_ppuctrl(&mut self, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn write_to_ppumask(&mut self, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `value` and `hi_ptr` are never read [INFO] [stdout] --> src/ppu/registers/ppuaddr.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct PpuAddrRegister { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 6 | value: (u8, u8), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | hi_ptr: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PpuAddrRegister` 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 associated items are never used [INFO] [stdout] --> src/ppu/registers/ppuaddr.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl PpuAddrRegister { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | fn set(&mut self, data: u16) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn get(&self) -> u16 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | fn mirror_down(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn write(&mut self, data: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn increment(&mut self, inc: u8) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn reset_latch(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/ppu/registers/ppuctrl.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 34 | impl PpuControlRegister { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 35 | pub const fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn write(&mut self, val: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn nametable_addr(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub const fn vram_increment(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub const fn spr_select(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub const fn bg_select(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub const fn spr_height(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub const fn master_slave(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | pub const fn nmi_enabled(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `write` are never used [INFO] [stdout] --> src/ppu/registers/ppumask.rs:31:18 [INFO] [stdout] | [INFO] [stdout] 30 | impl PpuMaskRegister { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 31 | pub const fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn write(&mut self, val: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.95s [INFO] running `Command { std: "docker" "inspect" "14ba8514df2a69d6394efeeec20023ba785c3438ffc3cb448523ac293d6f0c47", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "14ba8514df2a69d6394efeeec20023ba785c3438ffc3cb448523ac293d6f0c47", kill_on_drop: false }` [INFO] [stdout] 14ba8514df2a69d6394efeeec20023ba785c3438ffc3cb448523ac293d6f0c47 [INFO] checking lowlevelers/nes-emulator against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flowlevelers%2Fnes-emulator" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/lowlevelers/nes-emulator on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/lowlevelers/nes-emulator [INFO] finished tweaking git repo https://github.com/lowlevelers/nes-emulator [INFO] tweaked toml for git repo https://github.com/lowlevelers/nes-emulator written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/lowlevelers/nes-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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] eb7bf541143d696f7b741df6421faec3ecf2edef097a2c85997eb62b12a59ef2 [INFO] running `Command { std: "docker" "start" "-a" "eb7bf541143d696f7b741df6421faec3ecf2edef097a2c85997eb62b12a59ef2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "eb7bf541143d696f7b741df6421faec3ecf2edef097a2c85997eb62b12a59ef2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb7bf541143d696f7b741df6421faec3ecf2edef097a2c85997eb62b12a59ef2", kill_on_drop: false }` [INFO] [stdout] eb7bf541143d696f7b741df6421faec3ecf2edef097a2c85997eb62b12a59ef2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 75b47860bb23be27fe9cef7107623dabe5541a43e5f8817d26e133e0aa85a5d6 [INFO] running `Command { std: "docker" "start" "-a" "75b47860bb23be27fe9cef7107623dabe5541a43e5f8817d26e133e0aa85a5d6", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling unicode-segmentation v1.10.1 [INFO] [stderr] Checking unicode-width v0.1.11 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Compiling anyhow v1.0.75 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking bitflags v2.4.1 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Checking structopt v0.3.26 [INFO] [stderr] Checking nes-emulator v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/cpu/mod.rs (6 fixes) [INFO] [stdout] warning: function cannot return without recursing [INFO] [stdout] --> src/ppu/mod.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | fn default() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stdout] 33 | Self { [INFO] [stdout] 34 | ..Default::default() [INFO] [stdout] | ------------------ recursive call site [INFO] [stdout] | [INFO] [stdout] = help: a `loop` may express intention better if this is on purpose [INFO] [stdout] = note: `#[warn(unconditional_recursion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `PpuRegister` is more private than the item `Ppu::registers` [INFO] [stdout] --> src/ppu/mod.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub registers: PpuRegister, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ field `Ppu::registers` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `PpuRegister` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/ppu/mod.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | struct PpuRegister { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cpu` and `ppu` are never read [INFO] [stdout] --> src/nes.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | struct NesEmulator { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 6 | pub cpu: Box, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | pub ppu: Box, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ppu/mod.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | struct PpuRegister { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 13 | // $2000 - PPUCTRL controller [INFO] [stdout] 14 | ppuctrl: PpuControlRegister, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 15 | // $2001 - PPUMASK mask register [INFO] [stdout] 16 | ppumask: PpuMaskRegister, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 17 | // $2002 - PPUSTATUS status [INFO] [stdout] 18 | ppustatus: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 19 | // $2003 - OAM data read/write [INFO] [stdout] 20 | odmadata: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 21 | // $2004 - OAM data read/write [INFO] [stdout] 22 | oamdata: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | // $2005 - fine scroll position [INFO] [stdout] 24 | ppuscroll: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 25 | // $2006 - PPU read/write address (two writes: most significant byte, least significant byte) [INFO] [stdout] 26 | ppuaddr: PpuAddrRegister, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 27 | // $2007 - PPU data read/write [INFO] [stdout] 28 | ppudata: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PpuRegister` 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: field `registers` is never read [INFO] [stdout] --> src/ppu/mod.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct Ppu { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 41 | pub registers: PpuRegister, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ppu` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `write_to_ppuaddr`, `write_to_ppuctrl`, and `write_to_ppumask` are never used [INFO] [stdout] --> src/ppu/mod.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 45 | impl Ppu { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 46 | fn write_to_ppuaddr(&mut self, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn write_to_ppuctrl(&mut self, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn write_to_ppumask(&mut self, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `value` and `hi_ptr` are never read [INFO] [stdout] --> src/ppu/registers/ppuaddr.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct PpuAddrRegister { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 6 | value: (u8, u8), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | hi_ptr: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PpuAddrRegister` 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 associated items are never used [INFO] [stdout] --> src/ppu/registers/ppuaddr.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl PpuAddrRegister { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | fn set(&mut self, data: u16) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn get(&self) -> u16 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | fn mirror_down(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn write(&mut self, data: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn increment(&mut self, inc: u8) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn reset_latch(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/ppu/registers/ppuctrl.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 34 | impl PpuControlRegister { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 35 | pub const fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn write(&mut self, val: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn nametable_addr(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub const fn vram_increment(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub const fn spr_select(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub const fn bg_select(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub const fn spr_height(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub const fn master_slave(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | pub const fn nmi_enabled(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `write` are never used [INFO] [stdout] --> src/ppu/registers/ppumask.rs:31:18 [INFO] [stdout] | [INFO] [stdout] 30 | impl PpuMaskRegister { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 31 | pub const fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn write(&mut self, val: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/main.rs (1 fix) [INFO] [stdout] warning: function cannot return without recursing [INFO] [stdout] --> src/ppu/mod.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | fn default() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stdout] 33 | Self { [INFO] [stdout] 34 | ..Default::default() [INFO] [stdout] | ------------------ recursive call site [INFO] [stdout] | [INFO] [stdout] = help: a `loop` may express intention better if this is on purpose [INFO] [stdout] = note: `#[warn(unconditional_recursion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `PpuRegister` is more private than the item `Ppu::registers` [INFO] [stdout] --> src/ppu/mod.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub registers: PpuRegister, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ field `Ppu::registers` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `PpuRegister` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/ppu/mod.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | struct PpuRegister { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cpu` and `ppu` are never read [INFO] [stdout] --> src/nes.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | struct NesEmulator { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 6 | pub cpu: Box, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | pub ppu: Box, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ppu/mod.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | struct PpuRegister { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 13 | // $2000 - PPUCTRL controller [INFO] [stdout] 14 | ppuctrl: PpuControlRegister, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 15 | // $2001 - PPUMASK mask register [INFO] [stdout] 16 | ppumask: PpuMaskRegister, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 17 | // $2002 - PPUSTATUS status [INFO] [stdout] 18 | ppustatus: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 19 | // $2003 - OAM data read/write [INFO] [stdout] 20 | odmadata: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 21 | // $2004 - OAM data read/write [INFO] [stdout] 22 | oamdata: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | // $2005 - fine scroll position [INFO] [stdout] 24 | ppuscroll: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 25 | // $2006 - PPU read/write address (two writes: most significant byte, least significant byte) [INFO] [stdout] 26 | ppuaddr: PpuAddrRegister, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 27 | // $2007 - PPU data read/write [INFO] [stdout] 28 | ppudata: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PpuRegister` 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: field `registers` is never read [INFO] [stdout] --> src/ppu/mod.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct Ppu { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 41 | pub registers: PpuRegister, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ppu` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `write_to_ppuaddr`, `write_to_ppuctrl`, and `write_to_ppumask` are never used [INFO] [stdout] --> src/ppu/mod.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 45 | impl Ppu { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 46 | fn write_to_ppuaddr(&mut self, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn write_to_ppuctrl(&mut self, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn write_to_ppumask(&mut self, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `value` and `hi_ptr` are never read [INFO] [stdout] --> src/ppu/registers/ppuaddr.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct PpuAddrRegister { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 6 | value: (u8, u8), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | hi_ptr: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PpuAddrRegister` 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 associated items are never used [INFO] [stdout] --> src/ppu/registers/ppuaddr.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl PpuAddrRegister { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | fn set(&mut self, data: u16) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn get(&self) -> u16 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | fn mirror_down(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn write(&mut self, data: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn increment(&mut self, inc: u8) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn reset_latch(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/ppu/registers/ppuctrl.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 34 | impl PpuControlRegister { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 35 | pub const fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn write(&mut self, val: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn nametable_addr(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub const fn vram_increment(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub const fn spr_select(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub const fn bg_select(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub const fn spr_height(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub const fn master_slave(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | pub const fn nmi_enabled(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `write` are never used [INFO] [stdout] --> src/ppu/registers/ppumask.rs:31:18 [INFO] [stdout] | [INFO] [stdout] 30 | impl PpuMaskRegister { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 31 | pub const fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn write(&mut self, val: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.72s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking nes-emulator v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: function cannot return without recursing [INFO] [stdout] --> src/ppu/mod.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | fn default() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stdout] 33 | Self { [INFO] [stdout] 34 | ..Default::default() [INFO] [stdout] | ------------------ recursive call site [INFO] [stdout] | [INFO] [stdout] = help: a `loop` may express intention better if this is on purpose [INFO] [stdout] = note: `#[warn(unconditional_recursion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `mem_write` found for struct `cpu6502::Cpu6502` in the current scope [INFO] [stdout] | [INFO] [stdout] ::: src/cpu/cpu6502.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Cpu6502 { [INFO] [stdout] | ------------------ method `mem_write` not found for this struct [INFO] [stdout] | [INFO] [stdout] ::: src/mem.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | fn mem_write(&mut self, addr: u16, data: u8) -> Result<()>; [INFO] [stdout] | --------- the method is available for `cpu6502::Cpu6502` here [INFO] [stdout] --> src/main.rs:214:13 [INFO] [stdout] | [INFO] [stdout] 214 | cpu.mem_write(0x07FF, 21).unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Mem` which provides `mem_write` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 19 + use crate::mem::Mem; [INFO] [stdout] | [INFO] [stdout] help: there is a method `mem_write_u16` with a similar name [INFO] [stdout] | [INFO] [stdout] 214 | cpu.mem_write_u16(0x07FF, 21).unwrap(); [INFO] [stdout] | ~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `PpuRegister` is more private than the item `Ppu::registers` [INFO] [stdout] --> src/ppu/mod.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub registers: PpuRegister, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ field `Ppu::registers` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `PpuRegister` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/ppu/mod.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | struct PpuRegister { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cpu` and `ppu` are never read [INFO] [stdout] --> src/nes.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | struct NesEmulator { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 6 | pub cpu: Box, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | pub ppu: Box, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ppu/mod.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | struct PpuRegister { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 13 | // $2000 - PPUCTRL controller [INFO] [stdout] 14 | ppuctrl: PpuControlRegister, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 15 | // $2001 - PPUMASK mask register [INFO] [stdout] 16 | ppumask: PpuMaskRegister, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 17 | // $2002 - PPUSTATUS status [INFO] [stdout] 18 | ppustatus: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 19 | // $2003 - OAM data read/write [INFO] [stdout] 20 | odmadata: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 21 | // $2004 - OAM data read/write [INFO] [stdout] 22 | oamdata: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | // $2005 - fine scroll position [INFO] [stdout] 24 | ppuscroll: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 25 | // $2006 - PPU read/write address (two writes: most significant byte, least significant byte) [INFO] [stdout] 26 | ppuaddr: PpuAddrRegister, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 27 | // $2007 - PPU data read/write [INFO] [stdout] 28 | ppudata: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PpuRegister` 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: field `registers` is never read [INFO] [stdout] --> src/ppu/mod.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct Ppu { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 41 | pub registers: PpuRegister, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ppu` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `write_to_ppuaddr`, `write_to_ppuctrl`, and `write_to_ppumask` are never used [INFO] [stdout] --> src/ppu/mod.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 45 | impl Ppu { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 46 | fn write_to_ppuaddr(&mut self, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn write_to_ppuctrl(&mut self, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn write_to_ppumask(&mut self, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `value` and `hi_ptr` are never read [INFO] [stdout] --> src/ppu/registers/ppuaddr.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct PpuAddrRegister { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 6 | value: (u8, u8), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | hi_ptr: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PpuAddrRegister` 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 associated items are never used [INFO] [stdout] --> src/ppu/registers/ppuaddr.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl PpuAddrRegister { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | fn set(&mut self, data: u16) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn get(&self) -> u16 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | fn mirror_down(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn write(&mut self, data: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn increment(&mut self, inc: u8) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn reset_latch(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/ppu/registers/ppuctrl.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 34 | impl PpuControlRegister { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 35 | pub const fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn write(&mut self, val: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn nametable_addr(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub const fn vram_increment(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub const fn spr_select(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub const fn bg_select(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub const fn spr_height(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub const fn master_slave(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | pub const fn nmi_enabled(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `write` are never used [INFO] [stdout] --> src/ppu/registers/ppumask.rs:31:18 [INFO] [stdout] | [INFO] [stdout] 30 | impl PpuMaskRegister { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 31 | pub const fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn write(&mut self, val: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `mem_read` found for struct `cpu6502::Cpu6502` in the current scope [INFO] [stdout] | [INFO] [stdout] ::: src/cpu/cpu6502.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Cpu6502 { [INFO] [stdout] | ------------------ method `mem_read` not found for this struct [INFO] [stdout] | [INFO] [stdout] ::: src/mem.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | fn mem_read(&self, addr: u16) -> Result; [INFO] [stdout] | -------- the method is available for `cpu6502::Cpu6502` here [INFO] [stdout] --> src/main.rs:215:28 [INFO] [stdout] | [INFO] [stdout] 215 | let tmp_data = cpu.mem_read(0x07FF).unwrap(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Mem` which provides `mem_read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 19 + use crate::mem::Mem; [INFO] [stdout] | [INFO] [stdout] help: there is a method `mem_read_u16` with a similar name [INFO] [stdout] | [INFO] [stdout] 215 | let tmp_data = cpu.mem_read_u16(0x07FF).unwrap(); [INFO] [stdout] | ~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `mem_read` found for struct `cpu6502::Cpu6502` in the current scope [INFO] [stdout] | [INFO] [stdout] ::: src/cpu/cpu6502.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Cpu6502 { [INFO] [stdout] | ------------------ method `mem_read` not found for this struct [INFO] [stdout] | [INFO] [stdout] ::: src/mem.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | fn mem_read(&self, addr: u16) -> Result; [INFO] [stdout] | -------- the method is available for `cpu6502::Cpu6502` here [INFO] [stdout] --> src/main.rs:218:32 [INFO] [stdout] | [INFO] [stdout] 218 | let data_at_0fff = cpu.mem_read(0x0FFF).unwrap(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Mem` which provides `mem_read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 19 + use crate::mem::Mem; [INFO] [stdout] | [INFO] [stdout] help: there is a method `mem_read_u16` with a similar name [INFO] [stdout] | [INFO] [stdout] 218 | let data_at_0fff = cpu.mem_read_u16(0x0FFF).unwrap(); [INFO] [stdout] | ~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `mem_read` found for struct `cpu6502::Cpu6502` in the current scope [INFO] [stdout] | [INFO] [stdout] ::: src/cpu/cpu6502.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Cpu6502 { [INFO] [stdout] | ------------------ method `mem_read` not found for this struct [INFO] [stdout] | [INFO] [stdout] ::: src/mem.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | fn mem_read(&self, addr: u16) -> Result; [INFO] [stdout] | -------- the method is available for `cpu6502::Cpu6502` here [INFO] [stdout] --> src/main.rs:219:32 [INFO] [stdout] | [INFO] [stdout] 219 | let data_at_17ff = cpu.mem_read(0x17FF).unwrap(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Mem` which provides `mem_read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 19 + use crate::mem::Mem; [INFO] [stdout] | [INFO] [stdout] help: there is a method `mem_read_u16` with a similar name [INFO] [stdout] | [INFO] [stdout] 219 | let data_at_17ff = cpu.mem_read_u16(0x17FF).unwrap(); [INFO] [stdout] | ~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `mem_read` found for struct `cpu6502::Cpu6502` in the current scope [INFO] [stdout] | [INFO] [stdout] ::: src/cpu/cpu6502.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Cpu6502 { [INFO] [stdout] | ------------------ method `mem_read` not found for this struct [INFO] [stdout] | [INFO] [stdout] ::: src/mem.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | fn mem_read(&self, addr: u16) -> Result; [INFO] [stdout] | -------- the method is available for `cpu6502::Cpu6502` here [INFO] [stdout] --> src/main.rs:220:33 [INFO] [stdout] | [INFO] [stdout] 220 | let data_ata_1fff = cpu.mem_read(0x1FFF).unwrap(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Mem` which provides `mem_read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 19 + use crate::mem::Mem; [INFO] [stdout] | [INFO] [stdout] help: there is a method `mem_read_u16` with a similar name [INFO] [stdout] | [INFO] [stdout] 220 | let data_ata_1fff = cpu.mem_read_u16(0x1FFF).unwrap(); [INFO] [stdout] | ~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function cannot return without recursing [INFO] [stdout] --> src/ppu/mod.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | fn default() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stdout] 33 | Self { [INFO] [stdout] 34 | ..Default::default() [INFO] [stdout] | ------------------ recursive call site [INFO] [stdout] | [INFO] [stdout] = help: a `loop` may express intention better if this is on purpose [INFO] [stdout] = note: `#[warn(unconditional_recursion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 1 warning 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 `nes-emulator` (bin "nes-emulator" test) due to 6 previous errors; 1 warning 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" "75b47860bb23be27fe9cef7107623dabe5541a43e5f8817d26e133e0aa85a5d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "75b47860bb23be27fe9cef7107623dabe5541a43e5f8817d26e133e0aa85a5d6", kill_on_drop: false }` [INFO] [stdout] 75b47860bb23be27fe9cef7107623dabe5541a43e5f8817d26e133e0aa85a5d6