[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] 3ab14ea5f70d02ffee719d7b2b4479bc79321715 [INFO] checking nathanbacon/macboy against master#a42d94ebb883116f2867cbe3016d9bde9ca6d3f7 for pr-117593 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnathanbacon%2Fmacboy" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nathanbacon/macboy on toolchain a42d94ebb883116f2867cbe3016d9bde9ca6d3f7 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a42d94ebb883116f2867cbe3016d9bde9ca6d3f7" "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-2-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" "+a42d94ebb883116f2867cbe3016d9bde9ca6d3f7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking nathanbacon/macboy against try#031b389f0c31c0f91c9464d26313ae513dbe8d36 for pr-117593 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnathanbacon%2Fmacboy" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nathanbacon/macboy on toolchain 031b389f0c31c0f91c9464d26313ae513dbe8d36 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+031b389f0c31c0f91c9464d26313ae513dbe8d36" "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-2-tc2/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" "+031b389f0c31c0f91c9464d26313ae513dbe8d36" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:0c7e0e8312ad82a1bed3696438480b7da990d348377d3754e1cd95b06a8a36c7" "/opt/rustwide/cargo-home/bin/cargo" "+031b389f0c31c0f91c9464d26313ae513dbe8d36" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 144bceb3bddc2f313d2bef8d030f4c0531578707e07db47817cf6fae7d2c993a [INFO] running `Command { std: "docker" "start" "-a" "144bceb3bddc2f313d2bef8d030f4c0531578707e07db47817cf6fae7d2c993a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "144bceb3bddc2f313d2bef8d030f4c0531578707e07db47817cf6fae7d2c993a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "144bceb3bddc2f313d2bef8d030f4c0531578707e07db47817cf6fae7d2c993a", kill_on_drop: false }` [INFO] [stdout] 144bceb3bddc2f313d2bef8d030f4c0531578707e07db47817cf6fae7d2c993a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:0c7e0e8312ad82a1bed3696438480b7da990d348377d3754e1cd95b06a8a36c7" "/opt/rustwide/cargo-home/bin/cargo" "+031b389f0c31c0f91c9464d26313ae513dbe8d36" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 67f785fba6ab1b1ae02f4966b091943bb37f88b18e1acb29f0833a5985c3e5b8 [INFO] running `Command { std: "docker" "start" "-a" "67f785fba6ab1b1ae02f4966b091943bb37f88b18e1acb29f0833a5985c3e5b8", kill_on_drop: false }` [INFO] [stderr] Checking gb v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::registers::Registers` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::registers::Registers; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::mmu::MMU` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::mmu::MMU; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [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 import: `self` [INFO] [stdout] --> src/cpu.rs:1:36 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{registers::{Registers, self}, interrupts::Interrupts, mmu::MMU, cartridge::{MBC, MBC3}}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IndexMut`, `Index` [INFO] [stdout] --> src/mmu.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::{Index, IndexMut}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Catridge` [INFO] [stdout] --> src/mmu.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::cartridge::{Catridge, MBC, MBC3}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cpu::CPU` [INFO] [stdout] --> src/run_loop.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{cpu::CPU, cartridge::MBC, utility::ui_state::UIState, gameboy::Gameboy}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::registers::Registers` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::registers::Registers; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::mmu::MMU` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::mmu::MMU; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [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 import: `super::*` [INFO] [stdout] --> src/registers.rs:109:7 [INFO] [stdout] | [INFO] [stdout] 109 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/cpu.rs:1:36 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{registers::{Registers, self}, interrupts::Interrupts, mmu::MMU, cartridge::{MBC, MBC3}}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IndexMut`, `Index` [INFO] [stdout] --> src/mmu.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::{Index, IndexMut}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Catridge` [INFO] [stdout] --> src/mmu.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::cartridge::{Catridge, MBC, MBC3}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cpu::CPU` [INFO] [stdout] --> src/run_loop.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{cpu::CPU, cartridge::MBC, utility::ui_state::UIState, gameboy::Gameboy}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interrupt` [INFO] [stdout] --> src/cpu.rs:71:35 [INFO] [stdout] | [INFO] [stdout] 71 | 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:1560:22 [INFO] [stdout] | [INFO] [stdout] 1560 | fn eval(cpu: &mut CPU) where T: MBC { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] ... [INFO] [stdout] 2037 | 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:1737:22 [INFO] [stdout] | [INFO] [stdout] 1737 | fn eval(cpu: &mut CPU) where T: MBC { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] ... [INFO] [stdout] 2145 | 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: unused variable: `interrupt` [INFO] [stdout] --> src/cpu.rs:71:35 [INFO] [stdout] | [INFO] [stdout] 71 | 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: variable does not need to be mutable [INFO] [stdout] --> src/mmu.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | 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:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let cpu = CPU::new(mbc3); [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:62:10 [INFO] [stdout] | [INFO] [stdout] 62 | 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:62:14 [INFO] [stdout] | [INFO] [stdout] 62 | 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: 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] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `table`, `extended_table`, and `interrupts` are never read [INFO] [stdout] --> src/cpu.rs:13:3 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct CPU where T: MBC { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | table: Vec)>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | extended_table: Vec)>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | interrupts: Interrupts, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_with_mbc3`, `exec_next_instruction`, `request_interrupt`, `push_pc`, and `call` are never used [INFO] [stdout] --> src/cpu.rs:50:10 [INFO] [stdout] | [INFO] [stdout] 32 | impl CPU { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn new_with_mbc3() -> CPU { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn exec_next_instruction(&mut self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn request_interrupt(&self, interrupt: Interrupt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | fn push_pc(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2295 | pub fn call(&mut self, opcode: u8) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_with_mbc3` is never used [INFO] [stdout] --> src/mmu.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 16 | impl MMU { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn new_with_mbc3() -> MMU { [INFO] [stdout] | ^^^^^^^^^^^^^ [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] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/cartridge.rs:6:10 [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:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct MBC0 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MBC1` is never constructed [INFO] [stdout] --> src/cartridge.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct MBC1 { [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: fields `oam` and `ticks` are never read [INFO] [stdout] --> src/gpu.rs:8:3 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct GPU { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 7 | memory: Box<[u8; 0x2000]>, [INFO] [stdout] 8 | oam: Box<[u8; 0xA0]>, [INFO] [stdout] | ^^^ [INFO] [stdout] 9 | ticks: u64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `go` and `subscript` are never used [INFO] [stdout] --> src/gpu.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 12 | impl GPU { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn go(&mut self, ticks: u64) -> GpuEvent { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn subscript(&mut self, index: usize) -> &mut u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write_sprite_address` is never used [INFO] [stdout] --> src/sprite.rs:36:10 [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: 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: struct `Gameboy` is never constructed [INFO] [stdout] --> src/gameboy.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Gameboy where T: MBC { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `go` is never used [INFO] [stdout] --> src/gameboy.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 10 | impl Gameboy { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] 11 | pub fn go(&mut self, ui_state: Option) -> u64 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/utility/ui_state.rs:2:3 [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:10 [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:2:3 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Interrupts { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 2 | vblank_interrupt: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 3 | vblank_enabled: bool, [INFO] [stdout] 4 | lcd_interrupt: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 5 | lcd_enabled: bool, [INFO] [stdout] 6 | timer_interrupt: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 7 | timer_enabled: bool, [INFO] [stdout] 8 | serial_interrupt: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | serial_enabled: bool, [INFO] [stdout] 10 | joypad_interrupt: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 35 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu.rs:1560:22 [INFO] [stdout] | [INFO] [stdout] 1560 | fn eval(cpu: &mut CPU) where T: MBC { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] ... [INFO] [stdout] 2037 | 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:1737:22 [INFO] [stdout] | [INFO] [stdout] 1737 | fn eval(cpu: &mut CPU) where T: MBC { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] ... [INFO] [stdout] 2145 | 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:2655:9 [INFO] [stdout] | [INFO] [stdout] 2655 | 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: variable does not need to be mutable [INFO] [stdout] --> src/mmu.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | 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:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let cpu = CPU::new(mbc3); [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:62:10 [INFO] [stdout] | [INFO] [stdout] 62 | 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:62:14 [INFO] [stdout] | [INFO] [stdout] 62 | 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: 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] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `interrupts` is never read [INFO] [stdout] --> src/cpu.rs:18:3 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct CPU where T: MBC { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 18 | 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:63:10 [INFO] [stdout] | [INFO] [stdout] 32 | impl CPU { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn exec_next_instruction(&mut self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn request_interrupt(&self, interrupt: Interrupt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | fn push_pc(&mut self) { [INFO] [stdout] | ^^^^^^^ [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] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/cartridge.rs:6:10 [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:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct MBC0 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MBC1` is never constructed [INFO] [stdout] --> src/cartridge.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct MBC1 { [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: fields `oam` and `ticks` are never read [INFO] [stdout] --> src/gpu.rs:8:3 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct GPU { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 7 | memory: Box<[u8; 0x2000]>, [INFO] [stdout] 8 | oam: Box<[u8; 0xA0]>, [INFO] [stdout] | ^^^ [INFO] [stdout] 9 | ticks: u64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `go` and `subscript` are never used [INFO] [stdout] --> src/gpu.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 12 | impl GPU { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn go(&mut self, ticks: u64) -> GpuEvent { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn subscript(&mut self, index: usize) -> &mut u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write_sprite_address` is never used [INFO] [stdout] --> src/sprite.rs:36:10 [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: 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: struct `Gameboy` is never constructed [INFO] [stdout] --> src/gameboy.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Gameboy where T: MBC { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `go` is never used [INFO] [stdout] --> src/gameboy.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 10 | impl Gameboy { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] 11 | pub fn go(&mut self, ui_state: Option) -> u64 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `any_pressed` is never used [INFO] [stdout] --> src/utility/ui_state.rs:37:10 [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:2:3 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Interrupts { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 2 | vblank_interrupt: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 3 | vblank_enabled: bool, [INFO] [stdout] 4 | lcd_interrupt: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 5 | lcd_enabled: bool, [INFO] [stdout] 6 | timer_interrupt: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 7 | timer_enabled: bool, [INFO] [stdout] 8 | serial_interrupt: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | serial_enabled: bool, [INFO] [stdout] 10 | joypad_interrupt: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 35 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.40s [INFO] running `Command { std: "docker" "inspect" "67f785fba6ab1b1ae02f4966b091943bb37f88b18e1acb29f0833a5985c3e5b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "67f785fba6ab1b1ae02f4966b091943bb37f88b18e1acb29f0833a5985c3e5b8", kill_on_drop: false }` [INFO] [stdout] 67f785fba6ab1b1ae02f4966b091943bb37f88b18e1acb29f0833a5985c3e5b8