[INFO] cloning repository https://github.com/anurse/rustboy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/anurse/rustboy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fanurse%2Frustboy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fanurse%2Frustboy'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 255711690e03926313efe5c81ea4db8443653449 [INFO] testing anurse/rustboy against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fanurse%2Frustboy" "/workspace/builds/worker-20/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-20/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/anurse/rustboy on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/anurse/rustboy [INFO] finished tweaking git repo https://github.com/anurse/rustboy [INFO] tweaked toml for git repo https://github.com/anurse/rustboy written to /workspace/builds/worker-20/source/Cargo.toml [INFO] crate git repo https://github.com/anurse/rustboy already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-20/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-20/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a8ca4ac29a500b497f7c4a33eab5b5d6921fd45c9160a9a3e0ef6fb2055a6a29 [INFO] running `Command { std: "docker" "start" "-a" "a8ca4ac29a500b497f7c4a33eab5b5d6921fd45c9160a9a3e0ef6fb2055a6a29", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a8ca4ac29a500b497f7c4a33eab5b5d6921fd45c9160a9a3e0ef6fb2055a6a29", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a8ca4ac29a500b497f7c4a33eab5b5d6921fd45c9160a9a3e0ef6fb2055a6a29", kill_on_drop: false }` [INFO] [stdout] a8ca4ac29a500b497f7c4a33eab5b5d6921fd45c9160a9a3e0ef6fb2055a6a29 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-20/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-20/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 56b32c6196f94033cc3cf4a3158a92cfbd4888b447a5fdefe2e0ea3900560c4d [INFO] running `Command { std: "docker" "start" "-a" "56b32c6196f94033cc3cf4a3158a92cfbd4888b447a5fdefe2e0ea3900560c4d", kill_on_drop: false }` [INFO] [stderr] Compiling rustboy v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] error: macros that expand to items must be delimited with braces or followed by a semicolon [INFO] [stdout] --> src/z80/cpu.rs:307:25 [INFO] [stdout] | [INFO] [stdout] 307 | macro_rules! testcpu( [INFO] [stdout] | _________________________^ [INFO] [stdout] 308 | | ($(on $i:expr, $assert_l:expr is $assert_r: expr ticks $m:expr, $t:expr),+) => ({ [INFO] [stdout] 309 | | let mut cpu = Z80::new(); [INFO] [stdout] 310 | | $( [INFO] [stdout] ... | [INFO] [stdout] 316 | | }); [INFO] [stdout] 317 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] help: change the delimiters to curly braces [INFO] [stdout] | [INFO] [stdout] 307 ~ macro_rules! testcpu{ [INFO] [stdout] 308 | ($(on $i:expr, $assert_l:expr is $assert_r: expr ticks $m:expr, $t:expr),+) => ({ [INFO] [stdout] 309 | let mut cpu = Z80::new(); [INFO] [stdout] 310 | $( [INFO] [stdout] 311 | cpu.exec($i); [INFO] [stdout] 312 | assert_eq!($assert_l, $assert_r); [INFO] [stdout] ... [INFO] [stdout] help: add a semicolon [INFO] [stdout] | [INFO] [stdout] 317 | ); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `,` [INFO] [stdout] --> src/z80/mmu.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | ram: [u8, ..8192], // 8K RAM [INFO] [stdout] | ^ expected one of 7 possible tokens [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unused_variable` [INFO] [stdout] --> src/z80/mmu.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | #[allow(unused_variable)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: did you mean: `unused_variables` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unknown_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unused_variable` [INFO] [stdout] --> src/z80/mmu.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[allow(unused_variable)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: did you mean: `unused_variables` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `log` [INFO] [stdout] --> src/lib.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | extern crate log; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `phase` in this scope [INFO] [stdout] --> src/lib.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[phase(plugin, link)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `deriving` in this scope [INFO] [stdout] --> src/z80/registers.rs:1:3 [INFO] [stdout] | [INFO] [stdout] 1 | #[deriving(PartialEq, Eq, Show)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `deriving` in this scope [INFO] [stdout] --> src/z80/registers.rs:15:3 [INFO] [stdout] | [INFO] [stdout] 15 | #[deriving(PartialEq, Eq, Show)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `deriving` in this scope [INFO] [stdout] --> src/z80/cpu.rs:5:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[deriving(Clone)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `deriving` in this scope [INFO] [stdout] --> src/z80/cpu.rs:19:3 [INFO] [stdout] | [INFO] [stdout] 19 | #[deriving(Clone)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/z80/cpu.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | debug!("register {} <- {}", r, val); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `fail` in this scope [INFO] [stdout] --> src/z80/cpu.rs:47:18 [INFO] [stdout] | [INFO] [stdout] 47 | _ => fail!("Cannot set {} register using this method", r) [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/z80/cpu.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | debug!("register {} ->", r); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `fail` in this scope [INFO] [stdout] --> src/z80/cpu.rs:62:18 [INFO] [stdout] | [INFO] [stdout] 62 | _ => fail!("Cannot get {} register using this method", r) [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/z80/cpu.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | debug!("registers {} <- {}", d, val); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `fail` in this scope [INFO] [stdout] --> src/z80/cpu.rs:83:22 [INFO] [stdout] | [INFO] [stdout] 83 | _ => fail!("Invalid Instruction!") [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/z80/cpu.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | debug!("registers {} ->", d); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `fail` in this scope [INFO] [stdout] --> src/z80/cpu.rs:99:22 [INFO] [stdout] | [INFO] [stdout] 99 | _ => fail!("Invalid Instruction!") [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/z80/cpu.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | machine_cycles: int, [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | not found in this scope [INFO] [stdout] | help: perhaps you intended to use this type: `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/z80/cpu.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | time_cycles: int, [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | not found in this scope [INFO] [stdout] | help: perhaps you intended to use this type: `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/z80/cpu.rs:13:27 [INFO] [stdout] | [INFO] [stdout] 13 | fn tick(&mut self, m: int, t: int) { [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | not found in this scope [INFO] [stdout] | help: perhaps you intended to use this type: `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/z80/cpu.rs:13:35 [INFO] [stdout] | [INFO] [stdout] 13 | fn tick(&mut self, m: int, t: int) { [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | not found in this scope [INFO] [stdout] | help: perhaps you intended to use this type: `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find unit struct, unit variant or constant `A` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:39:24 [INFO] [stdout] | [INFO] [stdout] 39 | registers::A => self.a = val, [INFO] [stdout] | ^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterName::A; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find unit struct, unit variant or constant `B` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:40:24 [INFO] [stdout] | [INFO] [stdout] 40 | registers::B => self.b = val, [INFO] [stdout] | ^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterName::B; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find unit struct, unit variant or constant `C` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:41:24 [INFO] [stdout] | [INFO] [stdout] 41 | registers::C => self.c = val, [INFO] [stdout] | ^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterName::C; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find unit struct, unit variant or constant `D` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:42:24 [INFO] [stdout] | [INFO] [stdout] 42 | registers::D => self.d = val, [INFO] [stdout] | ^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterName::D; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find unit struct, unit variant or constant `E` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:43:24 [INFO] [stdout] | [INFO] [stdout] 43 | registers::E => self.e = val, [INFO] [stdout] | ^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use std::f32::consts::E; [INFO] [stdout] | [INFO] [stdout] 1 | use std::f64::consts::E; [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterName::E; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find unit struct, unit variant or constant `H` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:44:24 [INFO] [stdout] | [INFO] [stdout] 44 | registers::H => self.h = val, [INFO] [stdout] | ^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterName::H; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find unit struct, unit variant or constant `L` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:45:24 [INFO] [stdout] | [INFO] [stdout] 45 | registers::L => self.l = val, [INFO] [stdout] | ^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterName::L; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find unit struct, unit variant or constant `F` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:46:24 [INFO] [stdout] | [INFO] [stdout] 46 | registers::F => self.f = val, [INFO] [stdout] | ^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterName::F; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find unit struct, unit variant or constant `A` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:54:24 [INFO] [stdout] | [INFO] [stdout] 54 | registers::A => self.a, [INFO] [stdout] | ^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterName::A; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find unit struct, unit variant or constant `B` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:55:24 [INFO] [stdout] | [INFO] [stdout] 55 | registers::B => self.b, [INFO] [stdout] | ^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterName::B; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find unit struct, unit variant or constant `C` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:56:24 [INFO] [stdout] | [INFO] [stdout] 56 | registers::C => self.c, [INFO] [stdout] | ^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterName::C; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find unit struct, unit variant or constant `D` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:57:24 [INFO] [stdout] | [INFO] [stdout] 57 | registers::D => self.d, [INFO] [stdout] | ^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterName::D; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find unit struct, unit variant or constant `E` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:58:24 [INFO] [stdout] | [INFO] [stdout] 58 | registers::E => self.e, [INFO] [stdout] | ^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use std::f32::consts::E; [INFO] [stdout] | [INFO] [stdout] 1 | use std::f64::consts::E; [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterName::E; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find unit struct, unit variant or constant `H` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:59:24 [INFO] [stdout] | [INFO] [stdout] 59 | registers::H => self.h, [INFO] [stdout] | ^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterName::H; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find unit struct, unit variant or constant `L` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:60:24 [INFO] [stdout] | [INFO] [stdout] 60 | registers::L => self.l, [INFO] [stdout] | ^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterName::L; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find unit struct, unit variant or constant `F` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:61:24 [INFO] [stdout] | [INFO] [stdout] 61 | registers::F => self.f, [INFO] [stdout] | ^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterName::F; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SP_` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:73:28 [INFO] [stdout] | [INFO] [stdout] 73 | if d == registers::SP_ { [INFO] [stdout] | ^^^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterPair::SP_; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find unit struct, unit variant or constant `BC` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:79:28 [INFO] [stdout] | [INFO] [stdout] 79 | registers::BC => { self.b = high; self.c = low; }, [INFO] [stdout] | ^^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterPair::BC; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find unit struct, unit variant or constant `DE` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:80:28 [INFO] [stdout] | [INFO] [stdout] 80 | registers::DE => { self.d = high; self.d = low; }, [INFO] [stdout] | ^^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterPair::DE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find unit struct, unit variant or constant `HL` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:81:28 [INFO] [stdout] | [INFO] [stdout] 81 | registers::HL => { self.h = high; self.l = low; }, [INFO] [stdout] | ^^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterPair::HL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find unit struct, unit variant or constant `AF` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:82:28 [INFO] [stdout] | [INFO] [stdout] 82 | registers::AF => { self.a = high; self.f = low; } [INFO] [stdout] | ^^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterPair::AF; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SP_` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:90:28 [INFO] [stdout] | [INFO] [stdout] 90 | if d == registers::SP_ { [INFO] [stdout] | ^^^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterPair::SP_; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find unit struct, unit variant or constant `BC` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:95:28 [INFO] [stdout] | [INFO] [stdout] 95 | registers::BC => { (self.b, self.c) }, [INFO] [stdout] | ^^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterPair::BC; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find unit struct, unit variant or constant `DE` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:96:28 [INFO] [stdout] | [INFO] [stdout] 96 | registers::DE => { (self.d, self.e) }, [INFO] [stdout] | ^^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterPair::DE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find unit struct, unit variant or constant `HL` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:97:28 [INFO] [stdout] | [INFO] [stdout] 97 | registers::HL => { (self.h, self.l) }, [INFO] [stdout] | ^^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterPair::HL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find unit struct, unit variant or constant `AF` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:98:28 [INFO] [stdout] | [INFO] [stdout] 98 | registers::AF => { (self.a, self.f) }, [INFO] [stdout] | ^^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterPair::AF; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/z80/cpu.rs:105:46 [INFO] [stdout] | [INFO] [stdout] 105 | fn reset_flags_for_value(&mut self, val: int) { [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | not found in this scope [INFO] [stdout] | help: perhaps you intended to use this type: `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/z80/cpu.rs:117:31 [INFO] [stdout] | [INFO] [stdout] 117 | let mut val = (val as int) - (self.a as int); [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | not found in this scope [INFO] [stdout] | help: perhaps you intended to use this type: `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/z80/cpu.rs:117:49 [INFO] [stdout] | [INFO] [stdout] 117 | let mut val = (val as int) - (self.a as int); [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | not found in this scope [INFO] [stdout] | help: perhaps you intended to use this type: `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/z80/cpu.rs:119:32 [INFO] [stdout] | [INFO] [stdout] 119 | val -= ((self.f as int) & 0x10) >> 4; [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | not found in this scope [INFO] [stdout] | help: perhaps you intended to use this type: `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/z80/cpu.rs:136:31 [INFO] [stdout] | [INFO] [stdout] 136 | let mut val = (val as int) + (self.a as int); [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | not found in this scope [INFO] [stdout] | help: perhaps you intended to use this type: `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/z80/cpu.rs:136:49 [INFO] [stdout] | [INFO] [stdout] 136 | let mut val = (val as int) + (self.a as int); [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | not found in this scope [INFO] [stdout] | help: perhaps you intended to use this type: `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/z80/cpu.rs:138:32 [INFO] [stdout] | [INFO] [stdout] 138 | val += ((self.f as int) & 0x10) >> 4; [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | not found in this scope [INFO] [stdout] | help: perhaps you intended to use this type: `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Show` in module `fmt` [INFO] [stdout] --> src/z80/cpu.rs:158:11 [INFO] [stdout] | [INFO] [stdout] 158 | impl fmt::Show for Z80 { [INFO] [stdout] | ^^^^ not found in `fmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `LDrr` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:226:16 [INFO] [stdout] | [INFO] [stdout] 226 | instr::LDrr(r1, r2) => { state.registers.copy(r1, r2); state.tick(1, 4); }, [INFO] [stdout] | ^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::LDrr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `LDrHLm` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:227:16 [INFO] [stdout] | [INFO] [stdout] 227 | ... instr::LDrHLm(r) => { let hl = state.registers.get_pair(registers::HL); state.registers.set(r, mmu.read_byte(hl)); state.tick(2,... [INFO] [stdout] | ^^^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::LDrHLm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HL` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:227:79 [INFO] [stdout] | [INFO] [stdout] 227 | ... instr::LDrHLm(r) => { let hl = state.registers.get_pair(registers::HL); state.registers.set(r, mmu.read_byte(hl)); state.tick(2,... [INFO] [stdout] | ^^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterPair::HL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `LDHLmr` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:228:16 [INFO] [stdout] | [INFO] [stdout] 228 | ... instr::LDHLmr(r) => { let hl = state.registers.get_pair(registers::HL); mmu.write_byte(hl, state.registers.get(r)); state.tick(2... [INFO] [stdout] | ^^^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::LDHLmr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HL` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:228:79 [INFO] [stdout] | [INFO] [stdout] 228 | ... instr::LDHLmr(r) => { let hl = state.registers.get_pair(registers::HL); mmu.write_byte(hl, state.registers.get(r)); state.tick(2... [INFO] [stdout] | ^^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterPair::HL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `LDrn` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:229:16 [INFO] [stdout] | [INFO] [stdout] 229 | instr::LDrn(r, n) => { state.registers.set(r, n); state.tick(2, 8); }, [INFO] [stdout] | ^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::LDrn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `LDHLmn` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:230:16 [INFO] [stdout] | [INFO] [stdout] 230 | instr::LDHLmn(n) => { mmu.write_byte(state.registers.get_pair(registers::HL), n); state.tick(3, 12); }, [INFO] [stdout] | ^^^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::LDHLmn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HL` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:230:85 [INFO] [stdout] | [INFO] [stdout] 230 | instr::LDHLmn(n) => { mmu.write_byte(state.registers.get_pair(registers::HL), n); state.tick(3, 12); }, [INFO] [stdout] | ^^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterPair::HL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `LDrrmA` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:231:16 [INFO] [stdout] | [INFO] [stdout] 231 | instr::LDrrmA(r) => { mmu.write_byte(state.registers.get_pair(r), state.registers.a); state.tick(2, 8); }, [INFO] [stdout] | ^^^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::LDrrmA; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `LDmmA` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:232:16 [INFO] [stdout] | [INFO] [stdout] 232 | instr::LDmmA(n) => { mmu.write_byte(n, state.registers.a); state.tick(4, 16); }, [INFO] [stdout] | ^^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::LDmmA; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `LDArrm` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:233:16 [INFO] [stdout] | [INFO] [stdout] 233 | instr::LDArrm(r) => { state.registers.a = mmu.read_byte(state.registers.get_pair(r)); state.tick(2, 8); }, [INFO] [stdout] | ^^^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::LDArrm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `LDAmm` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:234:16 [INFO] [stdout] | [INFO] [stdout] 234 | instr::LDAmm(n) => { state.registers.a = mmu.read_byte(n); state.tick(4, 16); }, [INFO] [stdout] | ^^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::LDAmm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `LDrrnn` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:235:16 [INFO] [stdout] | [INFO] [stdout] 235 | instr::LDrrnn(r, n) => { state.registers.set_pair(r, n); state.tick(3, 12); }, [INFO] [stdout] | ^^^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::LDrrnn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `LDHLmm` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:236:16 [INFO] [stdout] | [INFO] [stdout] 236 | instr::LDHLmm(n) => { state.registers.set_pair(registers::HL, mmu.read_word(n)); state.tick(5, 20); }, [INFO] [stdout] | ^^^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::LDHLmm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HL` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:236:70 [INFO] [stdout] | [INFO] [stdout] 236 | instr::LDHLmm(n) => { state.registers.set_pair(registers::HL, mmu.read_word(n)); state.tick(5, 20); }, [INFO] [stdout] | ^^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterPair::HL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `LDmmHL` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:237:16 [INFO] [stdout] | [INFO] [stdout] 237 | instr::LDmmHL(n) => { mmu.write_word(n, state.registers.get_pair(registers::HL)); state.tick(5, 20); }, [INFO] [stdout] | ^^^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::LDmmHL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HL` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:237:88 [INFO] [stdout] | [INFO] [stdout] 237 | instr::LDmmHL(n) => { mmu.write_word(n, state.registers.get_pair(registers::HL)); state.tick(5, 20); }, [INFO] [stdout] | ^^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterPair::HL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find unit struct, unit variant or constant `LDHLIA` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:238:16 [INFO] [stdout] | [INFO] [stdout] 238 | instr::LDHLIA => { [INFO] [stdout] | ^^^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::LDHLIA; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HL` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:239:58 [INFO] [stdout] | [INFO] [stdout] 239 | let hl = state.registers.get_pair(registers::HL); [INFO] [stdout] | ^^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterPair::HL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HL` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:241:49 [INFO] [stdout] | [INFO] [stdout] 241 | state.registers.set_pair(registers::HL, hl + 1); [INFO] [stdout] | ^^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterPair::HL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find unit struct, unit variant or constant `LDAHLI` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:244:16 [INFO] [stdout] | [INFO] [stdout] 244 | instr::LDAHLI => { [INFO] [stdout] | ^^^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::LDAHLI; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HL` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:245:58 [INFO] [stdout] | [INFO] [stdout] 245 | let hl = state.registers.get_pair(registers::HL); [INFO] [stdout] | ^^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterPair::HL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HL` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:247:49 [INFO] [stdout] | [INFO] [stdout] 247 | state.registers.set_pair(registers::HL, hl + 1); [INFO] [stdout] | ^^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterPair::HL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find unit struct, unit variant or constant `LDHLDA` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:250:16 [INFO] [stdout] | [INFO] [stdout] 250 | instr::LDHLDA => { [INFO] [stdout] | ^^^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::LDHLDA; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HL` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:251:58 [INFO] [stdout] | [INFO] [stdout] 251 | let hl = state.registers.get_pair(registers::HL); [INFO] [stdout] | ^^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterPair::HL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HL` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:253:49 [INFO] [stdout] | [INFO] [stdout] 253 | state.registers.set_pair(registers::HL, hl - 1); [INFO] [stdout] | ^^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterPair::HL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find unit struct, unit variant or constant `LDAHLD` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:256:16 [INFO] [stdout] | [INFO] [stdout] 256 | instr::LDAHLD => { [INFO] [stdout] | ^^^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::LDAHLD; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HL` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:257:58 [INFO] [stdout] | [INFO] [stdout] 257 | let hl = state.registers.get_pair(registers::HL); [INFO] [stdout] | ^^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterPair::HL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HL` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:259:49 [INFO] [stdout] | [INFO] [stdout] 259 | state.registers.set_pair(registers::HL, hl - 1); [INFO] [stdout] | ^^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterPair::HL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `LDAIOn` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:262:16 [INFO] [stdout] | [INFO] [stdout] 262 | instr::LDAIOn(n) => { state.registers.a = mmu.read_byte(0xFF00 + (n as u16)); state.tick(3, 12); }, [INFO] [stdout] | ^^^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::LDAIOn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `LDIOnA` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:263:16 [INFO] [stdout] | [INFO] [stdout] 263 | instr::LDIOnA(n) => { mmu.write_byte(0xFF00 + (n as u16), state.registers.a); state.tick(3, 12); }, [INFO] [stdout] | ^^^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::LDIOnA; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find unit struct, unit variant or constant `LDAIOC` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:264:16 [INFO] [stdout] | [INFO] [stdout] 264 | instr::LDAIOC => { state.registers.a = mmu.read_byte(0xFF00 + (state.registers.c as u16)); state.tick(2, 8); }, [INFO] [stdout] | ^^^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::LDAIOC; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find unit struct, unit variant or constant `LDIOCA` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:265:16 [INFO] [stdout] | [INFO] [stdout] 265 | instr::LDIOCA => { mmu.write_byte(0xFF00 + (state.registers.c as u16), state.registers.a); state.tick(2, 8); }, [INFO] [stdout] | ^^^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::LDIOCA; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `LDHLSPn` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:266:16 [INFO] [stdout] | [INFO] [stdout] 266 | ... instr::LDHLSPn(n) => { let val = state.registers.sp + (n as u16); state.registers.set_pair(registers::HL, val); state.tick(3, 12... [INFO] [stdout] | ^^^^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::LDHLSPn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HL` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:266:114 [INFO] [stdout] | [INFO] [stdout] 266 | ...sp + (n as u16); state.registers.set_pair(registers::HL, val); state.tick(3, 12); }, [INFO] [stdout] | ^^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterPair::HL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `SWAP` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:267:16 [INFO] [stdout] | [INFO] [stdout] 267 | instr::SWAP(r) => { [INFO] [stdout] | ^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::SWAP; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `ADDr` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:274:16 [INFO] [stdout] | [INFO] [stdout] 274 | instr::ADDr(r) => { let v = state.registers.get(r); state.registers.add(v, false); state.tick(1, 4); }, [INFO] [stdout] | ^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::ADDr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find unit struct, unit variant or constant `ADDmHL` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:275:16 [INFO] [stdout] | [INFO] [stdout] 275 | ... instr::ADDmHL => { let hl = state.registers.get_pair(registers::HL); state.registers.add(mmu.read_byte(hl), false); state.tick(2, ... [INFO] [stdout] | ^^^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::ADDmHL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HL` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:275:74 [INFO] [stdout] | [INFO] [stdout] 275 | ... instr::ADDmHL => { let hl = state.registers.get_pair(registers::HL); state.registers.add(mmu.read_byte(hl), false); state.tick(2, ... [INFO] [stdout] | ^^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterPair::HL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `ADDn` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:276:16 [INFO] [stdout] | [INFO] [stdout] 276 | instr::ADDn(n) => { state.registers.add(n, false); state.tick(2, 8); }, [INFO] [stdout] | ^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::ADDn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `ADDHLrr` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:277:16 [INFO] [stdout] | [INFO] [stdout] 277 | instr::ADDHLrr(rr) => { [INFO] [stdout] | ^^^^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::ADDHLrr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HL` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:278:62 [INFO] [stdout] | [INFO] [stdout] 278 | let mut hl = state.registers.get_pair(registers::HL) as int; [INFO] [stdout] | ^^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterPair::HL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/z80/cpu.rs:278:69 [INFO] [stdout] | [INFO] [stdout] 278 | let mut hl = state.registers.get_pair(registers::HL) as int; [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | not found in this scope [INFO] [stdout] | help: perhaps you intended to use this type: `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/z80/cpu.rs:279:51 [INFO] [stdout] | [INFO] [stdout] 279 | hl += state.registers.get_pair(rr) as int; [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | not found in this scope [INFO] [stdout] | help: perhaps you intended to use this type: `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `ADDSPn` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:290:16 [INFO] [stdout] | [INFO] [stdout] 290 | instr::ADDSPn(n) => { state.registers.sp = ((n as int) + (state.registers.sp as int)) as u16; state.tick(4, 16); }, [INFO] [stdout] | ^^^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::ADDSPn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/z80/cpu.rs:290:59 [INFO] [stdout] | [INFO] [stdout] 290 | instr::ADDSPn(n) => { state.registers.sp = ((n as int) + (state.registers.sp as int)) as u16; state.tick(4, 16); }, [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | not found in this scope [INFO] [stdout] | help: perhaps you intended to use this type: `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/z80/cpu.rs:290:89 [INFO] [stdout] | [INFO] [stdout] 290 | instr::ADDSPn(n) => { state.registers.sp = ((n as int) + (state.registers.sp as int)) as u16; state.tick(4, 16); }, [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | not found in this scope [INFO] [stdout] | help: perhaps you intended to use this type: `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `ADCr` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:291:16 [INFO] [stdout] | [INFO] [stdout] 291 | instr::ADCr(r) => { let v = state.registers.get(r); state.registers.add(v, true); state.tick(1, 4); }, [INFO] [stdout] | ^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::ADCr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find unit struct, unit variant or constant `ADCmHL` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:292:16 [INFO] [stdout] | [INFO] [stdout] 292 | ... instr::ADCmHL => { let hl = state.registers.get_pair(registers::HL); state.registers.add(mmu.read_byte(hl), true); state.tick(2,... [INFO] [stdout] | ^^^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::ADCmHL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HL` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:292:76 [INFO] [stdout] | [INFO] [stdout] 292 | ... instr::ADCmHL => { let hl = state.registers.get_pair(registers::HL); state.registers.add(mmu.read_byte(hl), true); state.tick(2,... [INFO] [stdout] | ^^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterPair::HL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `ADCn` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:293:16 [INFO] [stdout] | [INFO] [stdout] 293 | instr::ADCn(n) => { state.registers.add(n, true); state.tick(2, 8); }, [INFO] [stdout] | ^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::ADCn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `SUBr` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:294:16 [INFO] [stdout] | [INFO] [stdout] 294 | instr::SUBr(r) => { let v = state.registers.get(r); state.registers.sub(v, false); state.tick(1, 4); }, [INFO] [stdout] | ^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::SUBr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find unit struct, unit variant or constant `SUBmHL` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:295:16 [INFO] [stdout] | [INFO] [stdout] 295 | ... instr::SUBmHL => { let hl = state.registers.get_pair(registers::HL); state.registers.sub(mmu.read_byte(hl), false); state.tick(2... [INFO] [stdout] | ^^^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::SUBmHL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HL` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:295:76 [INFO] [stdout] | [INFO] [stdout] 295 | ... instr::SUBmHL => { let hl = state.registers.get_pair(registers::HL); state.registers.sub(mmu.read_byte(hl), false); state.tick(2... [INFO] [stdout] | ^^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterPair::HL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `SUBn` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:296:16 [INFO] [stdout] | [INFO] [stdout] 296 | instr::SUBn(n) => { state.registers.sub(n, false); state.tick(2, 8); }, [INFO] [stdout] | ^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::SUBn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `SBCr` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:297:16 [INFO] [stdout] | [INFO] [stdout] 297 | instr::SBCr(r) => { let v = state.registers.get(r); state.registers.sub(v, true); state.tick(1, 4); }, [INFO] [stdout] | ^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::SBCr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find unit struct, unit variant or constant `SBCmHL` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:298:16 [INFO] [stdout] | [INFO] [stdout] 298 | ... instr::SBCmHL => { let hl = state.registers.get_pair(registers::HL); state.registers.sub(mmu.read_byte(hl), true); state.tick(2,... [INFO] [stdout] | ^^^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::SBCmHL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HL` in module `registers` [INFO] [stdout] --> src/z80/cpu.rs:298:76 [INFO] [stdout] | [INFO] [stdout] 298 | ... instr::SBCmHL => { let hl = state.registers.get_pair(registers::HL); state.registers.sub(mmu.read_byte(hl), true); state.tick(2,... [INFO] [stdout] | ^^ not found in `registers` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80RegisterPair::HL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `SBCn` in module `instr` [INFO] [stdout] --> src/z80/cpu.rs:299:16 [INFO] [stdout] | [INFO] [stdout] 299 | instr::SBCn(n) => { state.registers.sub(n, true); state.tick(2, 8); } [INFO] [stdout] | ^^^^ not found in `instr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1 | use z80::Z80Instruction::SBCn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/z80/mmu.rs:15:20 [INFO] [stdout] | [INFO] [stdout] 15 | self.ram[addr as uint] [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/z80/mmu.rs:24:20 [INFO] [stdout] | [INFO] [stdout] 24 | self.ram[addr as uint] = val; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0554]: `#![feature]` may not be used on the stable release channel [INFO] [stdout] --> src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(phase)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0554]: `#![feature]` may not be used on the stable release channel [INFO] [stdout] --> src/lib.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(macro_rules)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the attribute [INFO] [stdout] | [INFO] [stdout] = help: the feature `macro_rules` has been stable since 1.0.0 and no longer requires an attribute to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 117 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0425, E0463, E0531, E0554. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rustboy` due to 118 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "56b32c6196f94033cc3cf4a3158a92cfbd4888b447a5fdefe2e0ea3900560c4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "56b32c6196f94033cc3cf4a3158a92cfbd4888b447a5fdefe2e0ea3900560c4d", kill_on_drop: false }` [INFO] [stdout] 56b32c6196f94033cc3cf4a3158a92cfbd4888b447a5fdefe2e0ea3900560c4d