[INFO] cloning repository https://github.com/kaioluanro/emulador-gba [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kaioluanro/emulador-gba" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkaioluanro%2Femulador-gba", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkaioluanro%2Femulador-gba'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 93877c3adfe0db1a962b95f042b81a4e2390392a [INFO] checking kaioluanro/emulador-gba against beta for pr-78714 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkaioluanro%2Femulador-gba" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kaioluanro/emulador-gba on toolchain beta [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kaioluanro/emulador-gba [INFO] finished tweaking git repo https://github.com/kaioluanro/emulador-gba [INFO] tweaked toml for git repo https://github.com/kaioluanro/emulador-gba written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/kaioluanro/emulador-gba already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 40201fee0b5727266a660af286b8fcacca198716abc09db335c186193daf1560 [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" "40201fee0b5727266a660af286b8fcacca198716abc09db335c186193daf1560", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "40201fee0b5727266a660af286b8fcacca198716abc09db335c186193daf1560", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "40201fee0b5727266a660af286b8fcacca198716abc09db335c186193daf1560", kill_on_drop: false }` [INFO] [stdout] 40201fee0b5727266a660af286b8fcacca198716abc09db335c186193daf1560 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fbf55f4f30a39d8667aab37c2d344d5dc1d8fb98ff983f430b7ed95161c5f3a1 [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" "fbf55f4f30a39d8667aab37c2d344d5dc1d8fb98ff983f430b7ed95161c5f3a1", kill_on_drop: false }` [INFO] [stderr] Checking emulator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IncDecTarget` [INFO] [stdout] --> src/main.rs:165:43 [INFO] [stdout] | [INFO] [stdout] 165 | 0x02 => Some(Instruction::INC(IncDecTarget::BC)), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `IncDecTarget` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IncDecTarget` [INFO] [stdout] --> src/main.rs:166:43 [INFO] [stdout] | [INFO] [stdout] 166 | 0x13 => Some(Instruction::INC(IncDecTarget::DE)), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `IncDecTarget` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PrefixTarget` [INFO] [stdout] --> src/main.rs:183:43 [INFO] [stdout] | [INFO] [stdout] 183 | 0x00 => Some(Instruction::RLC(PrefixTarget::B)), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `PrefixTarget` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PrefixTarget` [INFO] [stdout] --> src/main.rs:190:43 [INFO] [stdout] | [INFO] [stdout] 190 | 0x02 => Some(Instruction::RLC(PrefixTarget::BC)), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `PrefixTarget` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `flag` in this scope [INFO] [stdout] --> src/main.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | (if flag.zero {1} else {0}) << ZERO_FLAG_BYTE_POSITION | [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `flag` in this scope [INFO] [stdout] --> src/main.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | (if flag.subtract {1} else {0}) << SUBSTRACT_FLAG_BYTE_POSITION | [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `flag` in this scope [INFO] [stdout] --> src/main.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | (if flag.half_carry {1} else {0}) << HALF_CARRY_FLAG_BYTE_POSITION | [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `flag` in this scope [INFO] [stdout] --> src/main.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | (if flag.carry {1} else {0}) << CARRY_FLAG_BYTE_POSITION [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0201]: duplicate definitions with name `from_byte_prefixed`: [INFO] [stdout] --> src/main.rs:188:5 [INFO] [stdout] | [INFO] [stdout] 181 | / fn from_byte_prefixed (byte:u8) -> Option { [INFO] [stdout] 182 | | match byte{ [INFO] [stdout] 183 | | 0x00 => Some(Instruction::RLC(PrefixTarget::B)), [INFO] [stdout] 184 | | _=> None [INFO] [stdout] 185 | | } [INFO] [stdout] 186 | | } [INFO] [stdout] | |_____- previous definition of `from_byte_prefixed` here [INFO] [stdout] 187 | [INFO] [stdout] 188 | / fn from_byte_prefixed (byte:u8) -> Option { [INFO] [stdout] 189 | | match byte{ [INFO] [stdout] 190 | | 0x02 => Some(Instruction::RLC(PrefixTarget::BC)), [INFO] [stdout] 191 | | _=> None [INFO] [stdout] 192 | | } [INFO] [stdout] 193 | | } [INFO] [stdout] | |_____^ duplicate definition [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0201, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0201`. [INFO] [stdout] [INFO] [stderr] error: could not compile `emulator` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IncDecTarget` [INFO] [stdout] --> src/main.rs:165:43 [INFO] [stdout] | [INFO] [stdout] 165 | 0x02 => Some(Instruction::INC(IncDecTarget::BC)), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `IncDecTarget` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IncDecTarget` [INFO] [stdout] --> src/main.rs:166:43 [INFO] [stdout] | [INFO] [stdout] 166 | 0x13 => Some(Instruction::INC(IncDecTarget::DE)), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `IncDecTarget` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PrefixTarget` [INFO] [stdout] --> src/main.rs:183:43 [INFO] [stdout] | [INFO] [stdout] 183 | 0x00 => Some(Instruction::RLC(PrefixTarget::B)), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `PrefixTarget` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PrefixTarget` [INFO] [stdout] --> src/main.rs:190:43 [INFO] [stdout] | [INFO] [stdout] 190 | 0x02 => Some(Instruction::RLC(PrefixTarget::BC)), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `PrefixTarget` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `flag` in this scope [INFO] [stdout] --> src/main.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | (if flag.zero {1} else {0}) << ZERO_FLAG_BYTE_POSITION | [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `flag` in this scope [INFO] [stdout] --> src/main.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | (if flag.subtract {1} else {0}) << SUBSTRACT_FLAG_BYTE_POSITION | [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `flag` in this scope [INFO] [stdout] --> src/main.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | (if flag.half_carry {1} else {0}) << HALF_CARRY_FLAG_BYTE_POSITION | [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `flag` in this scope [INFO] [stdout] --> src/main.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | (if flag.carry {1} else {0}) << CARRY_FLAG_BYTE_POSITION [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `emulator` [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / struct Registers{ [INFO] [stdout] 2 | | a:u8, [INFO] [stdout] 3 | | b:u8, [INFO] [stdout] 4 | | c:u8, [INFO] [stdout] ... | [INFO] [stdout] 193 | | } [INFO] [stdout] 194 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/main.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0201]: duplicate definitions with name `from_byte_prefixed`: [INFO] [stdout] --> src/main.rs:188:5 [INFO] [stdout] | [INFO] [stdout] 181 | / fn from_byte_prefixed (byte:u8) -> Option { [INFO] [stdout] 182 | | match byte{ [INFO] [stdout] 183 | | 0x00 => Some(Instruction::RLC(PrefixTarget::B)), [INFO] [stdout] 184 | | _=> None [INFO] [stdout] 185 | | } [INFO] [stdout] 186 | | } [INFO] [stdout] | |_____- previous definition of `from_byte_prefixed` here [INFO] [stdout] 187 | [INFO] [stdout] 188 | / fn from_byte_prefixed (byte:u8) -> Option { [INFO] [stdout] 189 | | match byte{ [INFO] [stdout] 190 | | 0x02 => Some(Instruction::RLC(PrefixTarget::BC)), [INFO] [stdout] 191 | | _=> None [INFO] [stdout] 192 | | } [INFO] [stdout] 193 | | } [INFO] [stdout] | |_____^ duplicate definition [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0201, E0425, E0433, E0601. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0201`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "fbf55f4f30a39d8667aab37c2d344d5dc1d8fb98ff983f430b7ed95161c5f3a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fbf55f4f30a39d8667aab37c2d344d5dc1d8fb98ff983f430b7ed95161c5f3a1", kill_on_drop: false }` [INFO] [stdout] fbf55f4f30a39d8667aab37c2d344d5dc1d8fb98ff983f430b7ed95161c5f3a1