[INFO] cloning repository https://github.com/AkeemKaleeb/gameboy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AkeemKaleeb/gameboy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAkeemKaleeb%2Fgameboy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAkeemKaleeb%2Fgameboy'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4df62d98d39f04e3d927c397a245eef9f21eb57f [INFO] building AkeemKaleeb/gameboy against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAkeemKaleeb%2Fgameboy" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/AkeemKaleeb/gameboy on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/AkeemKaleeb/gameboy [INFO] finished tweaking git repo https://github.com/AkeemKaleeb/gameboy [INFO] tweaked toml for git repo https://github.com/AkeemKaleeb/gameboy written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/AkeemKaleeb/gameboy already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sdl2 v0.37.0 [INFO] [stderr] Downloaded sdl2-sys v0.37.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3a87029b0640b1e6afac8980b3d663171c971e7ec5c7104863b1674b61b2c728 [INFO] running `Command { std: "docker" "start" "-a" "3a87029b0640b1e6afac8980b3d663171c971e7ec5c7104863b1674b61b2c728", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3a87029b0640b1e6afac8980b3d663171c971e7ec5c7104863b1674b61b2c728", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3a87029b0640b1e6afac8980b3d663171c971e7ec5c7104863b1674b61b2c728", kill_on_drop: false }` [INFO] [stdout] 3a87029b0640b1e6afac8980b3d663171c971e7ec5c7104863b1674b61b2c728 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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 -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 06a9ab9fd20cb15eddb5948c20de4209e7e45b6e936dbf5458fca96cf890de72 [INFO] running `Command { std: "docker" "start" "-a" "06a9ab9fd20cb15eddb5948c20de4209e7e45b6e936dbf5458fca96cf890de72", kill_on_drop: false }` [INFO] [stderr] Compiling version-compare v0.1.1 [INFO] [stderr] Compiling sdl2 v0.37.0 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling sdl2-sys v0.37.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling gameboy v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `debug` [INFO] [stdout] --> src/main.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | #[cfg(feature = "debug")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `debug` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/cpu.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `debug` [INFO] [stdout] --> src/main.rs:37:15 [INFO] [stdout] | [INFO] [stdout] 37 | #[cfg(feature = "debug")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `debug` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cpu.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | let mut cpu = CPU { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/cpu.rs:191:28 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn step(&mut self, memory: &mut Memory, ppu: &mut PPU, io: &mut IO, timers: &mut Timers, interrupts: &mut Interrupts) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ppu` [INFO] [stdout] --> src/cpu.rs:191:49 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn step(&mut self, memory: &mut Memory, ppu: &mut PPU, io: &mut IO, timers: &mut Timers, interrupts: &mut Interrupts) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ppu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `io` [INFO] [stdout] --> src/cpu.rs:191:64 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn step(&mut self, memory: &mut Memory, ppu: &mut PPU, io: &mut IO, timers: &mut Timers, interrupts: &mut Interrupts) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `timers` [INFO] [stdout] --> src/cpu.rs:191:77 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn step(&mut self, memory: &mut Memory, ppu: &mut PPU, io: &mut IO, timers: &mut Timers, interrupts: &mut Interrupts) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_timers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interrupts` [INFO] [stdout] --> src/cpu.rs:191:98 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn step(&mut self, memory: &mut Memory, ppu: &mut PPU, io: &mut IO, timers: &mut Timers, interrupts: &mut Interrupts) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interrupts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/ppu.rs:19:28 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn step(&mut self, memory: &mut Memory) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/opcodes.rs:14:27 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn execute(&self, cpu: &mut CPU, memory: &mut Memory) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/opcodes.rs:14:42 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn execute(&self, cpu: &mut CPU, memory: &mut Memory) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/io.rs:19:28 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn step(&mut self, memory: &mut Memory) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/timers.rs:19:28 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn step(&mut self, memory: &mut Memory) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/interrupts.rs:20:28 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn step(&mut self, memory: &mut Memory, cpu: &mut CPU) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/interrupts.rs:20:49 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn step(&mut self, memory: &mut Memory, cpu: &mut CPU) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/cartridge.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn load(path: &str) -> Self { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cartridge` [INFO] [stdout] --> src/main.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let cartridge = cartridge::Cartridge::load("path/to/rom.gb"); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cartridge` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/cpu.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 76 | struct Registers { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 77 | reg_a: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 78 | reg_b: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 79 | reg_c: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 80 | reg_d: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 81 | reg_e: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 82 | reg_f: FlagsRegister, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 83 | reg_h: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 84 | reg_l: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/cpu.rs:108:8 [INFO] [stdout] | [INFO] [stdout] 88 | impl Registers { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 108 | fn get_af(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | fn set_af(&mut self, value: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | fn get_bc(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | fn set_bc(&mut self, value: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | fn get_de(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | fn set_de(&mut self, value: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | fn get_hl(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | fn set_hl(&mut self, value: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `registers`, `index`, `pc`, `sp`, `stack`, and `opcode` are never read [INFO] [stdout] --> src/cpu.rs:144:5 [INFO] [stdout] | [INFO] [stdout] 143 | pub struct CPU { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 144 | registers: Registers, // General Putpose Registers reg_a - reg_l [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 145 | index: u16, // Index Register [INFO] [stdout] | ^^^^^ [INFO] [stdout] 146 | pc: u16, // Program Counter [INFO] [stdout] | ^^ [INFO] [stdout] 147 | sp: u16, // Stack Pointer [INFO] [stdout] | ^^ [INFO] [stdout] 148 | stack: [u16; 16], // Stack [INFO] [stdout] | ^^^^^ [INFO] [stdout] 149 | memory: [u8; 8192], // Memory [INFO] [stdout] 150 | opcode: u16, // Program Opperation Code [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.96s [INFO] running `Command { std: "docker" "inspect" "06a9ab9fd20cb15eddb5948c20de4209e7e45b6e936dbf5458fca96cf890de72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06a9ab9fd20cb15eddb5948c20de4209e7e45b6e936dbf5458fca96cf890de72", kill_on_drop: false }` [INFO] [stdout] 06a9ab9fd20cb15eddb5948c20de4209e7e45b6e936dbf5458fca96cf890de72 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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 -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a120d37d54df6c509216d9e22b2f211e1f3ee79d995927d99d430b745b47ab5a [INFO] running `Command { std: "docker" "start" "-a" "a120d37d54df6c509216d9e22b2f211e1f3ee79d995927d99d430b745b47ab5a", kill_on_drop: false }` [INFO] [stderr] Compiling gameboy v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `debug` [INFO] [stdout] --> src/main.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | #[cfg(feature = "debug")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `debug` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/cpu.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `debug` [INFO] [stdout] --> src/main.rs:37:15 [INFO] [stdout] | [INFO] [stdout] 37 | #[cfg(feature = "debug")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `debug` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cpu.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | let mut cpu = CPU { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/cpu.rs:191:28 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn step(&mut self, memory: &mut Memory, ppu: &mut PPU, io: &mut IO, timers: &mut Timers, interrupts: &mut Interrupts) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ppu` [INFO] [stdout] --> src/cpu.rs:191:49 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn step(&mut self, memory: &mut Memory, ppu: &mut PPU, io: &mut IO, timers: &mut Timers, interrupts: &mut Interrupts) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ppu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `io` [INFO] [stdout] --> src/cpu.rs:191:64 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn step(&mut self, memory: &mut Memory, ppu: &mut PPU, io: &mut IO, timers: &mut Timers, interrupts: &mut Interrupts) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `timers` [INFO] [stdout] --> src/cpu.rs:191:77 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn step(&mut self, memory: &mut Memory, ppu: &mut PPU, io: &mut IO, timers: &mut Timers, interrupts: &mut Interrupts) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_timers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interrupts` [INFO] [stdout] --> src/cpu.rs:191:98 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn step(&mut self, memory: &mut Memory, ppu: &mut PPU, io: &mut IO, timers: &mut Timers, interrupts: &mut Interrupts) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interrupts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/ppu.rs:19:28 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn step(&mut self, memory: &mut Memory) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/opcodes.rs:14:27 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn execute(&self, cpu: &mut CPU, memory: &mut Memory) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/opcodes.rs:14:42 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn execute(&self, cpu: &mut CPU, memory: &mut Memory) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/io.rs:19:28 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn step(&mut self, memory: &mut Memory) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/timers.rs:19:28 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn step(&mut self, memory: &mut Memory) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/interrupts.rs:20:28 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn step(&mut self, memory: &mut Memory, cpu: &mut CPU) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/interrupts.rs:20:49 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn step(&mut self, memory: &mut Memory, cpu: &mut CPU) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/cartridge.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn load(path: &str) -> Self { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cartridge` [INFO] [stdout] --> src/main.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let cartridge = cartridge::Cartridge::load("path/to/rom.gb"); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cartridge` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/cpu.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 76 | struct Registers { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 77 | reg_a: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 78 | reg_b: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 79 | reg_c: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 80 | reg_d: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 81 | reg_e: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 82 | reg_f: FlagsRegister, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 83 | reg_h: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 84 | reg_l: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/cpu.rs:108:8 [INFO] [stdout] | [INFO] [stdout] 88 | impl Registers { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 108 | fn get_af(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | fn set_af(&mut self, value: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | fn get_bc(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | fn set_bc(&mut self, value: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | fn get_de(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | fn set_de(&mut self, value: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | fn get_hl(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | fn set_hl(&mut self, value: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `registers`, `index`, `pc`, `sp`, `stack`, and `opcode` are never read [INFO] [stdout] --> src/cpu.rs:144:5 [INFO] [stdout] | [INFO] [stdout] 143 | pub struct CPU { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 144 | registers: Registers, // General Putpose Registers reg_a - reg_l [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 145 | index: u16, // Index Register [INFO] [stdout] | ^^^^^ [INFO] [stdout] 146 | pc: u16, // Program Counter [INFO] [stdout] | ^^ [INFO] [stdout] 147 | sp: u16, // Stack Pointer [INFO] [stdout] | ^^ [INFO] [stdout] 148 | stack: [u16; 16], // Stack [INFO] [stdout] | ^^^^^ [INFO] [stdout] 149 | memory: [u8; 8192], // Memory [INFO] [stdout] 150 | opcode: u16, // Program Opperation Code [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.19s [INFO] running `Command { std: "docker" "inspect" "a120d37d54df6c509216d9e22b2f211e1f3ee79d995927d99d430b745b47ab5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a120d37d54df6c509216d9e22b2f211e1f3ee79d995927d99d430b745b47ab5a", kill_on_drop: false }` [INFO] [stdout] a120d37d54df6c509216d9e22b2f211e1f3ee79d995927d99d430b745b47ab5a