[INFO] cloning repository https://github.com/vspecky/nes-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vspecky/nes-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvspecky%2Fnes-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvspecky%2Fnes-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e8ee60f8e7dfdf33bbc76774de7d467829aad6ee [INFO] checking vspecky/nes-rs against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvspecky%2Fnes-rs" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/vspecky/nes-rs on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/vspecky/nes-rs [INFO] finished tweaking git repo https://github.com/vspecky/nes-rs [INFO] tweaked toml for git repo https://github.com/vspecky/nes-rs written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/vspecky/nes-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7adb723e89540c50f2321e0ac16da493d27f81372cb4e1159a7bff3da7d83858 [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" "7adb723e89540c50f2321e0ac16da493d27f81372cb4e1159a7bff3da7d83858", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7adb723e89540c50f2321e0ac16da493d27f81372cb4e1159a7bff3da7d83858", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7adb723e89540c50f2321e0ac16da493d27f81372cb4e1159a7bff3da7d83858", kill_on_drop: false }` [INFO] [stdout] 7adb723e89540c50f2321e0ac16da493d27f81372cb4e1159a7bff3da7d83858 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 72ddde22342df77c65d80ef598fdd8b271cba3f7731ba465aa0811fcff01b64e [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" "72ddde22342df77c65d80ef598fdd8b271cba3f7731ba465aa0811fcff01b64e", kill_on_drop: false }` [INFO] [stderr] Checking nes-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/cpu_6502.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 194 | (((bus.read(addr & 0xFF00) as u16) << 8) | bus.read(addr) as u16) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/cpu_6502.rs:196:13 [INFO] [stdout] | [INFO] [stdout] 196 | (((bus.read(addr + 1) as u16) << 8) | bus.read(addr) as u16) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bus` [INFO] [stdout] --> src/cpu_6502.rs:119:32 [INFO] [stdout] | [INFO] [stdout] 119 | fn addr_implied(&mut self, bus: &mut Bus) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bus` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bus` [INFO] [stdout] --> src/cpu_6502.rs:125:28 [INFO] [stdout] | [INFO] [stdout] 125 | fn addr_acc(&mut self, bus: &mut Bus) -> AddrRes { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bus` [INFO] [stdout] --> src/cpu_6502.rs:132:34 [INFO] [stdout] | [INFO] [stdout] 132 | fn addr_immediate(&mut self, bus: &mut Bus) -> AddrRes { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cycle` [INFO] [stdout] --> src/cpu_6502.rs:281:13 [INFO] [stdout] | [INFO] [stdout] 281 | let cycle = addr & 0xFF00 != byte_lo << 8; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_cycle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/cpu_6502.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 194 | (((bus.read(addr & 0xFF00) as u16) << 8) | bus.read(addr) as u16) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/cpu_6502.rs:196:13 [INFO] [stdout] | [INFO] [stdout] 196 | (((bus.read(addr + 1) as u16) << 8) | bus.read(addr) as u16) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cpu_6502.rs:460:13 [INFO] [stdout] | [INFO] [stdout] 460 | let mut additional_cycles = if (self.pc & 0xFF00) != (old_pc & 0xFF00) { [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `MOS6502` [INFO] [stdout] --> src/cpu_6502.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct MOS6502 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Flags` [INFO] [stdout] --> src/cpu_6502.rs:20:6 [INFO] [stdout] | [INFO] [stdout] 20 | enum Flags { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `AddrRes` [INFO] [stdout] --> src/cpu_6502.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | struct AddrRes { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/cpu_6502.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn new(addr: u16, cycle: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `AddrMode` [INFO] [stdout] --> src/cpu_6502.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | type AddrMode = fn(&mut MOS6502, &mut Bus) -> AddrRes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/cpu_6502.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_flag` [INFO] [stdout] --> src/cpu_6502.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | fn set_flag(&mut self, flag: Flags, val: bool) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_flag` [INFO] [stdout] --> src/cpu_6502.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | fn get_flag(&self, flag: Flags) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `stack_push` [INFO] [stdout] --> src/cpu_6502.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | fn stack_push(&mut self, byte: u8, bus: &mut Bus) -> Result<(), &str> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `stack_pop` [INFO] [stdout] --> src/cpu_6502.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | fn stack_pop(&mut self, bus: &mut Bus) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_opcode` [INFO] [stdout] --> src/cpu_6502.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 96 | fn read_opcode(&mut self, bus: &mut Bus) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `tick` [INFO] [stdout] --> src/cpu_6502.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | fn tick(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `addr_implied` [INFO] [stdout] --> src/cpu_6502.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | fn addr_implied(&mut self, bus: &mut Bus) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `addr_acc` [INFO] [stdout] --> src/cpu_6502.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 125 | fn addr_acc(&mut self, bus: &mut Bus) -> AddrRes { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `addr_immediate` [INFO] [stdout] --> src/cpu_6502.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 132 | fn addr_immediate(&mut self, bus: &mut Bus) -> AddrRes { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `addr_relative` [INFO] [stdout] --> src/cpu_6502.rs:143:8 [INFO] [stdout] | [INFO] [stdout] 143 | fn addr_relative(&mut self, bus: &mut Bus) -> AddrRes { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `addr_zero_pg` [INFO] [stdout] --> src/cpu_6502.rs:159:8 [INFO] [stdout] | [INFO] [stdout] 159 | fn addr_zero_pg(&mut self, bus: &mut Bus) -> AddrRes { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `addr_absolute` [INFO] [stdout] --> src/cpu_6502.rs:168:8 [INFO] [stdout] | [INFO] [stdout] 168 | fn addr_absolute(&mut self, bus: &mut Bus) -> AddrRes { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `addr_indirect` [INFO] [stdout] --> src/cpu_6502.rs:185:8 [INFO] [stdout] | [INFO] [stdout] 185 | fn addr_indirect(&mut self, bus: &mut Bus) -> AddrRes { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `addr_zero_pg_x` [INFO] [stdout] --> src/cpu_6502.rs:204:8 [INFO] [stdout] | [INFO] [stdout] 204 | fn addr_zero_pg_x(&mut self, bus: &mut Bus) -> AddrRes { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `addr_zero_pg_y` [INFO] [stdout] --> src/cpu_6502.rs:212:8 [INFO] [stdout] | [INFO] [stdout] 212 | fn addr_zero_pg_y(&mut self, bus: &mut Bus) -> AddrRes { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `addr_absolute_x` [INFO] [stdout] --> src/cpu_6502.rs:220:8 [INFO] [stdout] | [INFO] [stdout] 220 | fn addr_absolute_x(&mut self, bus: &mut Bus) -> AddrRes { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `addr_absolute_y` [INFO] [stdout] --> src/cpu_6502.rs:236:8 [INFO] [stdout] | [INFO] [stdout] 236 | fn addr_absolute_y(&mut self, bus: &mut Bus) -> AddrRes { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `addr_idx_indirect` [INFO] [stdout] --> src/cpu_6502.rs:255:8 [INFO] [stdout] | [INFO] [stdout] 255 | fn addr_idx_indirect(&mut self, bus: &mut Bus) -> AddrRes { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `addr_indirect_idx` [INFO] [stdout] --> src/cpu_6502.rs:272:8 [INFO] [stdout] | [INFO] [stdout] 272 | fn addr_indirect_idx(&mut self, bus: &mut Bus) -> AddrRes { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `opcode_adc` [INFO] [stdout] --> src/cpu_6502.rs:305:8 [INFO] [stdout] | [INFO] [stdout] 305 | fn opcode_adc(&mut self, bus: &mut Bus, addr_mode: fn(&mut Self, &Bus) -> AddrRes) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `opcode_and` [INFO] [stdout] --> src/cpu_6502.rs:331:8 [INFO] [stdout] | [INFO] [stdout] 331 | fn opcode_and(&mut self, bus: &mut Bus, addr_mode: fn(&mut Self, &mut Bus) -> AddrRes) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `opcode_asl` [INFO] [stdout] --> src/cpu_6502.rs:356:8 [INFO] [stdout] | [INFO] [stdout] 356 | fn opcode_asl(&mut self, bus: &mut Bus, addr_mode: fn(&mut Self, &mut Bus) -> AddrRes) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `opcode_bcc` [INFO] [stdout] --> src/cpu_6502.rs:394:8 [INFO] [stdout] | [INFO] [stdout] 394 | fn opcode_bcc(&mut self, bus: &mut Bus, addr_mode: fn(&mut Self, &mut Bus) -> AddrRes) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `opcode_bcs` [INFO] [stdout] --> src/cpu_6502.rs:421:8 [INFO] [stdout] | [INFO] [stdout] 421 | fn opcode_bcs(&mut self, bus: &mut Bus, addr_mode: fn(&mut Self, &mut Bus) -> AddrRes) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `opcode_beq` [INFO] [stdout] --> src/cpu_6502.rs:449:8 [INFO] [stdout] | [INFO] [stdout] 449 | fn opcode_beq(&mut self, bus: &mut Bus, addr_mode: fn(&mut Self, &mut Bus) -> AddrRes) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `opcode_bit` [INFO] [stdout] --> src/cpu_6502.rs:476:8 [INFO] [stdout] | [INFO] [stdout] 476 | fn opcode_bit(&mut self, bus: &mut Bus, addr_mode: AddrMode) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `opcode_bmi` [INFO] [stdout] --> src/cpu_6502.rs:494:8 [INFO] [stdout] | [INFO] [stdout] 494 | fn opcode_bmi(&mut self, bus: &mut Bus, addr_mode: AddrMode) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `opcode_bne` [INFO] [stdout] --> src/cpu_6502.rs:510:8 [INFO] [stdout] | [INFO] [stdout] 510 | fn opcode_bne(&mut self, bus: &mut Bus, addr_mode: AddrMode) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Bus` [INFO] [stdout] --> src/cpu_bus.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Bus { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/cpu_bus.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read` [INFO] [stdout] --> src/cpu_bus.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn read(&mut self, addr: u16) -> u8 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write` [INFO] [stdout] --> src/cpu_bus.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn write(&mut self, addr: u16, byte: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bus` [INFO] [stdout] --> src/cpu_6502.rs:119:32 [INFO] [stdout] | [INFO] [stdout] 119 | fn addr_implied(&mut self, bus: &mut Bus) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bus` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bus` [INFO] [stdout] --> src/cpu_6502.rs:125:28 [INFO] [stdout] | [INFO] [stdout] 125 | fn addr_acc(&mut self, bus: &mut Bus) -> AddrRes { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bus` [INFO] [stdout] --> src/cpu_6502.rs:132:34 [INFO] [stdout] | [INFO] [stdout] 132 | fn addr_immediate(&mut self, bus: &mut Bus) -> AddrRes { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cycle` [INFO] [stdout] --> src/cpu_6502.rs:281:13 [INFO] [stdout] | [INFO] [stdout] 281 | let cycle = addr & 0xFF00 != byte_lo << 8; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_cycle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cpu_6502.rs:460:13 [INFO] [stdout] | [INFO] [stdout] 460 | let mut additional_cycles = if (self.pc & 0xFF00) != (old_pc & 0xFF00) { [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `MOS6502` [INFO] [stdout] --> src/cpu_6502.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct MOS6502 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Flags` [INFO] [stdout] --> src/cpu_6502.rs:20:6 [INFO] [stdout] | [INFO] [stdout] 20 | enum Flags { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `AddrRes` [INFO] [stdout] --> src/cpu_6502.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | struct AddrRes { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/cpu_6502.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn new(addr: u16, cycle: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `AddrMode` [INFO] [stdout] --> src/cpu_6502.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | type AddrMode = fn(&mut MOS6502, &mut Bus) -> AddrRes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/cpu_6502.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_flag` [INFO] [stdout] --> src/cpu_6502.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | fn set_flag(&mut self, flag: Flags, val: bool) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_flag` [INFO] [stdout] --> src/cpu_6502.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | fn get_flag(&self, flag: Flags) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `stack_push` [INFO] [stdout] --> src/cpu_6502.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | fn stack_push(&mut self, byte: u8, bus: &mut Bus) -> Result<(), &str> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `stack_pop` [INFO] [stdout] --> src/cpu_6502.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | fn stack_pop(&mut self, bus: &mut Bus) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_opcode` [INFO] [stdout] --> src/cpu_6502.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 96 | fn read_opcode(&mut self, bus: &mut Bus) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `tick` [INFO] [stdout] --> src/cpu_6502.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | fn tick(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `addr_implied` [INFO] [stdout] --> src/cpu_6502.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | fn addr_implied(&mut self, bus: &mut Bus) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `addr_acc` [INFO] [stdout] --> src/cpu_6502.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 125 | fn addr_acc(&mut self, bus: &mut Bus) -> AddrRes { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `addr_immediate` [INFO] [stdout] --> src/cpu_6502.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 132 | fn addr_immediate(&mut self, bus: &mut Bus) -> AddrRes { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `addr_relative` [INFO] [stdout] --> src/cpu_6502.rs:143:8 [INFO] [stdout] | [INFO] [stdout] 143 | fn addr_relative(&mut self, bus: &mut Bus) -> AddrRes { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `addr_zero_pg` [INFO] [stdout] --> src/cpu_6502.rs:159:8 [INFO] [stdout] | [INFO] [stdout] 159 | fn addr_zero_pg(&mut self, bus: &mut Bus) -> AddrRes { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `addr_absolute` [INFO] [stdout] --> src/cpu_6502.rs:168:8 [INFO] [stdout] | [INFO] [stdout] 168 | fn addr_absolute(&mut self, bus: &mut Bus) -> AddrRes { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `addr_indirect` [INFO] [stdout] --> src/cpu_6502.rs:185:8 [INFO] [stdout] | [INFO] [stdout] 185 | fn addr_indirect(&mut self, bus: &mut Bus) -> AddrRes { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `addr_zero_pg_x` [INFO] [stdout] --> src/cpu_6502.rs:204:8 [INFO] [stdout] | [INFO] [stdout] 204 | fn addr_zero_pg_x(&mut self, bus: &mut Bus) -> AddrRes { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `addr_zero_pg_y` [INFO] [stdout] --> src/cpu_6502.rs:212:8 [INFO] [stdout] | [INFO] [stdout] 212 | fn addr_zero_pg_y(&mut self, bus: &mut Bus) -> AddrRes { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `addr_absolute_x` [INFO] [stdout] --> src/cpu_6502.rs:220:8 [INFO] [stdout] | [INFO] [stdout] 220 | fn addr_absolute_x(&mut self, bus: &mut Bus) -> AddrRes { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `addr_absolute_y` [INFO] [stdout] --> src/cpu_6502.rs:236:8 [INFO] [stdout] | [INFO] [stdout] 236 | fn addr_absolute_y(&mut self, bus: &mut Bus) -> AddrRes { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `addr_idx_indirect` [INFO] [stdout] --> src/cpu_6502.rs:255:8 [INFO] [stdout] | [INFO] [stdout] 255 | fn addr_idx_indirect(&mut self, bus: &mut Bus) -> AddrRes { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `addr_indirect_idx` [INFO] [stdout] --> src/cpu_6502.rs:272:8 [INFO] [stdout] | [INFO] [stdout] 272 | fn addr_indirect_idx(&mut self, bus: &mut Bus) -> AddrRes { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `opcode_adc` [INFO] [stdout] --> src/cpu_6502.rs:305:8 [INFO] [stdout] | [INFO] [stdout] 305 | fn opcode_adc(&mut self, bus: &mut Bus, addr_mode: fn(&mut Self, &Bus) -> AddrRes) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `opcode_and` [INFO] [stdout] --> src/cpu_6502.rs:331:8 [INFO] [stdout] | [INFO] [stdout] 331 | fn opcode_and(&mut self, bus: &mut Bus, addr_mode: fn(&mut Self, &mut Bus) -> AddrRes) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `opcode_asl` [INFO] [stdout] --> src/cpu_6502.rs:356:8 [INFO] [stdout] | [INFO] [stdout] 356 | fn opcode_asl(&mut self, bus: &mut Bus, addr_mode: fn(&mut Self, &mut Bus) -> AddrRes) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `opcode_bcc` [INFO] [stdout] --> src/cpu_6502.rs:394:8 [INFO] [stdout] | [INFO] [stdout] 394 | fn opcode_bcc(&mut self, bus: &mut Bus, addr_mode: fn(&mut Self, &mut Bus) -> AddrRes) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `opcode_bcs` [INFO] [stdout] --> src/cpu_6502.rs:421:8 [INFO] [stdout] | [INFO] [stdout] 421 | fn opcode_bcs(&mut self, bus: &mut Bus, addr_mode: fn(&mut Self, &mut Bus) -> AddrRes) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `opcode_beq` [INFO] [stdout] --> src/cpu_6502.rs:449:8 [INFO] [stdout] | [INFO] [stdout] 449 | fn opcode_beq(&mut self, bus: &mut Bus, addr_mode: fn(&mut Self, &mut Bus) -> AddrRes) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `opcode_bit` [INFO] [stdout] --> src/cpu_6502.rs:476:8 [INFO] [stdout] | [INFO] [stdout] 476 | fn opcode_bit(&mut self, bus: &mut Bus, addr_mode: AddrMode) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `opcode_bmi` [INFO] [stdout] --> src/cpu_6502.rs:494:8 [INFO] [stdout] | [INFO] [stdout] 494 | fn opcode_bmi(&mut self, bus: &mut Bus, addr_mode: AddrMode) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `opcode_bne` [INFO] [stdout] --> src/cpu_6502.rs:510:8 [INFO] [stdout] | [INFO] [stdout] 510 | fn opcode_bne(&mut self, bus: &mut Bus, addr_mode: AddrMode) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Bus` [INFO] [stdout] --> src/cpu_bus.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Bus { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/cpu_bus.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read` [INFO] [stdout] --> src/cpu_bus.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn read(&mut self, addr: u16) -> u8 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write` [INFO] [stdout] --> src/cpu_bus.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn write(&mut self, addr: u16, byte: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.66s [INFO] running `Command { std: "docker" "inspect" "72ddde22342df77c65d80ef598fdd8b271cba3f7731ba465aa0811fcff01b64e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72ddde22342df77c65d80ef598fdd8b271cba3f7731ba465aa0811fcff01b64e", kill_on_drop: false }` [INFO] [stdout] 72ddde22342df77c65d80ef598fdd8b271cba3f7731ba465aa0811fcff01b64e