[INFO] cloning repository https://github.com/nathanbacon/macboy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nathanbacon/macboy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnathanbacon%2Fmacboy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnathanbacon%2Fmacboy'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a90ffaedc4f92f477215aa543fb91e0727edee6e [INFO] checking nathanbacon/macboy against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnathanbacon%2Fmacboy" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nathanbacon/macboy on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/nathanbacon/macboy [INFO] finished tweaking git repo https://github.com/nathanbacon/macboy [INFO] tweaked toml for git repo https://github.com/nathanbacon/macboy written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/nathanbacon/macboy 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 21924344ad8ae004df1dd5bbc002662b0b21461de5243bdc37bfe8b765c81cc4 [INFO] running `Command { std: "docker" "start" "-a" "21924344ad8ae004df1dd5bbc002662b0b21461de5243bdc37bfe8b765c81cc4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "21924344ad8ae004df1dd5bbc002662b0b21461de5243bdc37bfe8b765c81cc4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "21924344ad8ae004df1dd5bbc002662b0b21461de5243bdc37bfe8b765c81cc4", kill_on_drop: false }` [INFO] [stdout] 21924344ad8ae004df1dd5bbc002662b0b21461de5243bdc37bfe8b765c81cc4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8223c6426cb72a3d567d8a0065fb0f307730ea2184654f186f87d607fc118339 [INFO] running `Command { std: "docker" "start" "-a" "8223c6426cb72a3d567d8a0065fb0f307730ea2184654f186f87d607fc118339", kill_on_drop: false }` [INFO] [stderr] Checking gb v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused macro definition: `wide` [INFO] [stdout] --> src/registers.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | macro_rules! wide { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `wide` [INFO] [stdout] --> src/registers.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | macro_rules! wide { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interrupt` [INFO] [stdout] --> src/cpu.rs:61:37 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn request_interrupt(&self, interrupt: Interrupt) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interrupt` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu.rs:1626:28 [INFO] [stdout] | [INFO] [stdout] 1626 | fn eval(cpu: &mut CPU) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] ... [INFO] [stdout] 2133 | I!(STOP), [INFO] [stdout] | -------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `I` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu.rs:1814:28 [INFO] [stdout] | [INFO] [stdout] 1814 | fn eval(cpu: &mut CPU) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] ... [INFO] [stdout] 2241 | I!(HALT), [INFO] [stdout] | -------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `I` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/mmu.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let mut sprites: Box<[Sprite; 40]> = Box::new([(); 40].map(|_| Sprite::new())); [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: `buffer_offset` [INFO] [stdout] --> src/main.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let mut buffer_offset = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_buffer_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/main.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let cpu = CPU::new(&mut mmu); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx` [INFO] [stdout] --> src/main.rs:68:10 [INFO] [stdout] | [INFO] [stdout] 68 | let (tx, rx) = mpsc::channel::(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rx` [INFO] [stdout] --> src/main.rs:68:14 [INFO] [stdout] | [INFO] [stdout] 68 | let (tx, rx) = mpsc::channel::(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_rx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let mut buffer_offset = 0; [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Catridge` is never constructed [INFO] [stdout] --> src/cartridge.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Catridge { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/cartridge.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Catridge { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 6 | pub fn new(mbc: T) -> Catridge { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MBC0` is never constructed [INFO] [stdout] --> src/cartridge.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct MBC0 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MBC1` is never constructed [INFO] [stdout] --> src/cartridge.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct MBC1 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Interrupt` is never used [INFO] [stdout] --> src/cpu.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum Interrupt { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `table`, `extended_table`, and `interrupts` are never read [INFO] [stdout] --> src/cpu.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct CPU<'a, T> [INFO] [stdout] | --- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 16 | table: Vec)>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 17 | extended_table: Vec)>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | interrupts: Interrupts, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `exec_next_instruction`, `request_interrupt`, `push_pc`, and `call` are never used [INFO] [stdout] --> src/cpu.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl<'a, T: MBC> CPU<'a, T> { [INFO] [stdout] | --------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn exec_next_instruction(&mut self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn request_interrupt(&self, interrupt: Interrupt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | fn push_pc(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2390 | pub fn call(&mut self, opcode: u8) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Gameboy` is never constructed [INFO] [stdout] --> src/gameboy.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Gameboy<'a, T> [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `go` is never used [INFO] [stdout] --> src/gameboy.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl<'a, T: MBC> Gameboy<'a, T> { [INFO] [stdout] | ------------------------------- method in this implementation [INFO] [stdout] 19 | pub fn go(&mut self, ui_state: Option) -> u64 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `GpuEvent` is never used [INFO] [stdout] --> src/gpu.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum GpuEvent { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/gpu.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct LCDC { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 8 | lcd_enabled: bool, // bit 7 [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 9 | window_tile_map_select: bool, // bit 6 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | window_display_toggle: bool, // bit 5 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | bg_window_tile_select: bool, // bit 4 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | bg_tile_map_select: bool, // bit 3 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | sprite_size: bool, // bit 2 [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 14 | sprite_display: bool, // bit 1 [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 15 | bg_display: bool, // bit 0 [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set` and `get` are never used [INFO] [stdout] --> src/gpu.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl LCDC { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 19 | pub fn set(&mut self, val: u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn get(&self) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `STAT` is never constructed [INFO] [stdout] --> src/gpu.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct STAT { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `oam`, `lcdc`, and `ticks` are never read [INFO] [stdout] --> src/gpu.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct VRAM { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 53 | memory: Box<[u8; 0x2000]>, [INFO] [stdout] 54 | oam: Box<[u8; 0xA0]>, [INFO] [stdout] | ^^^ [INFO] [stdout] 55 | lcdc: LCDC, [INFO] [stdout] | ^^^^ [INFO] [stdout] 56 | ticks: u64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `go` and `subscript` are never used [INFO] [stdout] --> src/gpu.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl VRAM { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn go(&mut self, ticks: u64) -> GpuEvent { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn subscript(&mut self, index: usize) -> &mut u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_with_mbc3` is never used [INFO] [stdout] --> src/mmu.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl<'a, T: MBC> MMU<'a, T> { [INFO] [stdout] | --------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn new_with_mbc3(vram: &'a mut VRAM) -> MMU { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sp` is never read [INFO] [stdout] --> src/registers.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Registers { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | pub sp: u16, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_loop` is never used [INFO] [stdout] --> src/run_loop.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn run_loop(mut gameboy: Gameboy, rx: Receiver) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write_sprite_address` is never used [INFO] [stdout] --> src/sprite.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Sprite { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn write_sprite_address(&mut self, address: usize, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/utility/ui_state.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct UIState { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 2 | a: bool, [INFO] [stdout] | ^ [INFO] [stdout] 3 | b: bool, [INFO] [stdout] | ^ [INFO] [stdout] 4 | up: bool, [INFO] [stdout] | ^^ [INFO] [stdout] 5 | right: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 6 | down: bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | left: bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | start: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | select: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `has_negative_edge`, and `any_pressed` are never used [INFO] [stdout] --> src/utility/ui_state.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl UIState { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 13 | pub fn new() -> UIState { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn has_negative_edge(from_state: &UIState, to_state: &UIState) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn any_pressed(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `vblank_interrupt`, `lcd_interrupt`, `timer_interrupt`, `serial_interrupt`, and `joypad_interrupt` are never read [INFO] [stdout] --> src/interrupts.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Interrupts { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 3 | vblank_interrupt: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 4 | vblank_enabled: bool, [INFO] [stdout] 5 | lcd_interrupt: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 6 | lcd_enabled: bool, [INFO] [stdout] 7 | timer_interrupt: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | timer_enabled: bool, [INFO] [stdout] 9 | serial_interrupt: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | serial_enabled: bool, [INFO] [stdout] 11 | joypad_interrupt: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interrupt` [INFO] [stdout] --> src/cpu.rs:61:37 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn request_interrupt(&self, interrupt: Interrupt) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interrupt` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu.rs:1626:28 [INFO] [stdout] | [INFO] [stdout] 1626 | fn eval(cpu: &mut CPU) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] ... [INFO] [stdout] 2133 | I!(STOP), [INFO] [stdout] | -------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `I` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu.rs:1814:28 [INFO] [stdout] | [INFO] [stdout] 1814 | fn eval(cpu: &mut CPU) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] ... [INFO] [stdout] 2241 | I!(HALT), [INFO] [stdout] | -------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `I` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cpu.rs:2795:13 [INFO] [stdout] | [INFO] [stdout] 2795 | let mut registers = Registers { [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: `gpu` [INFO] [stdout] --> src/cpu.rs:4665:17 [INFO] [stdout] | [INFO] [stdout] 4665 | let mut gpu = VRAM::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_gpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cpu.rs:4665:13 [INFO] [stdout] | [INFO] [stdout] 4665 | let mut gpu = VRAM::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/mmu.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let mut sprites: Box<[Sprite; 40]> = Box::new([(); 40].map(|_| Sprite::new())); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buffer_offset` [INFO] [stdout] --> src/main.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let mut buffer_offset = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_buffer_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/main.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let cpu = CPU::new(&mut mmu); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx` [INFO] [stdout] --> src/main.rs:68:10 [INFO] [stdout] | [INFO] [stdout] 68 | let (tx, rx) = mpsc::channel::(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rx` [INFO] [stdout] --> src/main.rs:68:14 [INFO] [stdout] | [INFO] [stdout] 68 | let (tx, rx) = mpsc::channel::(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_rx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let mut buffer_offset = 0; [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Catridge` is never constructed [INFO] [stdout] --> src/cartridge.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Catridge { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/cartridge.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Catridge { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 6 | pub fn new(mbc: T) -> Catridge { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MBC0` is never constructed [INFO] [stdout] --> src/cartridge.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct MBC0 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MBC1` is never constructed [INFO] [stdout] --> src/cartridge.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct MBC1 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Interrupt` is never used [INFO] [stdout] --> src/cpu.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum Interrupt { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `interrupts` is never read [INFO] [stdout] --> src/cpu.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct CPU<'a, T> [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | interrupts: Interrupts, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `exec_next_instruction`, `request_interrupt`, and `push_pc` are never used [INFO] [stdout] --> src/cpu.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl<'a, T: MBC> CPU<'a, T> { [INFO] [stdout] | --------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn exec_next_instruction(&mut self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn request_interrupt(&self, interrupt: Interrupt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | fn push_pc(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Gameboy` is never constructed [INFO] [stdout] --> src/gameboy.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Gameboy<'a, T> [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `go` is never used [INFO] [stdout] --> src/gameboy.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl<'a, T: MBC> Gameboy<'a, T> { [INFO] [stdout] | ------------------------------- method in this implementation [INFO] [stdout] 19 | pub fn go(&mut self, ui_state: Option) -> u64 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `GpuEvent` is never used [INFO] [stdout] --> src/gpu.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum GpuEvent { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/gpu.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct LCDC { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 8 | lcd_enabled: bool, // bit 7 [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 9 | window_tile_map_select: bool, // bit 6 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | window_display_toggle: bool, // bit 5 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | bg_window_tile_select: bool, // bit 4 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | bg_tile_map_select: bool, // bit 3 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | sprite_size: bool, // bit 2 [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 14 | sprite_display: bool, // bit 1 [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 15 | bg_display: bool, // bit 0 [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set` and `get` are never used [INFO] [stdout] --> src/gpu.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl LCDC { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 19 | pub fn set(&mut self, val: u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn get(&self) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `STAT` is never constructed [INFO] [stdout] --> src/gpu.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct STAT { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `oam`, `lcdc`, and `ticks` are never read [INFO] [stdout] --> src/gpu.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct VRAM { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 53 | memory: Box<[u8; 0x2000]>, [INFO] [stdout] 54 | oam: Box<[u8; 0xA0]>, [INFO] [stdout] | ^^^ [INFO] [stdout] 55 | lcdc: LCDC, [INFO] [stdout] | ^^^^ [INFO] [stdout] 56 | ticks: u64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `go` and `subscript` are never used [INFO] [stdout] --> src/gpu.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl VRAM { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn go(&mut self, ticks: u64) -> GpuEvent { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn subscript(&mut self, index: usize) -> &mut u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sp` is never read [INFO] [stdout] --> src/registers.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Registers { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | pub sp: u16, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_loop` is never used [INFO] [stdout] --> src/run_loop.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn run_loop(mut gameboy: Gameboy, rx: Receiver) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write_sprite_address` is never used [INFO] [stdout] --> src/sprite.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Sprite { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn write_sprite_address(&mut self, address: usize, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `any_pressed` is never used [INFO] [stdout] --> src/utility/ui_state.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl UIState { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn any_pressed(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `vblank_interrupt`, `lcd_interrupt`, `timer_interrupt`, `serial_interrupt`, and `joypad_interrupt` are never read [INFO] [stdout] --> src/interrupts.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Interrupts { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 3 | vblank_interrupt: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 4 | vblank_enabled: bool, [INFO] [stdout] 5 | lcd_interrupt: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 6 | lcd_enabled: bool, [INFO] [stdout] 7 | timer_interrupt: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | timer_enabled: bool, [INFO] [stdout] 9 | serial_interrupt: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | serial_enabled: bool, [INFO] [stdout] 11 | joypad_interrupt: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.51s [INFO] running `Command { std: "docker" "inspect" "8223c6426cb72a3d567d8a0065fb0f307730ea2184654f186f87d607fc118339", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8223c6426cb72a3d567d8a0065fb0f307730ea2184654f186f87d607fc118339", kill_on_drop: false }` [INFO] [stdout] 8223c6426cb72a3d567d8a0065fb0f307730ea2184654f186f87d607fc118339