[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] testing fChristenson/nes-emulator against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FfChristenson%2Fnes-emulator" "/workspace/builds/worker-31/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-31/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/fChristenson/nes-emulator on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", 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-31/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" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-31/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-31/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b651578d85ca6c6a45786857da9d25e11b5b009d5b3faeb52f9baaf3d99a8043 [INFO] running `Command { std: "docker" "start" "-a" "b651578d85ca6c6a45786857da9d25e11b5b009d5b3faeb52f9baaf3d99a8043", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b651578d85ca6c6a45786857da9d25e11b5b009d5b3faeb52f9baaf3d99a8043", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b651578d85ca6c6a45786857da9d25e11b5b009d5b3faeb52f9baaf3d99a8043", kill_on_drop: false }` [INFO] [stdout] b651578d85ca6c6a45786857da9d25e11b5b009d5b3faeb52f9baaf3d99a8043 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-31/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-31/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 994ddc85cd3abcb5d0011c0147a50dac9ea01004c6b5d488753514120f680baa [INFO] running `Command { std: "docker" "start" "-a" "994ddc85cd3abcb5d0011c0147a50dac9ea01004c6b5d488753514120f680baa", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling 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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 33 - operation: Box u8>, [INFO] [stdout] 33 + operation: Box u8>, [INFO] [stdout] | [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] warning: 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: `#[warn(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 the type `u16` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 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 the type `u16` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 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 the type `u16` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 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 the type `u16` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 66 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 29.17s [INFO] running `Command { std: "docker" "inspect" "994ddc85cd3abcb5d0011c0147a50dac9ea01004c6b5d488753514120f680baa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "994ddc85cd3abcb5d0011c0147a50dac9ea01004c6b5d488753514120f680baa", kill_on_drop: false }` [INFO] [stdout] 994ddc85cd3abcb5d0011c0147a50dac9ea01004c6b5d488753514120f680baa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-31/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-31/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7d176cd03ac76afc933107740fc76c5bcf385a26fd118d2df273b76d72a32fae [INFO] running `Command { std: "docker" "start" "-a" "7d176cd03ac76afc933107740fc76c5bcf385a26fd118d2df273b76d72a32fae", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling 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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 33 - operation: Box u8>, [INFO] [stdout] 33 + operation: Box u8>, [INFO] [stdout] | [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] warning: 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: `#[warn(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 the type `u16` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 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 the type `u16` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 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 the type `u16` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 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 the type `u16` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 66 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.73s [INFO] running `Command { std: "docker" "inspect" "7d176cd03ac76afc933107740fc76c5bcf385a26fd118d2df273b76d72a32fae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d176cd03ac76afc933107740fc76c5bcf385a26fd118d2df273b76d72a32fae", kill_on_drop: false }` [INFO] [stdout] 7d176cd03ac76afc933107740fc76c5bcf385a26fd118d2df273b76d72a32fae [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-31/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-31/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 462c28fc3e95e15cd4200e7de20a81743510a2fd59dc6423ca155dff8e43ac2a [INFO] running `Command { std: "docker" "start" "-a" "462c28fc3e95e15cd4200e7de20a81743510a2fd59dc6423ca155dff8e43ac2a", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lib/instructions.rs:33:18 [INFO] [stderr] | [INFO] [stderr] 33 | operation: Box u8>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 33 - operation: Box u8>, [INFO] [stderr] 33 + operation: Box u8>, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cpu` [INFO] [stderr] --> src/lib/instruction_operations.rs:4:28 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn adc_immediate_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `memoryAddress` [INFO] [stderr] --> src/lib/instruction_operations.rs:4:39 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn adc_immediate_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_memoryAddress` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `param` [INFO] [stderr] --> src/lib/instruction_operations.rs:4:58 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn adc_immediate_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cpu` [INFO] [stderr] --> src/lib/instruction_operations.rs:8:28 [INFO] [stderr] | [INFO] [stderr] 8 | pub fn adc_zero_page_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `memoryAddress` [INFO] [stderr] --> src/lib/instruction_operations.rs:8:39 [INFO] [stderr] | [INFO] [stderr] 8 | pub fn adc_zero_page_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_memoryAddress` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `param` [INFO] [stderr] --> src/lib/instruction_operations.rs:8:58 [INFO] [stderr] | [INFO] [stderr] 8 | pub fn adc_zero_page_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cpu` [INFO] [stderr] --> src/lib/instruction_operations.rs:12:30 [INFO] [stderr] | [INFO] [stderr] 12 | pub fn adc_zero_page_x_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `memoryAddress` [INFO] [stderr] --> src/lib/instruction_operations.rs:12:41 [INFO] [stderr] | [INFO] [stderr] 12 | pub fn adc_zero_page_x_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_memoryAddress` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `param` [INFO] [stderr] --> src/lib/instruction_operations.rs:12:60 [INFO] [stderr] | [INFO] [stderr] 12 | pub fn adc_zero_page_x_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cpu` [INFO] [stderr] --> src/lib/instruction_operations.rs:16:27 [INFO] [stderr] | [INFO] [stderr] 16 | pub fn adc_absolute_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `memoryAddress` [INFO] [stderr] --> src/lib/instruction_operations.rs:16:38 [INFO] [stderr] | [INFO] [stderr] 16 | pub fn adc_absolute_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_memoryAddress` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `param` [INFO] [stderr] --> src/lib/instruction_operations.rs:16:57 [INFO] [stderr] | [INFO] [stderr] 16 | pub fn adc_absolute_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cpu` [INFO] [stderr] --> src/lib/instruction_operations.rs:20:29 [INFO] [stderr] | [INFO] [stderr] 20 | pub fn adc_absolute_x_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `memoryAddress` [INFO] [stderr] --> src/lib/instruction_operations.rs:20:40 [INFO] [stderr] | [INFO] [stderr] 20 | pub fn adc_absolute_x_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_memoryAddress` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `param` [INFO] [stderr] --> src/lib/instruction_operations.rs:20:59 [INFO] [stderr] | [INFO] [stderr] 20 | pub fn adc_absolute_x_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cpu` [INFO] [stderr] --> src/lib/instruction_operations.rs:24:29 [INFO] [stderr] | [INFO] [stderr] 24 | pub fn adc_absolute_y_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `memoryAddress` [INFO] [stderr] --> src/lib/instruction_operations.rs:24:40 [INFO] [stderr] | [INFO] [stderr] 24 | pub fn adc_absolute_y_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_memoryAddress` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `param` [INFO] [stderr] --> src/lib/instruction_operations.rs:24:59 [INFO] [stderr] | [INFO] [stderr] 24 | pub fn adc_absolute_y_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cpu` [INFO] [stderr] --> src/lib/instruction_operations.rs:28:35 [INFO] [stderr] | [INFO] [stderr] 28 | pub fn adc_indexed_indirect_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `memoryAddress` [INFO] [stderr] --> src/lib/instruction_operations.rs:28:46 [INFO] [stderr] | [INFO] [stderr] 28 | pub fn adc_indexed_indirect_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_memoryAddress` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `param` [INFO] [stderr] --> src/lib/instruction_operations.rs:28:65 [INFO] [stderr] | [INFO] [stderr] 28 | pub fn adc_indexed_indirect_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cpu` [INFO] [stderr] --> src/lib/instruction_operations.rs:32:35 [INFO] [stderr] | [INFO] [stderr] 32 | pub fn adc_indirect_indexed_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `memoryAddress` [INFO] [stderr] --> src/lib/instruction_operations.rs:32:46 [INFO] [stderr] | [INFO] [stderr] 32 | pub fn adc_indirect_indexed_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_memoryAddress` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `param` [INFO] [stderr] --> src/lib/instruction_operations.rs:32:65 [INFO] [stderr] | [INFO] [stderr] 32 | pub fn adc_indirect_indexed_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `P` [INFO] [stderr] --> src/lib/cpu.rs:1:12 [INFO] [stderr] | [INFO] [stderr] 1 | pub struct P { [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: enum is never used: `PRegisterFlag` [INFO] [stderr] --> src/lib/cpu.rs:5:10 [INFO] [stderr] | [INFO] [stderr] 5 | pub enum PRegisterFlag { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_bit` [INFO] [stderr] --> src/lib/cpu.rs:17:6 [INFO] [stderr] | [INFO] [stderr] 17 | fn get_bit(&self, n: u8) -> u8 { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `toggle_bit` [INFO] [stderr] --> src/lib/cpu.rs:22:6 [INFO] [stderr] | [INFO] [stderr] 22 | fn toggle_bit(&mut self, n: u8) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set_bit` [INFO] [stderr] --> src/lib/cpu.rs:26:6 [INFO] [stderr] | [INFO] [stderr] 26 | fn set_bit(&mut self, n: u8, v: u8) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_flag_value` [INFO] [stderr] --> src/lib/cpu.rs:32:6 [INFO] [stderr] | [INFO] [stderr] 32 | fn get_flag_value(&self, flag: PRegisterFlag) -> u8 { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set_flag_value` [INFO] [stderr] --> src/lib/cpu.rs:45:6 [INFO] [stderr] | [INFO] [stderr] 45 | fn set_flag_value(&mut self, flag: PRegisterFlag, value: u8) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Cpu` [INFO] [stderr] --> src/lib/cpu.rs:59:12 [INFO] [stderr] | [INFO] [stderr] 59 | pub struct Cpu { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/lib/cpu.rs:69:10 [INFO] [stderr] | [INFO] [stderr] 69 | pub fn new() -> Cpu { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `adc_immediate_logic` [INFO] [stderr] --> src/lib/instruction_operations.rs:4:8 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn adc_immediate_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `adc_zero_page_logic` [INFO] [stderr] --> src/lib/instruction_operations.rs:8:8 [INFO] [stderr] | [INFO] [stderr] 8 | pub fn adc_zero_page_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `adc_zero_page_x_logic` [INFO] [stderr] --> src/lib/instruction_operations.rs:12:8 [INFO] [stderr] | [INFO] [stderr] 12 | pub fn adc_zero_page_x_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `adc_absolute_logic` [INFO] [stderr] --> src/lib/instruction_operations.rs:16:8 [INFO] [stderr] | [INFO] [stderr] 16 | pub fn adc_absolute_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `adc_absolute_x_logic` [INFO] [stderr] --> src/lib/instruction_operations.rs:20:8 [INFO] [stderr] | [INFO] [stderr] 20 | pub fn adc_absolute_x_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `adc_absolute_y_logic` [INFO] [stderr] --> src/lib/instruction_operations.rs:24:8 [INFO] [stderr] | [INFO] [stderr] 24 | pub fn adc_absolute_y_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `adc_indexed_indirect_logic` [INFO] [stderr] --> src/lib/instruction_operations.rs:28:8 [INFO] [stderr] | [INFO] [stderr] 28 | pub fn adc_indexed_indirect_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `adc_indirect_indexed_logic` [INFO] [stderr] --> src/lib/instruction_operations.rs:32:8 [INFO] [stderr] | [INFO] [stderr] 32 | pub fn adc_indirect_indexed_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum is never used: `InstructionType` [INFO] [stderr] --> src/lib/instructions.rs:6:10 [INFO] [stderr] | [INFO] [stderr] 6 | pub enum InstructionType { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum is never used: `AddressingMode` [INFO] [stderr] --> src/lib/instructions.rs:11:10 [INFO] [stderr] | [INFO] [stderr] 11 | pub enum AddressingMode { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Instruction` [INFO] [stderr] --> src/lib/instructions.rs:27:12 [INFO] [stderr] | [INFO] [stderr] 27 | pub struct Instruction { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `adc` [INFO] [stderr] --> src/lib/instructions.rs:37:10 [INFO] [stderr] | [INFO] [stderr] 37 | pub fn adc(addressing_mode: AddressingMode) -> Instruction { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `high_param` [INFO] [stderr] --> src/lib/instructions.rs:107:6 [INFO] [stderr] | [INFO] [stderr] 107 | fn high_param(memory: &mut Memory, low_address: u8) -> u8 { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `calculate_page_crossed_penalty` [INFO] [stderr] --> src/lib/instructions.rs:112:6 [INFO] [stderr] | [INFO] [stderr] 112 | fn calculate_page_crossed_penalty(address_before: u8, address_after: u8) -> u8 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `execute` [INFO] [stderr] --> src/lib/instructions.rs:120:6 [INFO] [stderr] | [INFO] [stderr] 120 | fn execute(&self, cpu: &Cpu, memory: &mut Memory, starting_address: u8) -> u8 { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Parameter` [INFO] [stderr] --> src/lib/parameter.rs:1:12 [INFO] [stderr] | [INFO] [stderr] 1 | pub struct Parameter { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Stack` [INFO] [stderr] --> src/lib/stack.rs:3:12 [INFO] [stderr] | [INFO] [stderr] 3 | pub struct Stack { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/lib/stack.rs:8:12 [INFO] [stderr] | [INFO] [stderr] 8 | pub fn new() -> Stack { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `push` [INFO] [stderr] --> src/lib/stack.rs:12:12 [INFO] [stderr] | [INFO] [stderr] 12 | pub fn push(&mut self, memory: &mut Memory, value: u8) { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `pop` [INFO] [stderr] --> src/lib/stack.rs:17:10 [INFO] [stderr] | [INFO] [stderr] 17 | pub fn pop(&mut self, memory: &mut Memory) -> u8 { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: variable `memoryAddress` should have a snake case name [INFO] [stderr] --> src/lib/instruction_operations.rs:4:39 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn adc_immediate_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `memory_address` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `memoryAddress` should have a snake case name [INFO] [stderr] --> src/lib/instruction_operations.rs:8:39 [INFO] [stderr] | [INFO] [stderr] 8 | pub fn adc_zero_page_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `memory_address` [INFO] [stderr] [INFO] [stderr] warning: variable `memoryAddress` should have a snake case name [INFO] [stderr] --> src/lib/instruction_operations.rs:12:41 [INFO] [stderr] | [INFO] [stderr] 12 | pub fn adc_zero_page_x_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `memory_address` [INFO] [stderr] [INFO] [stderr] warning: variable `memoryAddress` should have a snake case name [INFO] [stderr] --> src/lib/instruction_operations.rs:16:38 [INFO] [stderr] | [INFO] [stderr] 16 | pub fn adc_absolute_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `memory_address` [INFO] [stderr] [INFO] [stderr] warning: variable `memoryAddress` should have a snake case name [INFO] [stderr] --> src/lib/instruction_operations.rs:20:40 [INFO] [stderr] | [INFO] [stderr] 20 | pub fn adc_absolute_x_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `memory_address` [INFO] [stderr] [INFO] [stderr] warning: variable `memoryAddress` should have a snake case name [INFO] [stderr] --> src/lib/instruction_operations.rs:24:40 [INFO] [stderr] | [INFO] [stderr] 24 | pub fn adc_absolute_y_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `memory_address` [INFO] [stderr] [INFO] [stderr] warning: variable `memoryAddress` should have a snake case name [INFO] [stderr] --> src/lib/instruction_operations.rs:28:46 [INFO] [stderr] | [INFO] [stderr] 28 | pub fn adc_indexed_indirect_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `memory_address` [INFO] [stderr] [INFO] [stderr] warning: variable `memoryAddress` should have a snake case name [INFO] [stderr] --> src/lib/instruction_operations.rs:32:46 [INFO] [stderr] | [INFO] [stderr] 32 | pub fn adc_indirect_indexed_logic(cpu: &Cpu, memoryAddress: u8, param: &Parameter) -> u8 { [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `memory_address` [INFO] [stderr] [INFO] [stderr] warning: literal out of range for `u8` [INFO] [stderr] --> src/lib/instructions.rs:113:25 [INFO] [stderr] | [INFO] [stderr] 113 | if (address_after & 0xFF00) != (address_before & 0xFF00) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(overflowing_literals)]` on by default [INFO] [stderr] = note: the literal `0xFF00` (decimal `65280`) does not fit into the type `u8` and will become `0u8` [INFO] [stderr] = help: consider using the type `u16` instead [INFO] [stderr] [INFO] [stderr] warning: literal out of range for `u8` [INFO] [stderr] --> src/lib/instructions.rs:113:54 [INFO] [stderr] | [INFO] [stderr] 113 | if (address_after & 0xFF00) != (address_before & 0xFF00) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the literal `0xFF00` (decimal `65280`) does not fit into the type `u8` and will become `0u8` [INFO] [stderr] = help: consider using the type `u16` instead [INFO] [stderr] [INFO] [stderr] warning: literal out of range for `u8` [INFO] [stderr] --> src/lib/instructions.rs:203:40 [INFO] [stderr] | [INFO] [stderr] 203 | address_high = address_low & 0xFF00; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the literal `0xFF00` (decimal `65280`) does not fit into the type `u8` and will become `0u8` [INFO] [stderr] = help: consider using the type `u16` instead [INFO] [stderr] [INFO] [stderr] warning: literal out of range for `u8` [INFO] [stderr] --> src/lib/stack.rs:9:28 [INFO] [stderr] | [INFO] [stderr] 9 | Stack{stack_pointer: 0x01FF} [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the literal `0x01FF` (decimal `511`) does not fit into the type `u8` and will become `255u8` [INFO] [stderr] = help: consider using the type `u16` instead [INFO] [stderr] [INFO] [stderr] warning: `nes-emulator` (bin "nes-emulator" test) generated 66 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 22.06s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/nes_emulator-80a18b0f351c3286) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "462c28fc3e95e15cd4200e7de20a81743510a2fd59dc6423ca155dff8e43ac2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "462c28fc3e95e15cd4200e7de20a81743510a2fd59dc6423ca155dff8e43ac2a", kill_on_drop: false }` [INFO] [stdout] 462c28fc3e95e15cd4200e7de20a81743510a2fd59dc6423ca155dff8e43ac2a