[INFO] cloning repository https://github.com/stepnivlk/ohboy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/stepnivlk/ohboy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstepnivlk%2Fohboy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstepnivlk%2Fohboy'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8e578e04bf1220704465d6655d0fc1842b4a7a58 [INFO] checking stepnivlk/ohboy against master#3e826bb11228508fbe749e594038d6727208aa94 for pr-82322 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstepnivlk%2Fohboy" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/stepnivlk/ohboy on toolchain 3e826bb11228508fbe749e594038d6727208aa94 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e826bb11228508fbe749e594038d6727208aa94" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/stepnivlk/ohboy [INFO] finished tweaking git repo https://github.com/stepnivlk/ohboy [INFO] tweaked toml for git repo https://github.com/stepnivlk/ohboy written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/stepnivlk/ohboy already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e826bb11228508fbe749e594038d6727208aa94" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+3e826bb11228508fbe749e594038d6727208aa94" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 4c53ee036ba232b869e958e9e45c2d9ed9b9d8e46d73ffb23b32fde555f331fd [INFO] running `Command { std: "docker" "start" "-a" "4c53ee036ba232b869e958e9e45c2d9ed9b9d8e46d73ffb23b32fde555f331fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4c53ee036ba232b869e958e9e45c2d9ed9b9d8e46d73ffb23b32fde555f331fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c53ee036ba232b869e958e9e45c2d9ed9b9d8e46d73ffb23b32fde555f331fd", kill_on_drop: false }` [INFO] [stdout] 4c53ee036ba232b869e958e9e45c2d9ed9b9d8e46d73ffb23b32fde555f331fd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+3e826bb11228508fbe749e594038d6727208aa94" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4431a3282d500e49dca3937422fafa8623bfa34883ea4c4b4ff4d10e9309b255 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "4431a3282d500e49dca3937422fafa8623bfa34883ea4c4b4ff4d10e9309b255", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.86 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling xml-rs v0.8.3 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling once_cell v1.6.0 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling bindgen v0.56.0 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling nix v0.17.0 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling shlex v0.1.1 [INFO] [stderr] Checking smallvec v1.6.1 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Checking downcast-rs v1.2.0 [INFO] [stderr] Compiling cc v1.0.67 [INFO] [stderr] Compiling clang-sys v1.1.1 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling libloading v0.7.0 [INFO] [stderr] Compiling thread_local v1.1.3 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Compiling nom v6.1.2 [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Compiling wayland-sys v0.27.0 [INFO] [stderr] Compiling x11-dl v2.18.5 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling wayland-scanner v0.27.0 [INFO] [stderr] Compiling minifb v0.19.2 [INFO] [stderr] Compiling regex v1.4.3 [INFO] [stderr] Checking raw-window-handle v0.3.3 [INFO] [stderr] Checking xcursor v0.3.3 [INFO] [stderr] Checking rand_core v0.6.2 [INFO] [stderr] Checking rand_chacha v0.3.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling which v3.1.1 [INFO] [stderr] Checking rand v0.8.3 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling cexpr v0.4.0 [INFO] [stderr] Compiling env_logger v0.8.3 [INFO] [stderr] Compiling wayland-client v0.27.0 [INFO] [stderr] Compiling wayland-protocols v0.27.0 [INFO] [stderr] Checking tempfile v3.2.0 [INFO] [stderr] Checking wayland-commons v0.27.0 [INFO] [stderr] Checking wayland-cursor v0.27.0 [INFO] [stderr] Compiling xkbcommon-sys v0.7.5 [INFO] [stderr] Checking xkb v0.2.1 [INFO] [stderr] Checking rboy v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Reg8Kind` [INFO] [stdout] --> src/main.rs:13:28 [INFO] [stdout] | [INFO] [stdout] 13 | use registers::{Reg16Kind, Reg8Kind, Registers}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Reg8Kind` [INFO] [stdout] --> src/executors/adds.rs:75:23 [INFO] [stdout] | [INFO] [stdout] 75 | add(&mut cpu, Reg8Kind::B); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Reg8Kind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Reg8Kind` [INFO] [stdout] --> src/executors/adds.rs:88:23 [INFO] [stdout] | [INFO] [stdout] 88 | add(&mut cpu, Reg8Kind::C); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Reg8Kind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Reg8Kind` [INFO] [stdout] --> src/executors/adds.rs:105:23 [INFO] [stdout] | [INFO] [stdout] 105 | add(&mut cpu, Reg8Kind::A); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Reg8Kind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Reg8Kind` [INFO] [stdout] --> src/executors/adds.rs:118:23 [INFO] [stdout] | [INFO] [stdout] 118 | add(&mut cpu, Reg8Kind::D); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Reg8Kind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Reg8Kind` [INFO] [stdout] --> src/executors/adds.rs:134:23 [INFO] [stdout] | [INFO] [stdout] 134 | add(&mut cpu, Reg8Kind::E); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Reg8Kind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Reg8Kind` [INFO] [stdout] --> src/executors/adds.rs:151:23 [INFO] [stdout] | [INFO] [stdout] 151 | adc(&mut cpu, Reg8Kind::B); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Reg8Kind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Reg8Kind` [INFO] [stdout] --> src/executors/adds.rs:164:23 [INFO] [stdout] | [INFO] [stdout] 164 | adc(&mut cpu, Reg8Kind::B); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Reg8Kind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Reg8Kind` [INFO] [stdout] --> src/executors/adds.rs:182:23 [INFO] [stdout] | [INFO] [stdout] 182 | adc(&mut cpu, Reg8Kind::E); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Reg8Kind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Reg8Kind` [INFO] [stdout] --> src/executors/adds.rs:197:23 [INFO] [stdout] | [INFO] [stdout] 197 | adc(&mut cpu, Reg8Kind::D); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Reg8Kind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Reg8Kind` [INFO] [stdout] --> src/executors/adds.rs:216:23 [INFO] [stdout] | [INFO] [stdout] 216 | adc(&mut cpu, Reg8Kind::D); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Reg8Kind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Reg16Kind` [INFO] [stdout] --> src/executors/adds.rs:233:26 [INFO] [stdout] | [INFO] [stdout] 233 | add_hl(&mut cpu, Reg16Kind::BC); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Reg16Kind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Reg16Kind` [INFO] [stdout] --> src/executors/adds.rs:246:26 [INFO] [stdout] | [INFO] [stdout] 246 | add_hl(&mut cpu, Reg16Kind::DE); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Reg16Kind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Reg16Kind` [INFO] [stdout] --> src/executors/adds.rs:264:26 [INFO] [stdout] | [INFO] [stdout] 264 | add_hl(&mut cpu, Reg16Kind::BC); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Reg16Kind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Reg16Kind` [INFO] [stdout] --> src/executors/adds.rs:279:26 [INFO] [stdout] | [INFO] [stdout] 279 | add_hl(&mut cpu, Reg16Kind::BC); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Reg16Kind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Reg8Kind` [INFO] [stdout] --> src/executors/and.rs:36:23 [INFO] [stdout] | [INFO] [stdout] 36 | and(&mut cpu, Reg8Kind::B); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Reg8Kind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Reg8Kind` [INFO] [stdout] --> src/executors/and.rs:51:23 [INFO] [stdout] | [INFO] [stdout] 51 | and(&mut cpu, Reg8Kind::D); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Reg8Kind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Reg8Kind` [INFO] [stdout] --> src/executors/and.rs:67:23 [INFO] [stdout] | [INFO] [stdout] 67 | and(&mut cpu, Reg8Kind::C); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Reg8Kind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Reg8Kind` [INFO] [stdout] --> src/executors/and.rs:84:23 [INFO] [stdout] | [INFO] [stdout] 84 | and(&mut cpu, Reg8Kind::E); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Reg8Kind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Reg8Kind` [INFO] [stdout] --> src/executors/or.rs:37:22 [INFO] [stdout] | [INFO] [stdout] 37 | or(&mut cpu, Reg8Kind::B); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Reg8Kind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Reg8Kind` [INFO] [stdout] --> src/executors/or.rs:52:22 [INFO] [stdout] | [INFO] [stdout] 52 | or(&mut cpu, Reg8Kind::D); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Reg8Kind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Reg8Kind` [INFO] [stdout] --> src/executors/or.rs:68:22 [INFO] [stdout] | [INFO] [stdout] 68 | or(&mut cpu, Reg8Kind::C); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Reg8Kind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Reg8Kind` [INFO] [stdout] --> src/executors/or.rs:85:22 [INFO] [stdout] | [INFO] [stdout] 85 | or(&mut cpu, Reg8Kind::E); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Reg8Kind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Reg8Kind` [INFO] [stdout] --> src/executors/xor.rs:36:23 [INFO] [stdout] | [INFO] [stdout] 36 | xor(&mut cpu, Reg8Kind::B); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Reg8Kind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Reg8Kind` [INFO] [stdout] --> src/executors/xor.rs:51:23 [INFO] [stdout] | [INFO] [stdout] 51 | xor(&mut cpu, Reg8Kind::D); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Reg8Kind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Reg8Kind` [INFO] [stdout] --> src/executors/xor.rs:67:23 [INFO] [stdout] | [INFO] [stdout] 67 | xor(&mut cpu, Reg8Kind::C); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Reg8Kind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Reg8Kind` [INFO] [stdout] --> src/executors/xor.rs:83:23 [INFO] [stdout] | [INFO] [stdout] 83 | xor(&mut cpu, Reg8Kind::E); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Reg8Kind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Reg8Kind` [INFO] [stdout] --> src/main.rs:13:28 [INFO] [stdout] | [INFO] [stdout] 13 | use registers::{Reg16Kind, Reg8Kind, Registers}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `jp_hl` [INFO] [stdout] --> src/executors/jumps.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn jp_hl(cpu: &mut CPU) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `RotRight` [INFO] [stdout] --> src/instruction.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | RotRight, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `CarryToB7` [INFO] [stdout] --> src/instruction.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | CarryToB7, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `B0ToCarryAndB7` [INFO] [stdout] --> src/instruction.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | B0ToCarryAndB7, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `E_RAM_START` [INFO] [stdout] --> src/memory_bus.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | const E_RAM_START: usize = 0xA000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `E_RAM_END` [INFO] [stdout] --> src/memory_bus.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | const E_RAM_END: usize = 0xBFFF; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `E_RAM_SIZE` [INFO] [stdout] --> src/memory_bus.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | const E_RAM_SIZE: usize = E_RAM_END - E_RAM_START + 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `W_RAM_START` [INFO] [stdout] --> src/memory_bus.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | const W_RAM_START: usize = 0xC000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `W_RAM_END` [INFO] [stdout] --> src/memory_bus.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | const W_RAM_END: usize = 0xDFFF; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `W_RAM_SIZE` [INFO] [stdout] --> src/memory_bus.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | const W_RAM_SIZE: usize = W_RAM_END - W_RAM_START + 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `W_RAM_SHAD_START` [INFO] [stdout] --> src/memory_bus.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | const W_RAM_SHAD_START: usize = 0xE000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `W_RAM_SHAD_END` [INFO] [stdout] --> src/memory_bus.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | const W_RAM_SHAD_END: usize = 0xFDFF; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `W_RAM_SHAD_SIZE` [INFO] [stdout] --> src/memory_bus.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | const W_RAM_SHAD_SIZE: usize = W_RAM_SHAD_END - W_RAM_SHAD_START + 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `OAM_START` [INFO] [stdout] --> src/memory_bus.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | const OAM_START: usize = 0xFE00; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `OAM_END` [INFO] [stdout] --> src/memory_bus.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | const OAM_END: usize = 0xFE9F; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `OAM_SIZE` [INFO] [stdout] --> src/memory_bus.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 34 | pub const OAM_SIZE: usize = OAM_END - OAM_START + 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `IO_REGS_SIZE` [INFO] [stdout] --> src/memory_bus.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | const IO_REGS_SIZE: usize = IO_REGS_END - IO_REGS_START + 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `rom_bank_n` [INFO] [stdout] --> src/memory_bus.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | rom_bank_n: [u8; ROM_BANK_N_SIZE], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add` [INFO] [stdout] --> src/registers.rs:130:12 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn add(&self, reg: Reg8Kind, val: u8) -> (u8, bool) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SCREEN_SIZE` [INFO] [stdout] --> src/gpu.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | const SCREEN_SIZE: usize = 168 * 144 * 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `GPU` [INFO] [stdout] --> src/gpu.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct GPU { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/gpu.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `m` [INFO] [stdout] --> src/main.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | m: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `t` [INFO] [stdout] --> src/main.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | t: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `clock` [INFO] [stdout] --> src/main.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | clock: Clock, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/executors/subs.rs:87:23 [INFO] [stdout] | [INFO] [stdout] 87 | sub(&mut cpu, 0x00); [INFO] [stdout] | ^^^^ expected struct `Instr`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/executors/subs.rs:99:23 [INFO] [stdout] | [INFO] [stdout] 99 | sub(&mut cpu, 0x02); [INFO] [stdout] | ^^^^ expected struct `Instr`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/executors/subs.rs:116:23 [INFO] [stdout] | [INFO] [stdout] 116 | sub(&mut cpu, 0x20); [INFO] [stdout] | ^^^^ expected struct `Instr`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/executors/subs.rs:131:23 [INFO] [stdout] | [INFO] [stdout] 131 | sub(&mut cpu, 0b0000_1111); [INFO] [stdout] | ^^^^^^^^^^^ expected struct `Instr`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/executors/subs.rs:149:23 [INFO] [stdout] | [INFO] [stdout] 149 | sbc(&mut cpu, 0x00); [INFO] [stdout] | ^^^^ expected struct `Instr`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/executors/subs.rs:161:23 [INFO] [stdout] | [INFO] [stdout] 161 | sbc(&mut cpu, 0x01); [INFO] [stdout] | ^^^^ expected struct `Instr`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/executors/subs.rs:178:23 [INFO] [stdout] | [INFO] [stdout] 178 | sbc(&mut cpu, 0b0000_1001); [INFO] [stdout] | ^^^^^^^^^^^ expected struct `Instr`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/executors/subs.rs:193:23 [INFO] [stdout] | [INFO] [stdout] 193 | sbc(&mut cpu, 0b1111_1111); [INFO] [stdout] | ^^^^^^^^^^^ expected struct `Instr`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/executors/subs.rs:209:23 [INFO] [stdout] | [INFO] [stdout] 209 | sbc(&mut cpu, 0b1); [INFO] [stdout] | ^^^ expected struct `Instr`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/executors/subs.rs:226:23 [INFO] [stdout] | [INFO] [stdout] 226 | sbc(&mut cpu, 0b0001_0001); [INFO] [stdout] | ^^^^^^^^^^^ expected struct `Instr`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 36 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rboy` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "4431a3282d500e49dca3937422fafa8623bfa34883ea4c4b4ff4d10e9309b255", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4431a3282d500e49dca3937422fafa8623bfa34883ea4c4b4ff4d10e9309b255", kill_on_drop: false }` [INFO] [stdout] 4431a3282d500e49dca3937422fafa8623bfa34883ea4c4b4ff4d10e9309b255