[INFO] cloning repository https://github.com/CarlEkerot/gameboy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/CarlEkerot/gameboy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCarlEkerot%2Fgameboy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCarlEkerot%2Fgameboy'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9ecfe6624e7199257237b71d47ea9811f0b8fd9d [INFO] checking CarlEkerot/gameboy/9ecfe6624e7199257237b71d47ea9811f0b8fd9d against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCarlEkerot%2Fgameboy" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/CarlEkerot/gameboy on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/CarlEkerot/gameboy [INFO] finished tweaking git repo https://github.com/CarlEkerot/gameboy [INFO] tweaked toml for git repo https://github.com/CarlEkerot/gameboy written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/CarlEkerot/gameboy 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded c_vec v1.3.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ff983f6ee7794cc331adb56f310f6c4c3f32d3c4ed42d4714d5d58963a64b938 [INFO] running `Command { std: "docker" "start" "-a" "ff983f6ee7794cc331adb56f310f6c4c3f32d3c4ed42d4714d5d58963a64b938", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ff983f6ee7794cc331adb56f310f6c4c3f32d3c4ed42d4714d5d58963a64b938", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff983f6ee7794cc331adb56f310f6c4c3f32d3c4ed42d4714d5d58963a64b938", kill_on_drop: false }` [INFO] [stdout] ff983f6ee7794cc331adb56f310f6c4c3f32d3c4ed42d4714d5d58963a64b938 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=forbid" "-e" "RUSTDOCFLAGS=--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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 709dd39f39cce14540ec4e86ed8a60201bbb554c7215844137530a5cc3706111 [INFO] running `Command { std: "docker" "start" "-a" "709dd39f39cce14540ec4e86ed8a60201bbb554c7215844137530a5cc3706111", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking libc v0.2.40 [INFO] [stderr] Compiling cc v1.0.9 [INFO] [stderr] Compiling cfg-if v0.1.2 [INFO] [stderr] Checking num-traits v0.2.2 [INFO] [stderr] Checking rustc-demangle v0.1.7 [INFO] [stderr] Checking bitflags v0.7.0 [INFO] [stderr] Checking c_vec v1.3.0 [INFO] [stderr] Checking lazy_static v0.2.11 [INFO] [stderr] Compiling sdl2-sys v0.31.0 [INFO] [stderr] Checking rand v0.4.2 [INFO] [stderr] Checking num-integer v0.1.36 [INFO] [stderr] Compiling backtrace-sys v0.1.16 [INFO] [stderr] Checking num-iter v0.1.35 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking rand v0.3.22 [INFO] [stderr] Checking sdl2 v0.31.0 [INFO] [stderr] Checking backtrace v0.3.5 [INFO] [stderr] Checking error-chain v0.11.0 [INFO] [stderr] Checking gameboy v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `cpu::CPU` [INFO] [stdout] --> src/timer.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | use cpu::CPU; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `test_helpers::test_cpu` [INFO] [stdout] --> src/timer.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | use test_helpers::test_cpu; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lcd.rs:80:33 [INFO] [stdout] | [INFO] [stdout] 80 | let new_ly = (ly + 1) % LY_MAX; [INFO] [stdout] | ^^^^^^ expected `u8`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot calculate the remainder of `u8` divided by `usize` [INFO] [stdout] --> src/lcd.rs:80:31 [INFO] [stdout] | [INFO] [stdout] 80 | let new_ly = (ly + 1) % LY_MAX; [INFO] [stdout] | ^ no implementation for `u8 % usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Rem` is not implemented for `u8` [INFO] [stdout] = help: the following other types implement trait `Rem`: [INFO] [stdout] `&'a u8` implements `Rem` [INFO] [stdout] `&u8` implements `Rem<&u8>` [INFO] [stdout] `u8` implements `Rem<&u8>` [INFO] [stdout] `u8` implements `Rem>` [INFO] [stdout] `u8` implements `Rem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/operations/sla.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | let mut res = val << 1; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ly` [INFO] [stdout] --> src/lcd.rs:95:17 [INFO] [stdout] | [INFO] [stdout] 95 | let ly = self.increase_line_count(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ly` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0004]: non-exhaustive patterns: `4_u8..=u8::MAX` not covered [INFO] [stdout] --> src/lcd.rs:122:15 [INFO] [stdout] | [INFO] [stdout] 122 | match self.state { [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] 126 ~ LCD_MODE3_FLAG => self.update_mode3(), [INFO] [stdout] 127 ~ 4_u8..=u8::MAX => todo!(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0004, E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0004`. [INFO] [stdout] [INFO] [stderr] error: could not compile `gameboy` (lib) due to 4 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lcd.rs:80:33 [INFO] [stdout] | [INFO] [stdout] 80 | let new_ly = (ly + 1) % LY_MAX; [INFO] [stdout] | ^^^^^^ expected `u8`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot calculate the remainder of `u8` divided by `usize` [INFO] [stdout] --> src/lcd.rs:80:31 [INFO] [stdout] | [INFO] [stdout] 80 | let new_ly = (ly + 1) % LY_MAX; [INFO] [stdout] | ^ no implementation for `u8 % usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Rem` is not implemented for `u8` [INFO] [stdout] = help: the following other types implement trait `Rem`: [INFO] [stdout] `&'a u8` implements `Rem` [INFO] [stdout] `&u8` implements `Rem<&u8>` [INFO] [stdout] `u8` implements `Rem<&u8>` [INFO] [stdout] `u8` implements `Rem>` [INFO] [stdout] `u8` implements `Rem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/operations/sla.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | let mut res = val << 1; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ly` [INFO] [stdout] --> src/lcd.rs:95:17 [INFO] [stdout] | [INFO] [stdout] 95 | let ly = self.increase_line_count(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ly` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0004]: non-exhaustive patterns: `4_u8..=u8::MAX` not covered [INFO] [stdout] --> src/lcd.rs:122:15 [INFO] [stdout] | [INFO] [stdout] 122 | match self.state { [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] 126 ~ LCD_MODE3_FLAG => self.update_mode3(), [INFO] [stdout] 127 ~ 4_u8..=u8::MAX => todo!(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0004, E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0004`. [INFO] [stdout] [INFO] [stderr] error: could not compile `gameboy` (lib test) due to 4 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "709dd39f39cce14540ec4e86ed8a60201bbb554c7215844137530a5cc3706111", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "709dd39f39cce14540ec4e86ed8a60201bbb554c7215844137530a5cc3706111", kill_on_drop: false }` [INFO] [stdout] 709dd39f39cce14540ec4e86ed8a60201bbb554c7215844137530a5cc3706111