[INFO] cloning repository https://github.com/dannyhvc/nes_emulator_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dannyhvc/nes_emulator_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdannyhvc%2Fnes_emulator_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdannyhvc%2Fnes_emulator_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 96eb0f9b607fb772a2d1d7b1227851322a695042 [INFO] building dannyhvc/nes_emulator_rust against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdannyhvc%2Fnes_emulator_rust" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dannyhvc/nes_emulator_rust on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/dannyhvc/nes_emulator_rust [INFO] finished tweaking git repo https://github.com/dannyhvc/nes_emulator_rust [INFO] tweaked toml for git repo https://github.com/dannyhvc/nes_emulator_rust written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/dannyhvc/nes_emulator_rust 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c13e97f56c089a5f6a26e3b598dd4721c26440ecc851e46e439937cc949ebec8 [INFO] running `Command { std: "docker" "start" "-a" "c13e97f56c089a5f6a26e3b598dd4721c26440ecc851e46e439937cc949ebec8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c13e97f56c089a5f6a26e3b598dd4721c26440ecc851e46e439937cc949ebec8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c13e97f56c089a5f6a26e3b598dd4721c26440ecc851e46e439937cc949ebec8", kill_on_drop: false }` [INFO] [stdout] c13e97f56c089a5f6a26e3b598dd4721c26440ecc851e46e439937cc949ebec8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e1b31a9167cd47fe15ec618c40d78b98919ec942244f0dc91e614e96cce932d0 [INFO] running `Command { std: "docker" "start" "-a" "e1b31a9167cd47fe15ec618c40d78b98919ec942244f0dc91e614e96cce932d0", kill_on_drop: false }` [INFO] [stderr] Compiling anyhow v1.0.75 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling nes_emulator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variant `ONESCREAN_LO` should have an upper camel case name [INFO] [stdout] --> src/components/cartridge.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | ONESCREAN_LO, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OnescreanLo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ONESCREAN_HI` should have an upper camel case name [INFO] [stdout] --> src/components/cartridge.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | ONESCREAN_HI, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OnescreanHi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sys_clock_counter` is never read [INFO] [stdout] --> src/components/bus.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Bus { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 5 | pub cpu_ram: [u8; KB(64)], // 2Kb of ram [INFO] [stdout] 6 | pub sys_clock_counter: u32, // motherboards clock for busses [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Bus` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `clock`, `reset`, and `load_instruction_mem` are never used [INFO] [stdout] --> src/components/bus.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Bus { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 9 | /// Creates a new [`Bus`]. With 2Kb of MOS 6502 memory [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn clock(&mut self, cpu: &mut CPU) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn reset(&mut self, cpu: &mut CPU) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn load_instruction_mem(&mut self, data: Box<[Box<[u16]>]>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Mirroring` is never used [INFO] [stdout] --> src/components/cartridge.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Mirroring { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Mirroring` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cartrige` is never constructed [INFO] [stdout] --> src/components/cartridge.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Cartrige { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cartrige` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/components/cartridge.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Cartrige { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 23 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/components/dh_cpu.rs:51:18 [INFO] [stdout] | [INFO] [stdout] 49 | impl CPU { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 50 | #[inline] [INFO] [stdout] 51 | pub const fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 191 | pub fn reset(cpu: &mut CPU, bus: &Bus) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 230 | pub fn clock(cpu: &mut CPU, bus: &mut Bus) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 316 | pub const fn complete(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 334 | pub fn disassemble( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 512 | pub const fn a(&self) -> u8 { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 517 | pub fn set_a(&mut self, a: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 521 | pub const fn x(&self) -> u8 { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 526 | pub fn set_x(&mut self, x: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 530 | pub const fn y(&self) -> u8 { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 535 | pub fn set_y(&mut self, y: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 539 | pub const fn sp(&self) -> u8 { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 544 | pub fn set_sp(&mut self, sp: u8) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 548 | pub const fn pc(&self) -> u16 { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 553 | pub fn set_pc(&mut self, pc: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 557 | pub const fn status(&self) -> u8 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 562 | pub fn set_status(&mut self, status: u8) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 566 | pub const fn fetched(&self) -> u8 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 571 | pub fn set_fetched(&mut self, fetched: u8) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 575 | pub const fn temp(&self) -> u16 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 580 | pub fn set_temp(&mut self, temp: u16) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 584 | pub const fn abs(&self) -> u16 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 589 | pub fn set_abs(&mut self, abs: u16) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 593 | pub const fn rel(&self) -> u16 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 598 | pub fn set_rel(&mut self, rel: u16) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 602 | pub const fn opcode(&self) -> u8 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 607 | pub fn set_opcode(&mut self, opcode: u8) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 611 | pub const fn cycles(&self) -> u8 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 616 | pub fn set_cycles(&mut self, cycles: u8) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 620 | pub const fn clock_count(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 625 | pub fn set_clock_count(&mut self, clock_count: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PPU` is never constructed [INFO] [stdout] --> src/components/dh_ppu.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct PPU { [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: associated items `new`, `allow_cpu_read`, `allow_cpu_write`, `allow_ppu_read`, and `allow_ppu_write` are never used [INFO] [stdout] --> src/components/mappers/mapper.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait MapperFn { [INFO] [stdout] | -------- associated items in this trait [INFO] [stdout] 2 | fn new(prg_bank: u8, chr_bank: u8) -> Self; [INFO] [stdout] | ^^^ [INFO] [stdout] 3 | fn allow_cpu_read(&self, addr: u16, mapped_addr: &mut u32) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 4 | fn allow_cpu_write(&self, addr: u16, mapped_addr: &mut u32) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | fn allow_ppu_read(&self, addr: u16, mapped_addr: &mut u32) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 6 | fn allow_ppu_write(&self, addr: u16, mapped_addr: &mut u32) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/components/mappers/mapper.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl MapperData { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 16 | pub fn new(prg_bank: u8, chr_bank: u8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `op_code` and `cycles` are never read [INFO] [stdout] --> src/components/types.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct CpuInstruction { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 50 | pub mneumonic: InstructionMneumonic, [INFO] [stdout] 51 | pub op_code: for<'a, 'b> fn(&'a mut CPU, &'b mut Bus) -> u8, // OPCODE [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 52 | pub addr_mode: for<'a, 'b> fn(&'a mut CPU, &'b mut Bus) -> u8, // ADDRESSING MODE [INFO] [stdout] 53 | pub cycles: u8, // CYCLE COUNT [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CpuInstruction` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `op_code` are never read [INFO] [stdout] --> src/components/types.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct InstructionMneumonic { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 65 | pub name: &'static str, [INFO] [stdout] | ^^^^ [INFO] [stdout] 66 | pub op_code: OpcodeMneumonic, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InstructionMneumonic` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.81s [INFO] running `Command { std: "docker" "inspect" "e1b31a9167cd47fe15ec618c40d78b98919ec942244f0dc91e614e96cce932d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e1b31a9167cd47fe15ec618c40d78b98919ec942244f0dc91e614e96cce932d0", kill_on_drop: false }` [INFO] [stdout] e1b31a9167cd47fe15ec618c40d78b98919ec942244f0dc91e614e96cce932d0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] af5a6be494d9f64482c22eb50d42fc529912eed06bb1b8e21b65792add37e8a9 [INFO] running `Command { std: "docker" "start" "-a" "af5a6be494d9f64482c22eb50d42fc529912eed06bb1b8e21b65792add37e8a9", kill_on_drop: false }` [INFO] [stderr] Compiling nes_emulator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variant `ONESCREAN_LO` should have an upper camel case name [INFO] [stdout] --> src/components/cartridge.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | ONESCREAN_LO, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OnescreanLo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ONESCREAN_HI` should have an upper camel case name [INFO] [stdout] --> src/components/cartridge.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | ONESCREAN_HI, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OnescreanHi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CpuFlags`, `CpuInstruction`, `M6502AddrModes`, `M6502Opcodes`, and `self` [INFO] [stdout] --> src/tests.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | self, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | types::{CpuFlags, CpuInstruction, M6502AddrModes, M6502Opcodes}, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sys_clock_counter` is never read [INFO] [stdout] --> src/components/bus.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Bus { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 5 | pub cpu_ram: [u8; KB(64)], // 2Kb of ram [INFO] [stdout] 6 | pub sys_clock_counter: u32, // motherboards clock for busses [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Bus` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `clock` and `reset` are never used [INFO] [stdout] --> src/components/bus.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Bus { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn clock(&mut self, cpu: &mut CPU) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn reset(&mut self, cpu: &mut CPU) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Mirroring` is never used [INFO] [stdout] --> src/components/cartridge.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Mirroring { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Mirroring` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cartrige` is never constructed [INFO] [stdout] --> src/components/cartridge.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Cartrige { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cartrige` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/components/cartridge.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Cartrige { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 23 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/components/dh_cpu.rs:512:18 [INFO] [stdout] | [INFO] [stdout] 49 | impl CPU { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 512 | pub const fn a(&self) -> u8 { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 517 | pub fn set_a(&mut self, a: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 521 | pub const fn x(&self) -> u8 { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 526 | pub fn set_x(&mut self, x: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 530 | pub const fn y(&self) -> u8 { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 535 | pub fn set_y(&mut self, y: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 539 | pub const fn sp(&self) -> u8 { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 544 | pub fn set_sp(&mut self, sp: u8) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 557 | pub const fn status(&self) -> u8 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 562 | pub fn set_status(&mut self, status: u8) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 566 | pub const fn fetched(&self) -> u8 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 571 | pub fn set_fetched(&mut self, fetched: u8) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 575 | pub const fn temp(&self) -> u16 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 580 | pub fn set_temp(&mut self, temp: u16) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 584 | pub const fn abs(&self) -> u16 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 589 | pub fn set_abs(&mut self, abs: u16) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 593 | pub const fn rel(&self) -> u16 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 598 | pub fn set_rel(&mut self, rel: u16) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 602 | pub const fn opcode(&self) -> u8 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 607 | pub fn set_opcode(&mut self, opcode: u8) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 620 | pub const fn clock_count(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 625 | pub fn set_clock_count(&mut self, clock_count: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PPU` is never constructed [INFO] [stdout] --> src/components/dh_ppu.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct PPU { [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: associated items `new`, `allow_cpu_read`, `allow_cpu_write`, `allow_ppu_read`, and `allow_ppu_write` are never used [INFO] [stdout] --> src/components/mappers/mapper.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait MapperFn { [INFO] [stdout] | -------- associated items in this trait [INFO] [stdout] 2 | fn new(prg_bank: u8, chr_bank: u8) -> Self; [INFO] [stdout] | ^^^ [INFO] [stdout] 3 | fn allow_cpu_read(&self, addr: u16, mapped_addr: &mut u32) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 4 | fn allow_cpu_write(&self, addr: u16, mapped_addr: &mut u32) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | fn allow_ppu_read(&self, addr: u16, mapped_addr: &mut u32) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 6 | fn allow_ppu_write(&self, addr: u16, mapped_addr: &mut u32) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/components/mappers/mapper.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl MapperData { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 16 | pub fn new(prg_bank: u8, chr_bank: u8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `op_code` is never read [INFO] [stdout] --> src/components/types.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct InstructionMneumonic { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] 65 | pub name: &'static str, [INFO] [stdout] 66 | pub op_code: OpcodeMneumonic, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InstructionMneumonic` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.46s [INFO] running `Command { std: "docker" "inspect" "af5a6be494d9f64482c22eb50d42fc529912eed06bb1b8e21b65792add37e8a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "af5a6be494d9f64482c22eb50d42fc529912eed06bb1b8e21b65792add37e8a9", kill_on_drop: false }` [INFO] [stdout] af5a6be494d9f64482c22eb50d42fc529912eed06bb1b8e21b65792add37e8a9