[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 master#33fdb797f59421c7bbecaa4588ed5d7a31a9494a for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkaioluanro%2Femulador-gba" "/workspace/builds/worker-115/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-115/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kaioluanro/emulador-gba on toolchain 33fdb797f59421c7bbecaa4588ed5d7a31a9494a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", 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-115/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" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-115/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-115/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e16b536d9f1bbb5830b9baa35a15c4a6bbed173af5167a93fae150099e5711e5 [INFO] running `Command { std: "docker" "start" "-a" "e16b536d9f1bbb5830b9baa35a15c4a6bbed173af5167a93fae150099e5711e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e16b536d9f1bbb5830b9baa35a15c4a6bbed173af5167a93fae150099e5711e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e16b536d9f1bbb5830b9baa35a15c4a6bbed173af5167a93fae150099e5711e5", kill_on_drop: false }` [INFO] [stdout] e16b536d9f1bbb5830b9baa35a15c4a6bbed173af5167a93fae150099e5711e5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-115/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-115/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6da5f8193631be76f2a966ff9323ee844d70d5e528102dd363fce8885d184dcf [INFO] running `Command { std: "docker" "start" "-a" "6da5f8193631be76f2a966ff9323ee844d70d5e528102dd363fce8885d184dcf", 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: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] [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: could not compile `emulator` due to 10 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "6da5f8193631be76f2a966ff9323ee844d70d5e528102dd363fce8885d184dcf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6da5f8193631be76f2a966ff9323ee844d70d5e528102dd363fce8885d184dcf", kill_on_drop: false }` [INFO] [stdout] 6da5f8193631be76f2a966ff9323ee844d70d5e528102dd363fce8885d184dcf