[INFO] cloning repository https://github.com/fChristenson/nes-emulator [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fChristenson/nes-emulator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FfChristenson%2Fnes-emulator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FfChristenson%2Fnes-emulator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 522c12dc9b70240911959eb1abd505dca2d93bae [INFO] checking fChristenson/nes-emulator against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FfChristenson%2Fnes-emulator" "/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/fChristenson/nes-emulator on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/fChristenson/nes-emulator [INFO] finished tweaking git repo https://github.com/fChristenson/nes-emulator [INFO] tweaked toml for git repo https://github.com/fChristenson/nes-emulator written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/fChristenson/nes-emulator already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "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" "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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e26fd2544fac1f19e2bf171455003165abf817b8df68bc04f8edb9af22627084 [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" "e26fd2544fac1f19e2bf171455003165abf817b8df68bc04f8edb9af22627084", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e26fd2544fac1f19e2bf171455003165abf817b8df68bc04f8edb9af22627084", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e26fd2544fac1f19e2bf171455003165abf817b8df68bc04f8edb9af22627084", kill_on_drop: false }` [INFO] [stdout] e26fd2544fac1f19e2bf171455003165abf817b8df68bc04f8edb9af22627084 [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" "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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9421b701f650db7495e7de4dde14923ac4f165d61cd7a33f84c86df30329fd3b [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" "9421b701f650db7495e7de4dde14923ac4f165d61cd7a33f84c86df30329fd3b", kill_on_drop: false }` [INFO] [stderr] Checking nes-emulator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib/instructions.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 33 | operation: Box u8>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&Cpu, u8, &Parameter) -> u8` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib/instructions.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 33 | operation: Box u8>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&Cpu, u8, &Parameter) -> u8` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/instruction_operations.rs:4:28 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn adc_immediate_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [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: `memoryAddress` [INFO] [stdout] --> src/lib/instruction_operations.rs:4:39 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn adc_immediate_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_memoryAddress` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/lib/instruction_operations.rs:4:58 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn adc_immediate_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/instruction_operations.rs:8:28 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn adc_zero_page_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memoryAddress` [INFO] [stdout] --> src/lib/instruction_operations.rs:8:39 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn adc_zero_page_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_memoryAddress` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/lib/instruction_operations.rs:8:58 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn adc_zero_page_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/instruction_operations.rs:12:30 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn adc_zero_page_x_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memoryAddress` [INFO] [stdout] --> src/lib/instruction_operations.rs:12:41 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn adc_zero_page_x_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_memoryAddress` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/lib/instruction_operations.rs:12:60 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn adc_zero_page_x_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/instruction_operations.rs:16:27 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn adc_absolute_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memoryAddress` [INFO] [stdout] --> src/lib/instruction_operations.rs:16:38 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn adc_absolute_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_memoryAddress` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/lib/instruction_operations.rs:16:57 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn adc_absolute_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/instruction_operations.rs:20:29 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn adc_absolute_x_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memoryAddress` [INFO] [stdout] --> src/lib/instruction_operations.rs:20:40 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn adc_absolute_x_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_memoryAddress` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/lib/instruction_operations.rs:20:59 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn adc_absolute_x_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/instruction_operations.rs:24:29 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn adc_absolute_y_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memoryAddress` [INFO] [stdout] --> src/lib/instruction_operations.rs:24:40 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn adc_absolute_y_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_memoryAddress` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/lib/instruction_operations.rs:24:59 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn adc_absolute_y_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/instruction_operations.rs:28:35 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn adc_indexed_indirect_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memoryAddress` [INFO] [stdout] --> src/lib/instruction_operations.rs:28:46 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn adc_indexed_indirect_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_memoryAddress` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/lib/instruction_operations.rs:28:65 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn adc_indexed_indirect_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/instruction_operations.rs:32:35 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn adc_indirect_indexed_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memoryAddress` [INFO] [stdout] --> src/lib/instruction_operations.rs:32:46 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn adc_indirect_indexed_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_memoryAddress` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/lib/instruction_operations.rs:32:65 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn adc_indirect_indexed_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `P` [INFO] [stdout] --> src/lib/cpu.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct P { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `PRegisterFlag` [INFO] [stdout] --> src/lib/cpu.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum PRegisterFlag { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_bit` [INFO] [stdout] --> src/lib/cpu.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 17 | fn get_bit(&self, n: u8) -> u8 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `toggle_bit` [INFO] [stdout] --> src/lib/cpu.rs:22:6 [INFO] [stdout] | [INFO] [stdout] 22 | fn toggle_bit(&mut self, n: u8) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_bit` [INFO] [stdout] --> src/lib/cpu.rs:26:6 [INFO] [stdout] | [INFO] [stdout] 26 | fn set_bit(&mut self, n: u8, v: u8) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_flag_value` [INFO] [stdout] --> src/lib/cpu.rs:32:6 [INFO] [stdout] | [INFO] [stdout] 32 | fn get_flag_value(&self, flag: PRegisterFlag) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_flag_value` [INFO] [stdout] --> src/lib/cpu.rs:45:6 [INFO] [stdout] | [INFO] [stdout] 45 | fn set_flag_value(&mut self, flag: PRegisterFlag, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Cpu` [INFO] [stdout] --> src/lib/cpu.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct Cpu { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/lib/cpu.rs:69:10 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn new() -> Cpu { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `adc_immediate_logic` [INFO] [stdout] --> src/lib/instruction_operations.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn adc_immediate_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `adc_zero_page_logic` [INFO] [stdout] --> src/lib/instruction_operations.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn adc_zero_page_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `adc_zero_page_x_logic` [INFO] [stdout] --> src/lib/instruction_operations.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn adc_zero_page_x_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `adc_absolute_logic` [INFO] [stdout] --> src/lib/instruction_operations.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn adc_absolute_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `adc_absolute_x_logic` [INFO] [stdout] --> src/lib/instruction_operations.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn adc_absolute_x_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `adc_absolute_y_logic` [INFO] [stdout] --> src/lib/instruction_operations.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn adc_absolute_y_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `adc_indexed_indirect_logic` [INFO] [stdout] --> src/lib/instruction_operations.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn adc_indexed_indirect_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `adc_indirect_indexed_logic` [INFO] [stdout] --> src/lib/instruction_operations.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn adc_indirect_indexed_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `InstructionType` [INFO] [stdout] --> src/lib/instructions.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum InstructionType { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `AddressingMode` [INFO] [stdout] --> src/lib/instructions.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum AddressingMode { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Instruction` [INFO] [stdout] --> src/lib/instructions.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Instruction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `adc` [INFO] [stdout] --> src/lib/instructions.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn adc(addressing_mode: AddressingMode) -> Instruction { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `high_param` [INFO] [stdout] --> src/lib/instructions.rs:107:6 [INFO] [stdout] | [INFO] [stdout] 107 | fn high_param(memory: &mut Memory, low_address: u8) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `calculate_page_crossed_penalty` [INFO] [stdout] --> src/lib/instructions.rs:112:6 [INFO] [stdout] | [INFO] [stdout] 112 | fn calculate_page_crossed_penalty(address_before: u8, address_after: u8) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `execute` [INFO] [stdout] --> src/lib/instructions.rs:120:6 [INFO] [stdout] | [INFO] [stdout] 120 | fn execute(&self, cpu: &Cpu, memory: &mut Memory, starting_address: u8) -> u8 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Parameter` [INFO] [stdout] --> src/lib/parameter.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Parameter { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Stack` [INFO] [stdout] --> src/lib/stack.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Stack { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/lib/stack.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn new() -> Stack { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push` [INFO] [stdout] --> src/lib/stack.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn push(&mut self, memory: &mut Memory, value: u8) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop` [INFO] [stdout] --> src/lib/stack.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn pop(&mut self, memory: &mut Memory) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `memoryAddress` should have a snake case name [INFO] [stdout] --> src/lib/instruction_operations.rs:4:39 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn adc_immediate_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `memory_address` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `memoryAddress` should have a snake case name [INFO] [stdout] --> src/lib/instruction_operations.rs:8:39 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn adc_zero_page_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `memory_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `memoryAddress` should have a snake case name [INFO] [stdout] --> src/lib/instruction_operations.rs:12:41 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn adc_zero_page_x_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `memory_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `memoryAddress` should have a snake case name [INFO] [stdout] --> src/lib/instruction_operations.rs:16:38 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn adc_absolute_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `memory_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `memoryAddress` should have a snake case name [INFO] [stdout] --> src/lib/instruction_operations.rs:20:40 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn adc_absolute_x_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `memory_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `memoryAddress` should have a snake case name [INFO] [stdout] --> src/lib/instruction_operations.rs:24:40 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn adc_absolute_y_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `memory_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `memoryAddress` should have a snake case name [INFO] [stdout] --> src/lib/instruction_operations.rs:28:46 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn adc_indexed_indirect_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `memory_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `memoryAddress` should have a snake case name [INFO] [stdout] --> src/lib/instruction_operations.rs:32:46 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn adc_indirect_indexed_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `memory_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: literal out of range for u8 [INFO] [stdout] --> src/lib/instructions.rs:113:25 [INFO] [stdout] | [INFO] [stdout] 113 | if (address_after & 0xFF00) != (address_before & 0xFF00) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(overflowing_literals)]` on by default [INFO] [stdout] = note: the literal `0xFF00` (decimal `65280`) does not fit into the type `u8` and will become `0u8` [INFO] [stdout] = help: consider using `u16` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: literal out of range for u8 [INFO] [stdout] --> src/lib/instructions.rs:113:54 [INFO] [stdout] | [INFO] [stdout] 113 | if (address_after & 0xFF00) != (address_before & 0xFF00) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the literal `0xFF00` (decimal `65280`) does not fit into the type `u8` and will become `0u8` [INFO] [stdout] = help: consider using `u16` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: literal out of range for u8 [INFO] [stdout] --> src/lib/instructions.rs:203:40 [INFO] [stdout] | [INFO] [stdout] 203 | address_high = address_low & 0xFF00; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the literal `0xFF00` (decimal `65280`) does not fit into the type `u8` and will become `0u8` [INFO] [stdout] = help: consider using `u16` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: literal out of range for u8 [INFO] [stdout] --> src/lib/stack.rs:9:28 [INFO] [stdout] | [INFO] [stdout] 9 | Stack{stack_pointer: 0x01FF} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the literal `0x01FF` (decimal `511`) does not fit into the type `u8` and will become `255u8` [INFO] [stdout] = help: consider using `u16` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 62 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/instruction_operations.rs:4:28 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn adc_immediate_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [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: `memoryAddress` [INFO] [stdout] --> src/lib/instruction_operations.rs:4:39 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn adc_immediate_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_memoryAddress` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/lib/instruction_operations.rs:4:58 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn adc_immediate_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/instruction_operations.rs:8:28 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn adc_zero_page_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memoryAddress` [INFO] [stdout] --> src/lib/instruction_operations.rs:8:39 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn adc_zero_page_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_memoryAddress` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/lib/instruction_operations.rs:8:58 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn adc_zero_page_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/instruction_operations.rs:12:30 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn adc_zero_page_x_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memoryAddress` [INFO] [stdout] --> src/lib/instruction_operations.rs:12:41 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn adc_zero_page_x_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_memoryAddress` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `nes-emulator` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/lib/instruction_operations.rs:12:60 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn adc_zero_page_x_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/instruction_operations.rs:16:27 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn adc_absolute_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memoryAddress` [INFO] [stdout] --> src/lib/instruction_operations.rs:16:38 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn adc_absolute_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_memoryAddress` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/lib/instruction_operations.rs:16:57 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn adc_absolute_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/instruction_operations.rs:20:29 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn adc_absolute_x_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memoryAddress` [INFO] [stdout] --> src/lib/instruction_operations.rs:20:40 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn adc_absolute_x_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_memoryAddress` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/lib/instruction_operations.rs:20:59 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn adc_absolute_x_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/instruction_operations.rs:24:29 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn adc_absolute_y_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memoryAddress` [INFO] [stdout] --> src/lib/instruction_operations.rs:24:40 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn adc_absolute_y_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_memoryAddress` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/lib/instruction_operations.rs:24:59 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn adc_absolute_y_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/instruction_operations.rs:28:35 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn adc_indexed_indirect_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memoryAddress` [INFO] [stdout] --> src/lib/instruction_operations.rs:28:46 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn adc_indexed_indirect_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_memoryAddress` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/lib/instruction_operations.rs:28:65 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn adc_indexed_indirect_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/lib/instruction_operations.rs:32:35 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn adc_indirect_indexed_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memoryAddress` [INFO] [stdout] --> src/lib/instruction_operations.rs:32:46 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn adc_indirect_indexed_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_memoryAddress` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/lib/instruction_operations.rs:32:65 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn adc_indirect_indexed_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `P` [INFO] [stdout] --> src/lib/cpu.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct P { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `PRegisterFlag` [INFO] [stdout] --> src/lib/cpu.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum PRegisterFlag { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_bit` [INFO] [stdout] --> src/lib/cpu.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 17 | fn get_bit(&self, n: u8) -> u8 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `toggle_bit` [INFO] [stdout] --> src/lib/cpu.rs:22:6 [INFO] [stdout] | [INFO] [stdout] 22 | fn toggle_bit(&mut self, n: u8) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_bit` [INFO] [stdout] --> src/lib/cpu.rs:26:6 [INFO] [stdout] | [INFO] [stdout] 26 | fn set_bit(&mut self, n: u8, v: u8) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_flag_value` [INFO] [stdout] --> src/lib/cpu.rs:32:6 [INFO] [stdout] | [INFO] [stdout] 32 | fn get_flag_value(&self, flag: PRegisterFlag) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_flag_value` [INFO] [stdout] --> src/lib/cpu.rs:45:6 [INFO] [stdout] | [INFO] [stdout] 45 | fn set_flag_value(&mut self, flag: PRegisterFlag, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Cpu` [INFO] [stdout] --> src/lib/cpu.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct Cpu { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/lib/cpu.rs:69:10 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn new() -> Cpu { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `adc_immediate_logic` [INFO] [stdout] --> src/lib/instruction_operations.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn adc_immediate_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `adc_zero_page_logic` [INFO] [stdout] --> src/lib/instruction_operations.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn adc_zero_page_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `adc_zero_page_x_logic` [INFO] [stdout] --> src/lib/instruction_operations.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn adc_zero_page_x_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `adc_absolute_logic` [INFO] [stdout] --> src/lib/instruction_operations.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn adc_absolute_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `adc_absolute_x_logic` [INFO] [stdout] --> src/lib/instruction_operations.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn adc_absolute_x_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `adc_absolute_y_logic` [INFO] [stdout] --> src/lib/instruction_operations.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn adc_absolute_y_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `adc_indexed_indirect_logic` [INFO] [stdout] --> src/lib/instruction_operations.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn adc_indexed_indirect_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `adc_indirect_indexed_logic` [INFO] [stdout] --> src/lib/instruction_operations.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn adc_indirect_indexed_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `InstructionType` [INFO] [stdout] --> src/lib/instructions.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum InstructionType { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `AddressingMode` [INFO] [stdout] --> src/lib/instructions.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum AddressingMode { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Instruction` [INFO] [stdout] --> src/lib/instructions.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Instruction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `adc` [INFO] [stdout] --> src/lib/instructions.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn adc(addressing_mode: AddressingMode) -> Instruction { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `high_param` [INFO] [stdout] --> src/lib/instructions.rs:107:6 [INFO] [stdout] | [INFO] [stdout] 107 | fn high_param(memory: &mut Memory, low_address: u8) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `calculate_page_crossed_penalty` [INFO] [stdout] --> src/lib/instructions.rs:112:6 [INFO] [stdout] | [INFO] [stdout] 112 | fn calculate_page_crossed_penalty(address_before: u8, address_after: u8) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `execute` [INFO] [stdout] --> src/lib/instructions.rs:120:6 [INFO] [stdout] | [INFO] [stdout] 120 | fn execute(&self, cpu: &Cpu, memory: &mut Memory, starting_address: u8) -> u8 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Parameter` [INFO] [stdout] --> src/lib/parameter.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Parameter { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Stack` [INFO] [stdout] --> src/lib/stack.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Stack { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/lib/stack.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn new() -> Stack { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push` [INFO] [stdout] --> src/lib/stack.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn push(&mut self, memory: &mut Memory, value: u8) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop` [INFO] [stdout] --> src/lib/stack.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn pop(&mut self, memory: &mut Memory) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `memoryAddress` should have a snake case name [INFO] [stdout] --> src/lib/instruction_operations.rs:4:39 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn adc_immediate_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `memory_address` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `memoryAddress` should have a snake case name [INFO] [stdout] --> src/lib/instruction_operations.rs:8:39 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn adc_zero_page_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `memory_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `memoryAddress` should have a snake case name [INFO] [stdout] --> src/lib/instruction_operations.rs:12:41 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn adc_zero_page_x_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `memory_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `memoryAddress` should have a snake case name [INFO] [stdout] --> src/lib/instruction_operations.rs:16:38 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn adc_absolute_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `memory_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `memoryAddress` should have a snake case name [INFO] [stdout] --> src/lib/instruction_operations.rs:20:40 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn adc_absolute_x_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `memory_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `memoryAddress` should have a snake case name [INFO] [stdout] --> src/lib/instruction_operations.rs:24:40 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn adc_absolute_y_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `memory_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `memoryAddress` should have a snake case name [INFO] [stdout] --> src/lib/instruction_operations.rs:28:46 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn adc_indexed_indirect_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `memory_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `memoryAddress` should have a snake case name [INFO] [stdout] --> src/lib/instruction_operations.rs:32:46 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn adc_indirect_indexed_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `memory_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: literal out of range for u8 [INFO] [stdout] --> src/lib/instructions.rs:113:25 [INFO] [stdout] | [INFO] [stdout] 113 | if (address_after & 0xFF00) != (address_before & 0xFF00) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(overflowing_literals)]` on by default [INFO] [stdout] = note: the literal `0xFF00` (decimal `65280`) does not fit into the type `u8` and will become `0u8` [INFO] [stdout] = help: consider using `u16` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: literal out of range for u8 [INFO] [stdout] --> src/lib/instructions.rs:113:54 [INFO] [stdout] | [INFO] [stdout] 113 | if (address_after & 0xFF00) != (address_before & 0xFF00) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the literal `0xFF00` (decimal `65280`) does not fit into the type `u8` and will become `0u8` [INFO] [stdout] = help: consider using `u16` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: literal out of range for u8 [INFO] [stdout] --> src/lib/instructions.rs:203:40 [INFO] [stdout] | [INFO] [stdout] 203 | address_high = address_low & 0xFF00; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the literal `0xFF00` (decimal `65280`) does not fit into the type `u8` and will become `0u8` [INFO] [stdout] = help: consider using `u16` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: literal out of range for u8 [INFO] [stdout] --> src/lib/stack.rs:9:28 [INFO] [stdout] | [INFO] [stdout] 9 | Stack{stack_pointer: 0x01FF} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the literal `0x01FF` (decimal `511`) does not fit into the type `u8` and will become `255u8` [INFO] [stdout] = help: consider using `u16` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 62 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "9421b701f650db7495e7de4dde14923ac4f165d61cd7a33f84c86df30329fd3b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9421b701f650db7495e7de4dde14923ac4f165d61cd7a33f84c86df30329fd3b", kill_on_drop: false }` [INFO] [stdout] 9421b701f650db7495e7de4dde14923ac4f165d61cd7a33f84c86df30329fd3b