[INFO] cloning repository https://github.com/ZacJoffe/gameboy-emulator [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ZacJoffe/gameboy-emulator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZacJoffe%2Fgameboy-emulator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZacJoffe%2Fgameboy-emulator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 367a93884a4ba543759d7b0a20824e66e8e61af5 [INFO] checking ZacJoffe/gameboy-emulator against master#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZacJoffe%2Fgameboy-emulator" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ZacJoffe/gameboy-emulator on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ZacJoffe/gameboy-emulator [INFO] finished tweaking git repo https://github.com/ZacJoffe/gameboy-emulator [INFO] tweaked toml for git repo https://github.com/ZacJoffe/gameboy-emulator written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ZacJoffe/gameboy-emulator already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e1bca4556a640338798865d4495035834daf9a0ebd2e5071d942459f1cf828ad [INFO] running `Command { std: "docker" "start" "-a" "e1bca4556a640338798865d4495035834daf9a0ebd2e5071d942459f1cf828ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e1bca4556a640338798865d4495035834daf9a0ebd2e5071d942459f1cf828ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e1bca4556a640338798865d4495035834daf9a0ebd2e5071d942459f1cf828ad", kill_on_drop: false }` [INFO] [stdout] e1bca4556a640338798865d4495035834daf9a0ebd2e5071d942459f1cf828ad [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0e40c6f3663994ae4245d4ce621f89ac15afba33b43d1ce1c433d5a174ce6cf3 [INFO] running `Command { std: "docker" "start" "-a" "0e40c6f3663994ae4245d4ce621f89ac15afba33b43d1ce1c433d5a174ce6cf3", kill_on_drop: false }` [INFO] [stderr] Checking gameboy-emulator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0616]: field `vram` of struct `GPU` is private [INFO] [stdout] --> src/memory_bus.rs:60:47 [INFO] [stdout] | [INFO] [stdout] 60 | VRAM_START..=VRAM_END => self.gpu.vram[(address - VRAM_START) as usize], [INFO] [stdout] | ^^^^ private field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0616]: field `vram` of struct `GPU` is private [INFO] [stdout] --> src/memory_bus.rs:64:45 [INFO] [stdout] | [INFO] [stdout] 64 | OAM_START..=OAM_END => self.gpu.vram[(address - OAM_START) as usize], [INFO] [stdout] | ^^^^ private field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0616]: field `vram` of struct `GPU` is private [INFO] [stdout] --> src/memory_bus.rs:60:47 [INFO] [stdout] | [INFO] [stdout] 60 | VRAM_START..=VRAM_END => self.gpu.vram[(address - VRAM_START) as usize], [INFO] [stdout] | ^^^^ private field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0616]: field `vram` of struct `GPU` is private [INFO] [stdout] --> src/memory_bus.rs:64:45 [INFO] [stdout] | [INFO] [stdout] 64 | OAM_START..=OAM_END => self.gpu.vram[(address - OAM_START) as usize], [INFO] [stdout] | ^^^^ private field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `target` [INFO] [stdout] --> src/cpu.rs:140:23 [INFO] [stdout] | [INFO] [stdout] 138 | Instruction::INC(target) => { [INFO] [stdout] | ------ move occurs because `target` has type `instructions::IncDecTarget`, which does not implement the `Copy` trait [INFO] [stdout] 139 | self.inc(target); [INFO] [stdout] | ------ value moved here [INFO] [stdout] 140 | match target { [INFO] [stdout] | ^^^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in method `inc` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/cpu.rs:970:31 [INFO] [stdout] | [INFO] [stdout] 970 | fn inc(&mut self, target: IncDecTarget) { [INFO] [stdout] | --- in this method ^^^^^^^^^^^^ this parameter takes ownership of the value [INFO] [stdout] note: if `instructions::IncDecTarget` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/instructions.rs:81:1 [INFO] [stdout] | [INFO] [stdout] 81 | pub enum IncDecTarget { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:139:26 [INFO] [stdout] | [INFO] [stdout] 139 | self.inc(target); [INFO] [stdout] | ------ you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `target` [INFO] [stdout] --> src/cpu.rs:148:23 [INFO] [stdout] | [INFO] [stdout] 146 | Instruction::DEC(target) => { [INFO] [stdout] | ------ move occurs because `target` has type `instructions::IncDecTarget`, which does not implement the `Copy` trait [INFO] [stdout] 147 | self.dec(target); [INFO] [stdout] | ------ value moved here [INFO] [stdout] 148 | match target { [INFO] [stdout] | ^^^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in method `dec` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/cpu.rs:1135:31 [INFO] [stdout] | [INFO] [stdout] 1135 | fn dec(&mut self, target: IncDecTarget) { [INFO] [stdout] | --- in this method ^^^^^^^^^^^^ this parameter takes ownership of the value [INFO] [stdout] note: if `instructions::IncDecTarget` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/instructions.rs:81:1 [INFO] [stdout] | [INFO] [stdout] 81 | pub enum IncDecTarget { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:147:26 [INFO] [stdout] | [INFO] [stdout] 147 | self.dec(target); [INFO] [stdout] | ------ you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `target` [INFO] [stdout] --> src/cpu.rs:140:23 [INFO] [stdout] | [INFO] [stdout] 138 | Instruction::INC(target) => { [INFO] [stdout] | ------ move occurs because `target` has type `instructions::IncDecTarget`, which does not implement the `Copy` trait [INFO] [stdout] 139 | self.inc(target); [INFO] [stdout] | ------ value moved here [INFO] [stdout] 140 | match target { [INFO] [stdout] | ^^^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in method `inc` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/cpu.rs:970:31 [INFO] [stdout] | [INFO] [stdout] 970 | fn inc(&mut self, target: IncDecTarget) { [INFO] [stdout] | --- in this method ^^^^^^^^^^^^ this parameter takes ownership of the value [INFO] [stdout] note: if `instructions::IncDecTarget` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/instructions.rs:81:1 [INFO] [stdout] | [INFO] [stdout] 81 | pub enum IncDecTarget { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:139:26 [INFO] [stdout] | [INFO] [stdout] 139 | self.inc(target); [INFO] [stdout] | ------ you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `target` [INFO] [stdout] --> src/cpu.rs:148:23 [INFO] [stdout] | [INFO] [stdout] 146 | Instruction::DEC(target) => { [INFO] [stdout] | ------ move occurs because `target` has type `instructions::IncDecTarget`, which does not implement the `Copy` trait [INFO] [stdout] 147 | self.dec(target); [INFO] [stdout] | ------ value moved here [INFO] [stdout] 148 | match target { [INFO] [stdout] | ^^^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in method `dec` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/cpu.rs:1135:31 [INFO] [stdout] | [INFO] [stdout] 1135 | fn dec(&mut self, target: IncDecTarget) { [INFO] [stdout] | --- in this method ^^^^^^^^^^^^ this parameter takes ownership of the value [INFO] [stdout] note: if `instructions::IncDecTarget` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/instructions.rs:81:1 [INFO] [stdout] | [INFO] [stdout] 81 | pub enum IncDecTarget { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:147:26 [INFO] [stdout] | [INFO] [stdout] 147 | self.dec(target); [INFO] [stdout] | ------ you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0004]: non-exhaustive patterns: `4_u8..=u8::MAX` not covered [INFO] [stdout] --> src/gpu.rs:64:15 [INFO] [stdout] | [INFO] [stdout] 64 | match self.STAT & 0x3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ pattern `4_u8..=u8::MAX` not covered [INFO] [stdout] | [INFO] [stdout] = note: the matched value is of type `u8` [INFO] [stdout] help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown [INFO] [stdout] | [INFO] [stdout] 68 ~ 3 => Mode::Transfer, [INFO] [stdout] 69 + 4_u8..=u8::MAX => todo!() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0004]: non-exhaustive patterns: `4_u8..=u8::MAX` not covered [INFO] [stdout] --> src/gpu.rs:64:15 [INFO] [stdout] | [INFO] [stdout] 64 | match self.STAT & 0x3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ pattern `4_u8..=u8::MAX` not covered [INFO] [stdout] | [INFO] [stdout] = note: the matched value is of type `u8` [INFO] [stdout] help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown [INFO] [stdout] | [INFO] [stdout] 68 ~ 3 => Mode::Transfer, [INFO] [stdout] 69 + 4_u8..=u8::MAX => todo!() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0004, E0382, E0616. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0004`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0004, E0382, E0616. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0004`. [INFO] [stdout] [INFO] [stderr] error: could not compile `gameboy-emulator` (bin "gameboy-emulator") due to 6 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `gameboy-emulator` (bin "gameboy-emulator" test) due to 6 previous errors [INFO] running `Command { std: "docker" "inspect" "0e40c6f3663994ae4245d4ce621f89ac15afba33b43d1ce1c433d5a174ce6cf3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0e40c6f3663994ae4245d4ce621f89ac15afba33b43d1ce1c433d5a174ce6cf3", kill_on_drop: false }` [INFO] [stdout] 0e40c6f3663994ae4245d4ce621f89ac15afba33b43d1ce1c433d5a174ce6cf3