[INFO] cloning repository https://github.com/tyko-everest/gameboy-emulator [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tyko-everest/gameboy-emulator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftyko-everest%2Fgameboy-emulator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftyko-everest%2Fgameboy-emulator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cf12df546aa5e0160b8cdd639a72b089917b322e [INFO] checking tyko-everest/gameboy-emulator against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftyko-everest%2Fgameboy-emulator" "/workspace/builds/worker-89/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-89/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tyko-everest/gameboy-emulator on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/tyko-everest/gameboy-emulator [INFO] finished tweaking git repo https://github.com/tyko-everest/gameboy-emulator [INFO] tweaked toml for git repo https://github.com/tyko-everest/gameboy-emulator written to /workspace/builds/worker-89/source/Cargo.toml [INFO] crate git repo https://github.com/tyko-everest/gameboy-emulator already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-89/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-89/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ce1cf60a3ecab024e1d124bb155cc637791ae8a4a9431cf63e7cae97935c4f4d [INFO] running `Command { std: "docker" "start" "-a" "ce1cf60a3ecab024e1d124bb155cc637791ae8a4a9431cf63e7cae97935c4f4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ce1cf60a3ecab024e1d124bb155cc637791ae8a4a9431cf63e7cae97935c4f4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ce1cf60a3ecab024e1d124bb155cc637791ae8a4a9431cf63e7cae97935c4f4d", kill_on_drop: false }` [INFO] [stdout] ce1cf60a3ecab024e1d124bb155cc637791ae8a4a9431cf63e7cae97935c4f4d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-89/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-89/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7c5d4467b0165b0bda8b6634c43c5e660d3fa5da58c12fc6efc4f2207ce552b0 [INFO] running `Command { std: "docker" "start" "-a" "7c5d4467b0165b0bda8b6634c43c5e660d3fa5da58c12fc6efc4f2207ce552b0", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling proc-macro2 v1.0.28 [INFO] [stderr] Compiling syn v1.0.74 [INFO] [stderr] Checking ux v0.1.3 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-bigint v0.4.0 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking num-complex v0.4.0 [INFO] [stderr] Checking num v0.4.0 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Checking gameboy-emulator v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stdout] warning: enum is never used: `Flag` [INFO] [stdout] --> src/state.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Flag { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/state.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn get(flag: Flag, reg: u8) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set` [INFO] [stdout] --> src/state.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn set(flag: Flag, reg: &mut u8, cond: bool) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `CPUState` [INFO] [stdout] --> src/state.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct CPUState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/state.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new() -> CPUState { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Memory` [INFO] [stdout] --> src/state.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct Memory { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read` [INFO] [stdout] --> src/state.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn read(&self, addr: u16) -> u8 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write` [INFO] [stdout] --> src/state.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn write(&mut self, addr: u16, val: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/state.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn new(size: usize) -> Memory { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `will_overflow` [INFO] [stdout] --> src/instructions.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn will_overflow(a: u8, b: u8) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `adc` [INFO] [stdout] --> src/instructions.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn adc(a: u8, b: u8, sr: &mut u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `and` [INFO] [stdout] --> src/instructions.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn and(a: u8, b: u8, sr: &mut u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `asl` [INFO] [stdout] --> src/instructions.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn asl(a: u8, sr: &mut u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_offset` [INFO] [stdout] --> src/instructions.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn add_offset(mut pc: u16, offset: i8) -> u16 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bcc` [INFO] [stdout] --> src/instructions.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn bcc(offset: i8, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bcs` [INFO] [stdout] --> src/instructions.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn bcs(offset: i8, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `beq` [INFO] [stdout] --> src/instructions.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn beq(offset: i8, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bmi` [INFO] [stdout] --> src/instructions.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn bmi(offset: i8, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bne` [INFO] [stdout] --> src/instructions.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn bne(offset: i8, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bpl` [INFO] [stdout] --> src/instructions.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn bpl(offset: i8, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bvc` [INFO] [stdout] --> src/instructions.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn bvc(offset: i8, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bvs` [INFO] [stdout] --> src/instructions.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn bvs(offset: i8, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `clc` [INFO] [stdout] --> src/instructions.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn clc(sr: &mut u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cld` [INFO] [stdout] --> src/instructions.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn cld(sr: &mut u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cli` [INFO] [stdout] --> src/instructions.rs:108:8 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn cli(sr: &mut u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `clv` [INFO] [stdout] --> src/instructions.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn clv(sr: &mut u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cmp` [INFO] [stdout] --> src/instructions.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | pub fn cmp(a: u8, b: u8, sr: &mut u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dec` [INFO] [stdout] --> src/instructions.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn dec(a: u8, sr: &mut u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `eor` [INFO] [stdout] --> src/instructions.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn eor(a: u8, b: u8, sr: &mut u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `inc` [INFO] [stdout] --> src/instructions.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn inc(a: u8, sr: &mut u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `jmp` [INFO] [stdout] --> src/instructions.rs:148:8 [INFO] [stdout] | [INFO] [stdout] 148 | pub fn jmp(addr: u16, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ldn` [INFO] [stdout] --> src/instructions.rs:153:8 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn ldn(a: u8, sr: &mut u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `lsr` [INFO] [stdout] --> src/instructions.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn lsr(a: u8, sr: &mut u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ora` [INFO] [stdout] --> src/instructions.rs:168:8 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn ora(a: u8, b: u8, sr: &mut u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rol` [INFO] [stdout] --> src/instructions.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn rol(a: u8, sr: &mut u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ror` [INFO] [stdout] --> src/instructions.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | pub fn ror(a: u8, sr: &mut u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sbc` [INFO] [stdout] --> src/instructions.rs:197:8 [INFO] [stdout] | [INFO] [stdout] 197 | pub fn sbc(a: u8, b: u8, sr: &mut u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sec` [INFO] [stdout] --> src/instructions.rs:208:8 [INFO] [stdout] | [INFO] [stdout] 208 | pub fn sec(sr: &mut u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sed` [INFO] [stdout] --> src/instructions.rs:212:8 [INFO] [stdout] | [INFO] [stdout] 212 | pub fn sed(sr: &mut u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sei` [INFO] [stdout] --> src/instructions.rs:216:8 [INFO] [stdout] | [INFO] [stdout] 216 | pub fn sei(sr: &mut u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tax` [INFO] [stdout] --> src/instructions.rs:222:8 [INFO] [stdout] | [INFO] [stdout] 222 | pub fn tax(state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tay` [INFO] [stdout] --> src/instructions.rs:228:8 [INFO] [stdout] | [INFO] [stdout] 228 | pub fn tay(state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tsx` [INFO] [stdout] --> src/instructions.rs:234:8 [INFO] [stdout] | [INFO] [stdout] 234 | pub fn tsx(state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `txa` [INFO] [stdout] --> src/instructions.rs:240:8 [INFO] [stdout] | [INFO] [stdout] 240 | pub fn txa(state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `txs` [INFO] [stdout] --> src/instructions.rs:246:8 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn txs(state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tya` [INFO] [stdout] --> src/instructions.rs:252:8 [INFO] [stdout] | [INFO] [stdout] 252 | pub fn tya(state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_addr_from_opcode` [INFO] [stdout] --> src/main.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn get_addr_from_opcode(opcode: u8, state: &CPUState, memory: &mut Memory) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `step_instr` [INFO] [stdout] --> src/main.rs:72:4 [INFO] [stdout] | [INFO] [stdout] 72 | fn step_instr(state: &mut CPUState, memory: &mut Memory) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Interrupt` [INFO] [stdout] --> src/state.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | Interrupt = 2, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Decimal` [INFO] [stdout] --> src/state.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | Decimal = 3, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Break` [INFO] [stdout] --> src/state.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Break = 4, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_offset` [INFO] [stdout] --> src/instructions.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn add_offset(mut pc: u16, offset: i8) -> u16 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bcc` [INFO] [stdout] --> src/instructions.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn bcc(offset: i8, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bcs` [INFO] [stdout] --> src/instructions.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn bcs(offset: i8, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `beq` [INFO] [stdout] --> src/instructions.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn beq(offset: i8, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bmi` [INFO] [stdout] --> src/instructions.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn bmi(offset: i8, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bne` [INFO] [stdout] --> src/instructions.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn bne(offset: i8, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bpl` [INFO] [stdout] --> src/instructions.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn bpl(offset: i8, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bvc` [INFO] [stdout] --> src/instructions.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn bvc(offset: i8, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bvs` [INFO] [stdout] --> src/instructions.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn bvs(offset: i8, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `clc` [INFO] [stdout] --> src/instructions.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn clc(sr: &mut u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cld` [INFO] [stdout] --> src/instructions.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn cld(sr: &mut u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cli` [INFO] [stdout] --> src/instructions.rs:108:8 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn cli(sr: &mut u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `clv` [INFO] [stdout] --> src/instructions.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn clv(sr: &mut u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dec` [INFO] [stdout] --> src/instructions.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn dec(a: u8, sr: &mut u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `inc` [INFO] [stdout] --> src/instructions.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn inc(a: u8, sr: &mut u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `jmp` [INFO] [stdout] --> src/instructions.rs:148:8 [INFO] [stdout] | [INFO] [stdout] 148 | pub fn jmp(addr: u16, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ldn` [INFO] [stdout] --> src/instructions.rs:153:8 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn ldn(a: u8, sr: &mut u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `lsr` [INFO] [stdout] --> src/instructions.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn lsr(a: u8, sr: &mut u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ror` [INFO] [stdout] --> src/instructions.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | pub fn ror(a: u8, sr: &mut u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sec` [INFO] [stdout] --> src/instructions.rs:208:8 [INFO] [stdout] | [INFO] [stdout] 208 | pub fn sec(sr: &mut u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sed` [INFO] [stdout] --> src/instructions.rs:212:8 [INFO] [stdout] | [INFO] [stdout] 212 | pub fn sed(sr: &mut u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sei` [INFO] [stdout] --> src/instructions.rs:216:8 [INFO] [stdout] | [INFO] [stdout] 216 | pub fn sei(sr: &mut u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tax` [INFO] [stdout] --> src/instructions.rs:222:8 [INFO] [stdout] | [INFO] [stdout] 222 | pub fn tax(state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tay` [INFO] [stdout] --> src/instructions.rs:228:8 [INFO] [stdout] | [INFO] [stdout] 228 | pub fn tay(state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tsx` [INFO] [stdout] --> src/instructions.rs:234:8 [INFO] [stdout] | [INFO] [stdout] 234 | pub fn tsx(state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `txa` [INFO] [stdout] --> src/instructions.rs:240:8 [INFO] [stdout] | [INFO] [stdout] 240 | pub fn txa(state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `txs` [INFO] [stdout] --> src/instructions.rs:246:8 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn txs(state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tya` [INFO] [stdout] --> src/instructions.rs:252:8 [INFO] [stdout] | [INFO] [stdout] 252 | pub fn tya(state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 13.85s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking gameboy-emulator v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: variant is never constructed: `Interrupt` [INFO] [stdout] --> src/state.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | Interrupt = 2, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Decimal` [INFO] [stdout] --> src/state.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | Decimal = 3, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Break` [INFO] [stdout] --> src/state.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Break = 4, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_offset` [INFO] [stdout] --> src/instructions.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn add_offset(mut pc: u16, offset: i8) -> u16 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bcc` [INFO] [stdout] --> src/instructions.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn bcc(offset: i8, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bcs` [INFO] [stdout] --> src/instructions.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn bcs(offset: i8, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `beq` [INFO] [stdout] --> src/instructions.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn beq(offset: i8, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bmi` [INFO] [stdout] --> src/instructions.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn bmi(offset: i8, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bne` [INFO] [stdout] --> src/instructions.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn bne(offset: i8, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bpl` [INFO] [stdout] --> src/instructions.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn bpl(offset: i8, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bvc` [INFO] [stdout] --> src/instructions.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn bvc(offset: i8, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bvs` [INFO] [stdout] --> src/instructions.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn bvs(offset: i8, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `clc` [INFO] [stdout] --> src/instructions.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn clc(sr: &mut u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cld` [INFO] [stdout] --> src/instructions.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn cld(sr: &mut u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cli` [INFO] [stdout] --> src/instructions.rs:108:8 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn cli(sr: &mut u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `clv` [INFO] [stdout] --> src/instructions.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn clv(sr: &mut u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dec` [INFO] [stdout] --> src/instructions.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn dec(a: u8, sr: &mut u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `inc` [INFO] [stdout] --> src/instructions.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn inc(a: u8, sr: &mut u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `jmp` [INFO] [stdout] --> src/instructions.rs:148:8 [INFO] [stdout] | [INFO] [stdout] 148 | pub fn jmp(addr: u16, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ldn` [INFO] [stdout] --> src/instructions.rs:153:8 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn ldn(a: u8, sr: &mut u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `lsr` [INFO] [stdout] --> src/instructions.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn lsr(a: u8, sr: &mut u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ror` [INFO] [stdout] --> src/instructions.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | pub fn ror(a: u8, sr: &mut u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sec` [INFO] [stdout] --> src/instructions.rs:208:8 [INFO] [stdout] | [INFO] [stdout] 208 | pub fn sec(sr: &mut u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sed` [INFO] [stdout] --> src/instructions.rs:212:8 [INFO] [stdout] | [INFO] [stdout] 212 | pub fn sed(sr: &mut u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sei` [INFO] [stdout] --> src/instructions.rs:216:8 [INFO] [stdout] | [INFO] [stdout] 216 | pub fn sei(sr: &mut u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tax` [INFO] [stdout] --> src/instructions.rs:222:8 [INFO] [stdout] | [INFO] [stdout] 222 | pub fn tax(state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tay` [INFO] [stdout] --> src/instructions.rs:228:8 [INFO] [stdout] | [INFO] [stdout] 228 | pub fn tay(state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tsx` [INFO] [stdout] --> src/instructions.rs:234:8 [INFO] [stdout] | [INFO] [stdout] 234 | pub fn tsx(state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `txa` [INFO] [stdout] --> src/instructions.rs:240:8 [INFO] [stdout] | [INFO] [stdout] 240 | pub fn txa(state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `txs` [INFO] [stdout] --> src/instructions.rs:246:8 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn txs(state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tya` [INFO] [stdout] --> src/instructions.rs:252:8 [INFO] [stdout] | [INFO] [stdout] 252 | pub fn tya(state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Flag` [INFO] [stdout] --> src/state.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Flag { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/state.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn get(flag: Flag, reg: u8) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set` [INFO] [stdout] --> src/state.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn set(flag: Flag, reg: &mut u8, cond: bool) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `CPUState` [INFO] [stdout] --> src/state.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct CPUState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/state.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new() -> CPUState { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Memory` [INFO] [stdout] --> src/state.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct Memory { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read` [INFO] [stdout] --> src/state.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn read(&self, addr: u16) -> u8 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write` [INFO] [stdout] --> src/state.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn write(&mut self, addr: u16, val: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/state.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn new(size: usize) -> Memory { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `will_overflow` [INFO] [stdout] --> src/instructions.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn will_overflow(a: u8, b: u8) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `adc` [INFO] [stdout] --> src/instructions.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn adc(a: u8, b: u8, sr: &mut u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `and` [INFO] [stdout] --> src/instructions.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn and(a: u8, b: u8, sr: &mut u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `asl` [INFO] [stdout] --> src/instructions.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn asl(a: u8, sr: &mut u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_offset` [INFO] [stdout] --> src/instructions.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn add_offset(mut pc: u16, offset: i8) -> u16 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bcc` [INFO] [stdout] --> src/instructions.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn bcc(offset: i8, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bcs` [INFO] [stdout] --> src/instructions.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn bcs(offset: i8, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `beq` [INFO] [stdout] --> src/instructions.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn beq(offset: i8, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bmi` [INFO] [stdout] --> src/instructions.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn bmi(offset: i8, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bne` [INFO] [stdout] --> src/instructions.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn bne(offset: i8, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bpl` [INFO] [stdout] --> src/instructions.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn bpl(offset: i8, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bvc` [INFO] [stdout] --> src/instructions.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn bvc(offset: i8, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bvs` [INFO] [stdout] --> src/instructions.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn bvs(offset: i8, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `clc` [INFO] [stdout] --> src/instructions.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn clc(sr: &mut u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cld` [INFO] [stdout] --> src/instructions.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn cld(sr: &mut u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cli` [INFO] [stdout] --> src/instructions.rs:108:8 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn cli(sr: &mut u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `clv` [INFO] [stdout] --> src/instructions.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn clv(sr: &mut u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cmp` [INFO] [stdout] --> src/instructions.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | pub fn cmp(a: u8, b: u8, sr: &mut u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dec` [INFO] [stdout] --> src/instructions.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn dec(a: u8, sr: &mut u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `eor` [INFO] [stdout] --> src/instructions.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn eor(a: u8, b: u8, sr: &mut u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `inc` [INFO] [stdout] --> src/instructions.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn inc(a: u8, sr: &mut u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `jmp` [INFO] [stdout] --> src/instructions.rs:148:8 [INFO] [stdout] | [INFO] [stdout] 148 | pub fn jmp(addr: u16, state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ldn` [INFO] [stdout] --> src/instructions.rs:153:8 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn ldn(a: u8, sr: &mut u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `lsr` [INFO] [stdout] --> src/instructions.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn lsr(a: u8, sr: &mut u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ora` [INFO] [stdout] --> src/instructions.rs:168:8 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn ora(a: u8, b: u8, sr: &mut u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rol` [INFO] [stdout] --> src/instructions.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn rol(a: u8, sr: &mut u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ror` [INFO] [stdout] --> src/instructions.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | pub fn ror(a: u8, sr: &mut u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sbc` [INFO] [stdout] --> src/instructions.rs:197:8 [INFO] [stdout] | [INFO] [stdout] 197 | pub fn sbc(a: u8, b: u8, sr: &mut u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sec` [INFO] [stdout] --> src/instructions.rs:208:8 [INFO] [stdout] | [INFO] [stdout] 208 | pub fn sec(sr: &mut u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sed` [INFO] [stdout] --> src/instructions.rs:212:8 [INFO] [stdout] | [INFO] [stdout] 212 | pub fn sed(sr: &mut u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sei` [INFO] [stdout] --> src/instructions.rs:216:8 [INFO] [stdout] | [INFO] [stdout] 216 | pub fn sei(sr: &mut u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tax` [INFO] [stdout] --> src/instructions.rs:222:8 [INFO] [stdout] | [INFO] [stdout] 222 | pub fn tax(state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tay` [INFO] [stdout] --> src/instructions.rs:228:8 [INFO] [stdout] | [INFO] [stdout] 228 | pub fn tay(state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tsx` [INFO] [stdout] --> src/instructions.rs:234:8 [INFO] [stdout] | [INFO] [stdout] 234 | pub fn tsx(state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `txa` [INFO] [stdout] --> src/instructions.rs:240:8 [INFO] [stdout] | [INFO] [stdout] 240 | pub fn txa(state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `txs` [INFO] [stdout] --> src/instructions.rs:246:8 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn txs(state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tya` [INFO] [stdout] --> src/instructions.rs:252:8 [INFO] [stdout] | [INFO] [stdout] 252 | pub fn tya(state: &mut CPUState) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_addr_from_opcode` [INFO] [stdout] --> src/main.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn get_addr_from_opcode(opcode: u8, state: &CPUState, memory: &mut Memory) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `step_instr` [INFO] [stdout] --> src/main.rs:72:4 [INFO] [stdout] | [INFO] [stdout] 72 | fn step_instr(state: &mut CPUState, memory: &mut Memory) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.25s [INFO] running `Command { std: "docker" "inspect" "7c5d4467b0165b0bda8b6634c43c5e660d3fa5da58c12fc6efc4f2207ce552b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c5d4467b0165b0bda8b6634c43c5e660d3fa5da58c12fc6efc4f2207ce552b0", kill_on_drop: false }` [INFO] [stdout] 7c5d4467b0165b0bda8b6634c43c5e660d3fa5da58c12fc6efc4f2207ce552b0