[INFO] cloning repository https://github.com/ywxt/rens [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ywxt/rens" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fywxt%2Frens", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fywxt%2Frens'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b74ab2923968eac7da1e5542869bc114846c16cf [INFO] checking ywxt/rens against master#c724b67e1b474262917a5154d74e7072267593fe for pr-74315 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fywxt%2Frens" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ywxt/rens on toolchain c724b67e1b474262917a5154d74e7072267593fe [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+c724b67e1b474262917a5154d74e7072267593fe" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ywxt/rens [INFO] finished tweaking git repo https://github.com/ywxt/rens [INFO] tweaked toml for git repo https://github.com/ywxt/rens written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/ywxt/rens already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+c724b67e1b474262917a5154d74e7072267593fe" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+c724b67e1b474262917a5154d74e7072267593fe" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 1b7efd12b05b4cd295c3fc20e269573408bf0d45bea553d730e396b26bb2418f [INFO] running `Command { std: "docker" "start" "-a" "1b7efd12b05b4cd295c3fc20e269573408bf0d45bea553d730e396b26bb2418f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1b7efd12b05b4cd295c3fc20e269573408bf0d45bea553d730e396b26bb2418f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b7efd12b05b4cd295c3fc20e269573408bf0d45bea553d730e396b26bb2418f", kill_on_drop: false }` [INFO] [stdout] 1b7efd12b05b4cd295c3fc20e269573408bf0d45bea553d730e396b26bb2418f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+c724b67e1b474262917a5154d74e7072267593fe" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] af3c94609eda94c54b55693afd09a80a05c9af2f7ea92909df9e5da83d619e0f [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "af3c94609eda94c54b55693afd09a80a05c9af2f7ea92909df9e5da83d619e0f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.13 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.22 [INFO] [stderr] Compiling quote v1.0.6 [INFO] [stderr] Compiling thiserror-impl v1.0.18 [INFO] [stderr] Checking thiserror v1.0.18 [INFO] [stderr] Checking rens v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu/instruction.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn instruction_process(cpu: &mut Cpu, ins: u8) -> i32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ins` [INFO] [stdout] --> src/cpu/instruction.rs:5:43 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn instruction_process(cpu: &mut Cpu, ins: u8) -> i32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ins` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Result` [INFO] [stdout] --> src/error.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | pub type Result = anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Horizontal` [INFO] [stdout] --> src/ppu/mirroring.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | Horizontal, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Vertical` [INFO] [stdout] --> src/ppu/mirroring.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | Vertical, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `FourScreen` [INFO] [stdout] --> src/ppu/mirroring.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | FourScreen, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/cpu/bus.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn new(mapper: *mut dyn Mapper) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Cpu` [INFO] [stdout] --> src/cpu/cpu.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Cpu { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `NMI_VECTOR` [INFO] [stdout] --> src/cpu/cpu.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | const NMI_VECTOR: u16 = 0xFFFA; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `RESET_VECTOR` [INFO] [stdout] --> src/cpu/cpu.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | const RESET_VECTOR: u16 = 0xFFFC; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IRQ_OR_BRK_VECTOR` [INFO] [stdout] --> src/cpu/cpu.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | const IRQ_OR_BRK_VECTOR: u16 = 0xFFFE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/cpu/cpu.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new(mut cartridge: Cartridge) -> Cpu { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reset` [INFO] [stdout] --> src/cpu/cpu.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `nmi` [INFO] [stdout] --> src/cpu/cpu.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn nmi(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `irq` [INFO] [stdout] --> src/cpu/cpu.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn irq(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clock` [INFO] [stdout] --> src/cpu/cpu.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn clock(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `step` [INFO] [stdout] --> src/cpu/cpu.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | fn step(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bus` [INFO] [stdout] --> src/cpu/cpu.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn bus(&self) -> &dyn Bus { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bus_mut` [INFO] [stdout] --> src/cpu/cpu.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn bus_mut(&mut self) -> &mut dyn Bus { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `registers` [INFO] [stdout] --> src/cpu/cpu.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn registers(&self) -> &Registers { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `registers_mut` [INFO] [stdout] --> src/cpu/cpu.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn registers_mut(&mut self) -> &mut Registers { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `stack` [INFO] [stdout] --> src/cpu/cpu.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn stack(&self) -> &CpuStack { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `stack_mut` [INFO] [stdout] --> src/cpu/cpu.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn stack_mut(&mut self) -> &mut CpuStack { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `P_FLAGS_C` [INFO] [stdout] --> src/cpu/registers.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub const P_FLAGS_C: u8 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `P_FLAGS_I` [INFO] [stdout] --> src/cpu/registers.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub const P_FLAGS_I: u8 = 1 << 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `P_FLAGS_D` [INFO] [stdout] --> src/cpu/registers.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | pub const P_FLAGS_D: u8 = 1 << 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `P_FLAGS_B` [INFO] [stdout] --> src/cpu/registers.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | pub const P_FLAGS_B: u8 = 1 << 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `P_FLAGS_U` [INFO] [stdout] --> src/cpu/registers.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub const P_FLAGS_U: u8 = 1 << 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `P_FLAGS_V` [INFO] [stdout] --> src/cpu/registers.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub const P_FLAGS_V: u8 = 1 << 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `CpuStack` [INFO] [stdout] --> src/cpu/stack.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct CpuStack { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `CPU_STACK_START_ADDRESS` [INFO] [stdout] --> src/cpu/stack.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub const CPU_STACK_START_ADDRESS: u16 = 0x2000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/cpu/stack.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(bus: *mut CpuBus, registers: *mut Registers) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop_byte` [INFO] [stdout] --> src/cpu/stack.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn pop_byte(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop_word` [INFO] [stdout] --> src/cpu/stack.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn pop_word(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push_byte` [INFO] [stdout] --> src/cpu/stack.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn push_byte(&mut self, data: u8) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push_word` [INFO] [stdout] --> src/cpu/stack.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn push_word(&mut self, data: u16) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `InstructionProcessor` [INFO] [stdout] --> src/cpu/instruction.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub type InstructionProcessor = fn(cpu: &mut Cpu, ins: u8) -> i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `instruction_process` [INFO] [stdout] --> src/cpu/instruction.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn instruction_process(cpu: &mut Cpu, ins: u8) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with` [INFO] [stdout] --> src/rom/cartridge.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn with(nes: &[u8], sram_size: usize) -> error::Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `ines` [INFO] [stdout] --> src/rom/cartridge.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn ines(&self) -> &Ines { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `ines_mut` [INFO] [stdout] --> src/rom/cartridge.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn ines_mut(&mut self) -> &mut Ines { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sram` [INFO] [stdout] --> src/rom/cartridge.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn sram(&self) -> &Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sram_mut` [INFO] [stdout] --> src/rom/cartridge.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn sram_mut(&mut self) -> &mut Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mapper` [INFO] [stdout] --> src/rom/cartridge.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn mapper(&self) -> &dyn Mapper { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mapper_mut` [INFO] [stdout] --> src/rom/cartridge.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn mapper_mut(&mut self) -> &mut dyn Mapper { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mapper_mut_ptr` [INFO] [stdout] --> src/rom/cartridge.rs:58:19 [INFO] [stdout] | [INFO] [stdout] 58 | pub(crate) fn mapper_mut_ptr(&mut self) -> *mut dyn Mapper { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mirroring` [INFO] [stdout] --> src/rom/header.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn mirroring(&self) -> Mirroring { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `battery_backed` [INFO] [stdout] --> src/rom/header.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn battery_backed(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `vs_unisystem` [INFO] [stdout] --> src/rom/header.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn vs_unisystem(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `play_choice_10` [INFO] [stdout] --> src/rom/header.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn play_choice_10(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `nes_2_format` [INFO] [stdout] --> src/rom/header.rs:109:12 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn nes_2_format(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `prg_ram_size` [INFO] [stdout] --> src/rom/header.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn prg_ram_size(&self) -> error::Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `header_mut` [INFO] [stdout] --> src/rom/ines.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn header_mut(&mut self) -> &mut Header { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `trainer` [INFO] [stdout] --> src/rom/ines.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn trainer(&self) -> &Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `trainer_mut` [INFO] [stdout] --> src/rom/ines.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn trainer_mut(&mut self) -> &mut Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `prg` [INFO] [stdout] --> src/rom/ines.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn prg(&self) -> &Vec { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `chr` [INFO] [stdout] --> src/rom/ines.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn chr(&self) -> &Vec { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 57 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu/instruction.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn instruction_process(cpu: &mut Cpu, ins: u8) -> i32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ins` [INFO] [stdout] --> src/cpu/instruction.rs:5:43 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn instruction_process(cpu: &mut Cpu, ins: u8) -> i32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ins` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Horizontal` [INFO] [stdout] --> src/ppu/mirroring.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | Horizontal, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Vertical` [INFO] [stdout] --> src/ppu/mirroring.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | Vertical, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `FourScreen` [INFO] [stdout] --> src/ppu/mirroring.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | FourScreen, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/cpu/bus.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn new(mapper: *mut dyn Mapper) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Cpu` [INFO] [stdout] --> src/cpu/cpu.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Cpu { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `NMI_VECTOR` [INFO] [stdout] --> src/cpu/cpu.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | const NMI_VECTOR: u16 = 0xFFFA; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `RESET_VECTOR` [INFO] [stdout] --> src/cpu/cpu.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | const RESET_VECTOR: u16 = 0xFFFC; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `IRQ_OR_BRK_VECTOR` [INFO] [stdout] --> src/cpu/cpu.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | const IRQ_OR_BRK_VECTOR: u16 = 0xFFFE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/cpu/cpu.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new(mut cartridge: Cartridge) -> Cpu { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reset` [INFO] [stdout] --> src/cpu/cpu.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `nmi` [INFO] [stdout] --> src/cpu/cpu.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn nmi(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `irq` [INFO] [stdout] --> src/cpu/cpu.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn irq(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clock` [INFO] [stdout] --> src/cpu/cpu.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn clock(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `step` [INFO] [stdout] --> src/cpu/cpu.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | fn step(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bus` [INFO] [stdout] --> src/cpu/cpu.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn bus(&self) -> &dyn Bus { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bus_mut` [INFO] [stdout] --> src/cpu/cpu.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn bus_mut(&mut self) -> &mut dyn Bus { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `registers` [INFO] [stdout] --> src/cpu/cpu.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn registers(&self) -> &Registers { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `registers_mut` [INFO] [stdout] --> src/cpu/cpu.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn registers_mut(&mut self) -> &mut Registers { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `stack` [INFO] [stdout] --> src/cpu/cpu.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn stack(&self) -> &CpuStack { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `stack_mut` [INFO] [stdout] --> src/cpu/cpu.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn stack_mut(&mut self) -> &mut CpuStack { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `P_FLAGS_C` [INFO] [stdout] --> src/cpu/registers.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub const P_FLAGS_C: u8 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `P_FLAGS_I` [INFO] [stdout] --> src/cpu/registers.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub const P_FLAGS_I: u8 = 1 << 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `P_FLAGS_D` [INFO] [stdout] --> src/cpu/registers.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | pub const P_FLAGS_D: u8 = 1 << 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `P_FLAGS_B` [INFO] [stdout] --> src/cpu/registers.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | pub const P_FLAGS_B: u8 = 1 << 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `P_FLAGS_U` [INFO] [stdout] --> src/cpu/registers.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub const P_FLAGS_U: u8 = 1 << 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `P_FLAGS_V` [INFO] [stdout] --> src/cpu/registers.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub const P_FLAGS_V: u8 = 1 << 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `CpuStack` [INFO] [stdout] --> src/cpu/stack.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct CpuStack { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `CPU_STACK_START_ADDRESS` [INFO] [stdout] --> src/cpu/stack.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub const CPU_STACK_START_ADDRESS: u16 = 0x2000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/cpu/stack.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(bus: *mut CpuBus, registers: *mut Registers) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop_byte` [INFO] [stdout] --> src/cpu/stack.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn pop_byte(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop_word` [INFO] [stdout] --> src/cpu/stack.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn pop_word(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push_byte` [INFO] [stdout] --> src/cpu/stack.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn push_byte(&mut self, data: u8) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push_word` [INFO] [stdout] --> src/cpu/stack.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn push_word(&mut self, data: u16) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `InstructionProcessor` [INFO] [stdout] --> src/cpu/instruction.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub type InstructionProcessor = fn(cpu: &mut Cpu, ins: u8) -> i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `instruction_process` [INFO] [stdout] --> src/cpu/instruction.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn instruction_process(cpu: &mut Cpu, ins: u8) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with` [INFO] [stdout] --> src/rom/cartridge.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn with(nes: &[u8], sram_size: usize) -> error::Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `ines` [INFO] [stdout] --> src/rom/cartridge.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn ines(&self) -> &Ines { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `ines_mut` [INFO] [stdout] --> src/rom/cartridge.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn ines_mut(&mut self) -> &mut Ines { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sram_mut` [INFO] [stdout] --> src/rom/cartridge.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn sram_mut(&mut self) -> &mut Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mapper_mut_ptr` [INFO] [stdout] --> src/rom/cartridge.rs:58:19 [INFO] [stdout] | [INFO] [stdout] 58 | pub(crate) fn mapper_mut_ptr(&mut self) -> *mut dyn Mapper { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mirroring` [INFO] [stdout] --> src/rom/header.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn mirroring(&self) -> Mirroring { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `battery_backed` [INFO] [stdout] --> src/rom/header.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn battery_backed(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `vs_unisystem` [INFO] [stdout] --> src/rom/header.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn vs_unisystem(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `play_choice_10` [INFO] [stdout] --> src/rom/header.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn play_choice_10(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `prg_ram_size` [INFO] [stdout] --> src/rom/header.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn prg_ram_size(&self) -> error::Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `header_mut` [INFO] [stdout] --> src/rom/ines.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn header_mut(&mut self) -> &mut Header { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `trainer_mut` [INFO] [stdout] --> src/rom/ines.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn trainer_mut(&mut self) -> &mut Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 14.59s [INFO] running `Command { std: "docker" "inspect" "af3c94609eda94c54b55693afd09a80a05c9af2f7ea92909df9e5da83d619e0f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "af3c94609eda94c54b55693afd09a80a05c9af2f7ea92909df9e5da83d619e0f", kill_on_drop: false }` [INFO] [stdout] af3c94609eda94c54b55693afd09a80a05c9af2f7ea92909df9e5da83d619e0f