[INFO] cloning repository https://github.com/erslie/gbemu-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/erslie/gbemu-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ferslie%2Fgbemu-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ferslie%2Fgbemu-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 48973c27993cf10335676c93c34809f5ba8bc813 [INFO] checking erslie/gbemu-rust against try#b047d5f4496a7526d91d0dddea494c05853f2a7b for pr-122661-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ferslie%2Fgbemu-rust" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/erslie/gbemu-rust [INFO] finished tweaking git repo https://github.com/erslie/gbemu-rust [INFO] tweaked toml for git repo https://github.com/erslie/gbemu-rust written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/erslie/gbemu-rust on toolchain b047d5f4496a7526d91d0dddea494c05853f2a7b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b047d5f4496a7526d91d0dddea494c05853f2a7b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/erslie/gbemu-rust 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" "+b047d5f4496a7526d91d0dddea494c05853f2a7b" "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 [ERROR] error running command: no output for 300 seconds [INFO] checking erslie/gbemu-rust against try#b047d5f4496a7526d91d0dddea494c05853f2a7b for pr-122661-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ferslie%2Fgbemu-rust" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/erslie/gbemu-rust [INFO] finished tweaking git repo https://github.com/erslie/gbemu-rust [INFO] tweaked toml for git repo https://github.com/erslie/gbemu-rust written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/erslie/gbemu-rust on toolchain b047d5f4496a7526d91d0dddea494c05853f2a7b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b047d5f4496a7526d91d0dddea494c05853f2a7b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/erslie/gbemu-rust 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" "+b047d5f4496a7526d91d0dddea494c05853f2a7b" "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-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+b047d5f4496a7526d91d0dddea494c05853f2a7b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1e62fa4c73fbbbf85821c85c9a86dddbb1cf213aef49c211d4e8ca0c9ec66c51 [INFO] running `Command { std: "docker" "start" "-a" "1e62fa4c73fbbbf85821c85c9a86dddbb1cf213aef49c211d4e8ca0c9ec66c51", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1e62fa4c73fbbbf85821c85c9a86dddbb1cf213aef49c211d4e8ca0c9ec66c51", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e62fa4c73fbbbf85821c85c9a86dddbb1cf213aef49c211d4e8ca0c9ec66c51", kill_on_drop: false }` [INFO] [stdout] 1e62fa4c73fbbbf85821c85c9a86dddbb1cf213aef49c211d4e8ca0c9ec66c51 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+b047d5f4496a7526d91d0dddea494c05853f2a7b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] edc52e49b82f16c1632340d4402495981fb2bc7248ab75b1ed3e1fb36d320443 [INFO] running `Command { std: "docker" "start" "-a" "edc52e49b82f16c1632340d4402495981fb2bc7248ab75b1ed3e1fb36d320443", kill_on_drop: false }` [INFO] [stderr] Checking gbemu-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/instruction.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::peripherals::{self, Peripherals}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/instruction.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::peripherals::{self, Peripherals}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::register::*` [INFO] [stdout] --> src/operand.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::register::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::sleep` [INFO] [stdout] --> src/instruction.rs:306:9 [INFO] [stdout] | [INFO] [stdout] 306 | use std::thread::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/instruction.rs:307:9 [INFO] [stdout] | [INFO] [stdout] 307 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cpu` [INFO] [stdout] --> src/instruction.rs:309:17 [INFO] [stdout] | [INFO] [stdout] 309 | use crate::{cpu, instruction::*}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::register::*` [INFO] [stdout] --> src/operand.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::register::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: exclusive range missing `u16::MAX` [INFO] [stdout] --> src/peripherals.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | 0xFF80..0xFFFF => self.hram.write(addr, val), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this range doesn't match `u16::MAX` because `..` is an exclusive range [INFO] [stdout] | help: use an inclusive range instead: `65408_u16..=u16::MAX` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_contiguous_range_endpoints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/instruction.rs:160:21 [INFO] [stdout] | [INFO] [stdout] 160 | if let Some(mut v) = self.read8(bus, src) { [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: `bus` [INFO] [stdout] --> src/operand.rs:89:27 [INFO] [stdout] | [INFO] [stdout] 89 | fn write16(&mut self, bus: &mut Peripherals, dst: Reg16, val: u16) -> Option<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bus` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bus` [INFO] [stdout] --> src/operand.rs:115:26 [INFO] [stdout] | [INFO] [stdout] 115 | fn write8(&mut self, bus: &mut Peripherals, dst: Imm8, val: u8) -> Option<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dst` [INFO] [stdout] --> src/operand.rs:115:49 [INFO] [stdout] | [INFO] [stdout] 115 | fn write8(&mut self, bus: &mut Peripherals, dst: Imm8, val: u8) -> Option<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dst` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/operand.rs:115:60 [INFO] [stdout] | [INFO] [stdout] 115 | fn write8(&mut self, bus: &mut Peripherals, dst: Imm8, val: u8) -> Option<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bus` [INFO] [stdout] --> src/operand.rs:139:27 [INFO] [stdout] | [INFO] [stdout] 139 | fn write16(&mut self, bus: &mut Peripherals, dst: Imm16, val: u16) -> Option<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dst` [INFO] [stdout] --> src/operand.rs:139:50 [INFO] [stdout] | [INFO] [stdout] 139 | fn write16(&mut self, bus: &mut Peripherals, dst: Imm16, val: u16) -> Option<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dst` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/operand.rs:139:62 [INFO] [stdout] | [INFO] [stdout] 139 | fn write16(&mut self, bus: &mut Peripherals, dst: Imm16, val: u16) -> Option<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bus` [INFO] [stdout] --> src/operand.rs:254:26 [INFO] [stdout] | [INFO] [stdout] 254 | fn read16(&mut self, bus: &Peripherals, src: Direct16) -> Option { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src` [INFO] [stdout] --> src/operand.rs:254:45 [INFO] [stdout] | [INFO] [stdout] 254 | fn read16(&mut self, bus: &Peripherals, src: Direct16) -> Option { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_src` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: exclusive range missing `u16::MAX` [INFO] [stdout] --> src/peripherals.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | 0xFF80..0xFFFF => self.hram.write(addr, val), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this range doesn't match `u16::MAX` because `..` is an exclusive range [INFO] [stdout] | help: use an inclusive range instead: `65408_u16..=u16::MAX` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_contiguous_range_endpoints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dst` [INFO] [stdout] --> src/operand.rs:258:50 [INFO] [stdout] | [INFO] [stdout] 258 | fn write16(&mut self, bus: &mut Peripherals, dst: Direct16, val: u16) -> Option<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dst` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Bootrom` is never constructed [INFO] [stdout] --> src/bootrom.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Bootrom { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `is_active`, `new`, `read`, and `write` are never used [INFO] [stdout] --> src/bootrom.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Bootrom { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 6 | pub fn is_active(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | pub fn new(rom: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn read(&self, addr: u16) -> u8 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn write(&mut self, addr: u16, val: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HRam` is never constructed [INFO] [stdout] --> src/hram.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct HRam(Vec); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `read`, and `write` are never used [INFO] [stdout] --> src/hram.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl HRam { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 6 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 9 | pub fn read(&self, addr: u16) -> u8 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | pub fn write(&mut self, addr: u16, val: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WRam` is never constructed [INFO] [stdout] --> src/wram.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct WRam(Vec); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `read`, and `write` are never used [INFO] [stdout] --> src/wram.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl WRam { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 6 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 9 | pub fn read(&self, addr: u16) -> u8 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | pub fn write(&mut self, addr: u16, val: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Peripherals` is never constructed [INFO] [stdout] --> src/peripherals.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Peripherals { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `read`, and `write` are never used [INFO] [stdout] --> src/peripherals.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Peripherals { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new(bootrom: Bootrom) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn read(&self, addr: u16) -> u8 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn write(&mut self, addr: u16, val: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Registres` is never constructed [INFO] [stdout] --> src/register.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Registres { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/register.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Registres { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 17 | pub fn af(&self) -> u16 { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn bc(&self) -> u16 { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn de(&self) -> u16 { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn hl(&self) -> u16 { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn write_af(&mut self, val: u16) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn write_bc(&mut self, val: u16) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn write_de(&mut self, val: u16) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn write_hl(&mut self, val: u16) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn zf(&self) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn nf(&self) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn hf(&self) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn cf(&self) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn set_zf(&mut self, zf: bool) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn set_nf(&mut self, nf: bool) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn set_hf(&mut self, hf: bool) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn set_cf(&mut self, cf: bool) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/instruction.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Cpu { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 21 | pub fn nop(&mut self, bus: &Peripherals) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn ld(&mut self, bus:&mut Peripherals, dst: D, src: S) [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn ld16(&mut self, bus: &mut Peripherals, dst: D, src: S) [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn cp(&mut self, bus: &Peripherals, src: S) [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn inc(&mut self, bus: &mut Peripherals, src: S) [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn inc16(&mut self, bus: &mut Peripherals, src: S) [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn dec(&mut self, bus: &mut Peripherals, src: S) [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn dec16(&mut self, bus: &mut Peripherals, src: S) [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn rl(&mut self, bus: &mut Peripherals, src: S) [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 158 | pub fn bit(&mut self, bus: &Peripherals, bit: usize, src: S) [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | pub fn push16(&mut self, bus: &mut Peripherals, val: u16) -> Option<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | pub fn push(&mut self, bus: &mut Peripherals, src: Reg16) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | pub fn pop16(&mut self, bus: &Peripherals) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 231 | pub fn pop(&mut self, bus:&mut Peripherals, dst: Reg16) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | pub fn jr(&mut self, bus: &Peripherals) { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 251 | fn cond(&self, cond: Cond) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 260 | pub fn fr_c(&mut self, bus: &Peripherals, c: Cond) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 276 | pub fn call(&mut self, bus: &mut Peripherals) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 290 | pub fn ret(&mut self, bus: &Peripherals) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `IO8` is never used [INFO] [stdout] --> src/operand.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 27 | pub trait IO8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `IO16` is never used [INFO] [stdout] --> src/operand.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | pub trait IO16 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Reg8` is never used [INFO] [stdout] --> src/operand.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 37 | pub enum Reg8 { A, B, C, D, E, H, L } [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Reg16` is never used [INFO] [stdout] --> src/operand.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum Reg16 { AF, BC, DE, HL, SP } [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Imm8` is never constructed [INFO] [stdout] --> src/operand.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct Imm8; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Imm16` is never constructed [INFO] [stdout] --> src/operand.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct Imm16; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Indirect` is never used [INFO] [stdout] --> src/operand.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | pub enum Indirect { BC, DE, HL, CFF, HLD, HLI } [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Direct8` is never used [INFO] [stdout] --> src/operand.rs:47:10 [INFO] [stdout] | [INFO] [stdout] 47 | pub enum Direct8 { D, DFF } [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Direct16` is never constructed [INFO] [stdout] --> src/operand.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct Direct16; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Cond` is never used [INFO] [stdout] --> src/operand.rs:51:10 [INFO] [stdout] | [INFO] [stdout] 51 | pub enum Cond { NZ, Z, NC, C } [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ctx` is never constructed [INFO] [stdout] --> src/cpu.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Ctx { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cpu` is never constructed [INFO] [stdout] --> src/cpu.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Cpu { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `fetch`, `decode`, and `emulate_cycle` are never used [INFO] [stdout] --> src/cpu.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Cpu { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 15 | pub fn fetch(&mut self, bus: &Peripherals) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn decode(&mut self, bus: &mut Peripherals) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn emulate_cycle(&mut self, bus: &mut Peripherals) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused bitwise operation that must be used [INFO] [stdout] --> src/instruction.rs:161:13 [INFO] [stdout] | [INFO] [stdout] 161 | v & 1 << bit; [INFO] [stdout] | ^^^^^^^^^^^^ the bitwise operation produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 161 | let _ = v & 1 << bit; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/instruction.rs:160:21 [INFO] [stdout] | [INFO] [stdout] 160 | if let Some(mut v) = self.read8(bus, src) { [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: `bus` [INFO] [stdout] --> src/operand.rs:89:27 [INFO] [stdout] | [INFO] [stdout] 89 | fn write16(&mut self, bus: &mut Peripherals, dst: Reg16, val: u16) -> Option<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bus` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bus` [INFO] [stdout] --> src/operand.rs:115:26 [INFO] [stdout] | [INFO] [stdout] 115 | fn write8(&mut self, bus: &mut Peripherals, dst: Imm8, val: u8) -> Option<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dst` [INFO] [stdout] --> src/operand.rs:115:49 [INFO] [stdout] | [INFO] [stdout] 115 | fn write8(&mut self, bus: &mut Peripherals, dst: Imm8, val: u8) -> Option<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dst` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/operand.rs:115:60 [INFO] [stdout] | [INFO] [stdout] 115 | fn write8(&mut self, bus: &mut Peripherals, dst: Imm8, val: u8) -> Option<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bus` [INFO] [stdout] --> src/operand.rs:139:27 [INFO] [stdout] | [INFO] [stdout] 139 | fn write16(&mut self, bus: &mut Peripherals, dst: Imm16, val: u16) -> Option<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dst` [INFO] [stdout] --> src/operand.rs:139:50 [INFO] [stdout] | [INFO] [stdout] 139 | fn write16(&mut self, bus: &mut Peripherals, dst: Imm16, val: u16) -> Option<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dst` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/operand.rs:139:62 [INFO] [stdout] | [INFO] [stdout] 139 | fn write16(&mut self, bus: &mut Peripherals, dst: Imm16, val: u16) -> Option<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bus` [INFO] [stdout] --> src/operand.rs:254:26 [INFO] [stdout] | [INFO] [stdout] 254 | fn read16(&mut self, bus: &Peripherals, src: Direct16) -> Option { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src` [INFO] [stdout] --> src/operand.rs:254:45 [INFO] [stdout] | [INFO] [stdout] 254 | fn read16(&mut self, bus: &Peripherals, src: Direct16) -> Option { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_src` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dst` [INFO] [stdout] --> src/operand.rs:258:50 [INFO] [stdout] | [INFO] [stdout] 258 | fn write16(&mut self, bus: &mut Peripherals, dst: Direct16, val: u16) -> Option<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dst` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/operand.rs:318:13 [INFO] [stdout] | [INFO] [stdout] 318 | let mut peri = Peripherals::new(Bootrom::new(vec![0x12,0x34])); [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/cpu.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let mut peri = Peripherals::new(Bootrom::new(vec![0,0x00])); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/instruction.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Cpu { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn dec(&mut self, bus: &mut Peripherals, src: S) [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn dec16(&mut self, bus: &mut Peripherals, src: S) [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn rl(&mut self, bus: &mut Peripherals, src: S) [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 158 | pub fn bit(&mut self, bus: &Peripherals, bit: usize, src: S) [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | pub fn push16(&mut self, bus: &mut Peripherals, val: u16) -> Option<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | pub fn push(&mut self, bus: &mut Peripherals, src: Reg16) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | pub fn pop16(&mut self, bus: &Peripherals) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 231 | pub fn pop(&mut self, bus:&mut Peripherals, dst: Reg16) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | pub fn jr(&mut self, bus: &Peripherals) { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 251 | fn cond(&self, cond: Cond) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 260 | pub fn fr_c(&mut self, bus: &Peripherals, c: Cond) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 276 | pub fn call(&mut self, bus: &mut Peripherals) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 290 | pub fn ret(&mut self, bus: &Peripherals) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `C`, `D`, `E`, `H`, and `L` are never constructed [INFO] [stdout] --> src/operand.rs:37:23 [INFO] [stdout] | [INFO] [stdout] 37 | pub enum Reg8 { A, B, C, D, E, H, L } [INFO] [stdout] | ---- ^ ^ ^ ^ ^ [INFO] [stdout] | | [INFO] [stdout] | variants in this enum [INFO] [stdout] | [INFO] [stdout] = note: `Reg8` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `HL` and `SP` are never constructed [INFO] [stdout] --> src/operand.rs:39:30 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum Reg16 { AF, BC, DE, HL, SP } [INFO] [stdout] | ----- ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | variants in this enum [INFO] [stdout] | [INFO] [stdout] = note: `Reg16` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `BC`, `DE`, `HL`, `CFF`, `HLD`, and `HLI` are never constructed [INFO] [stdout] --> src/operand.rs:45:21 [INFO] [stdout] | [INFO] [stdout] 45 | pub enum Indirect { BC, DE, HL, CFF, HLD, HLI } [INFO] [stdout] | -------- ^^ ^^ ^^ ^^^ ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | variants in this enum [INFO] [stdout] | [INFO] [stdout] = note: `Indirect` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `D` and `DFF` are never constructed [INFO] [stdout] --> src/operand.rs:47:20 [INFO] [stdout] | [INFO] [stdout] 47 | pub enum Direct8 { D, DFF } [INFO] [stdout] | ------- ^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | variants in this enum [INFO] [stdout] | [INFO] [stdout] = note: `Direct8` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Cond` is never used [INFO] [stdout] --> src/operand.rs:51:10 [INFO] [stdout] | [INFO] [stdout] 51 | pub enum Cond { NZ, Z, NC, C } [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `decode` and `emulate_cycle` are never used [INFO] [stdout] --> src/cpu.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Cpu { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn decode(&mut self, bus: &mut Peripherals) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn emulate_cycle(&mut self, bus: &mut Peripherals) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused bitwise operation that must be used [INFO] [stdout] --> src/instruction.rs:161:13 [INFO] [stdout] | [INFO] [stdout] 161 | v & 1 << bit; [INFO] [stdout] | ^^^^^^^^^^^^ the bitwise operation produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 161 | let _ = v & 1 << bit; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.22s [INFO] running `Command { std: "docker" "inspect" "edc52e49b82f16c1632340d4402495981fb2bc7248ab75b1ed3e1fb36d320443", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "edc52e49b82f16c1632340d4402495981fb2bc7248ab75b1ed3e1fb36d320443", kill_on_drop: false }` [INFO] [stdout] edc52e49b82f16c1632340d4402495981fb2bc7248ab75b1ed3e1fb36d320443