[INFO] cloning repository https://github.com/kaioluanro/emulador-gba [INFO] running `"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"` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkaioluanro%2Femulador-gba'... [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 93877c3adfe0db1a962b95f042b81a4e2390392a [INFO] testing kaioluanro/emulador-gba against 1.44.0 for beta-1.45-1 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkaioluanro%2Femulador-gba" "/workspace/builds/worker-4/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kaioluanro/emulador-gba on toolchain 1.44.0 [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "read-manifest" "--manifest-path" "Cargo.toml"` [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-4/source/Cargo.toml [INFO] crate git repo https://github.com/kaioluanro/emulador-gba already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.44.0" "build" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] edc97366e1a9735cd97de819a4624148dd93457f05c8aedf8cca813df6215b05 [INFO] running `"docker" "start" "-a" "edc97366e1a9735cd97de819a4624148dd93457f05c8aedf8cca813df6215b05"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling emulator v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `IncDecTarget` [INFO] [stderr] --> src/main.rs:165:43 [INFO] [stderr] | [INFO] [stderr] 165 | 0x02 => Some(Instruction::INC(IncDecTarget::BC)), [INFO] [stderr] | ^^^^^^^^^^^^ use of undeclared type or module `IncDecTarget` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `IncDecTarget` [INFO] [stderr] --> src/main.rs:166:43 [INFO] [stderr] | [INFO] [stderr] 166 | 0x13 => Some(Instruction::INC(IncDecTarget::DE)), [INFO] [stderr] | ^^^^^^^^^^^^ use of undeclared type or module `IncDecTarget` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `PrefixTarget` [INFO] [stderr] --> src/main.rs:183:43 [INFO] [stderr] | [INFO] [stderr] 183 | 0x00 => Some(Instruction::RLC(PrefixTarget::B)), [INFO] [stderr] | ^^^^^^^^^^^^ use of undeclared type or module `PrefixTarget` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `PrefixTarget` [INFO] [stderr] --> src/main.rs:190:43 [INFO] [stderr] | [INFO] [stderr] 190 | 0x02 => Some(Instruction::RLC(PrefixTarget::BC)), [INFO] [stderr] | ^^^^^^^^^^^^ use of undeclared type or module `PrefixTarget` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `flag` in this scope [INFO] [stderr] --> src/main.rs:54:13 [INFO] [stderr] | [INFO] [stderr] 54 | (if flag.zero {1} else {0}) << ZERO_FLAG_BYTE_POSITION | [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `flag` in this scope [INFO] [stderr] --> src/main.rs:55:13 [INFO] [stderr] | [INFO] [stderr] 55 | (if flag.subtract {1} else {0}) << SUBSTRACT_FLAG_BYTE_POSITION | [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `flag` in this scope [INFO] [stderr] --> src/main.rs:56:13 [INFO] [stderr] | [INFO] [stderr] 56 | (if flag.half_carry {1} else {0}) << HALF_CARRY_FLAG_BYTE_POSITION | [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `flag` in this scope [INFO] [stderr] --> src/main.rs:57:13 [INFO] [stderr] | [INFO] [stderr] 57 | (if flag.carry {1} else {0}) << CARRY_FLAG_BYTE_POSITION [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0601]: `main` function not found in crate `emulator` [INFO] [stderr] --> src/main.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | / struct Registers{ [INFO] [stderr] 2 | | a:u8, [INFO] [stderr] 3 | | b:u8, [INFO] [stderr] 4 | | c:u8, [INFO] [stderr] ... | [INFO] [stderr] 193 | | } [INFO] [stderr] 194 | | } [INFO] [stderr] | |_^ consider adding a `main` function to `src/main.rs` [INFO] [stderr] [INFO] [stderr] error[E0201]: duplicate definitions with name `from_byte_prefixed`: [INFO] [stderr] --> src/main.rs:188:5 [INFO] [stderr] | [INFO] [stderr] 181 | / fn from_byte_prefixed (byte:u8) -> Option { [INFO] [stderr] 182 | | match byte{ [INFO] [stderr] 183 | | 0x00 => Some(Instruction::RLC(PrefixTarget::B)), [INFO] [stderr] 184 | | _=> None [INFO] [stderr] 185 | | } [INFO] [stderr] 186 | | } [INFO] [stderr] | |_____- previous definition of `from_byte_prefixed` here [INFO] [stderr] 187 | [INFO] [stderr] 188 | / fn from_byte_prefixed (byte:u8) -> Option { [INFO] [stderr] 189 | | match byte{ [INFO] [stderr] 190 | | 0x02 => Some(Instruction::RLC(PrefixTarget::BC)), [INFO] [stderr] 191 | | _=> None [INFO] [stderr] 192 | | } [INFO] [stderr] 193 | | } [INFO] [stderr] | |_____^ duplicate definition [INFO] [stderr] [INFO] [stderr] error: aborting due to 10 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0201, E0425, E0433, E0601. [INFO] [stderr] For more information about an error, try `rustc --explain E0201`. [INFO] [stderr] error: could not compile `emulator`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "edc97366e1a9735cd97de819a4624148dd93457f05c8aedf8cca813df6215b05"` [INFO] running `"docker" "rm" "-f" "edc97366e1a9735cd97de819a4624148dd93457f05c8aedf8cca813df6215b05"` [INFO] [stdout] edc97366e1a9735cd97de819a4624148dd93457f05c8aedf8cca813df6215b05