[INFO] cloning repository https://github.com/HOddyPropsting/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/HOddyPropsting/Gameboy-Emulator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHOddyPropsting%2FGameboy-Emulator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHOddyPropsting%2FGameboy-Emulator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2a4212e1d2baf148900aa804c3752e261eadad81 [INFO] building HOddyPropsting/Gameboy-Emulator against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHOddyPropsting%2FGameboy-Emulator" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/HOddyPropsting/Gameboy-Emulator on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/HOddyPropsting/Gameboy-Emulator [INFO] finished tweaking git repo https://github.com/HOddyPropsting/Gameboy-Emulator [INFO] tweaked toml for git repo https://github.com/HOddyPropsting/Gameboy-Emulator written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/HOddyPropsting/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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 12 packages to latest compatible versions [INFO] [stderr] Adding bitflags v1.3.2 [INFO] [stderr] Adding cloudabi v0.0.3 [INFO] [stderr] Adding fuchsia-cprng v0.1.1 [INFO] [stderr] Updating libc v0.2.23 -> v0.2.169 [INFO] [stderr] Adding rand v0.5.6 (available: v0.8.5) [INFO] [stderr] Adding rand_core v0.3.1 [INFO] [stderr] Adding rand_core v0.4.2 [INFO] [stderr] Adding time v0.1.45 (available: v0.3.37) [INFO] [stderr] Adding wasi v0.10.0+wasi-snapshot-preview1 (available: v0.10.2+wasi-snapshot-preview1) [INFO] [stderr] Adding winapi v0.3.9 [INFO] [stderr] Adding winapi-i686-pc-windows-gnu v0.4.0 [INFO] [stderr] Adding winapi-x86_64-pc-windows-gnu v0.4.0 [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded num v0.1.37 [INFO] [stderr] Downloaded num-traits v0.1.37 [INFO] [stderr] Downloaded sdl2-sys v0.30.0 [INFO] [stderr] Downloaded num-integer v0.1.34 [INFO] [stderr] Downloaded num-iter v0.1.33 [INFO] [stderr] Downloaded sdl2 v0.30.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 11f6a077434881164c116b56f5636cda54576652a07eba451125421c11cdb4d8 [INFO] running `Command { std: "docker" "start" "-a" "11f6a077434881164c116b56f5636cda54576652a07eba451125421c11cdb4d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "11f6a077434881164c116b56f5636cda54576652a07eba451125421c11cdb4d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "11f6a077434881164c116b56f5636cda54576652a07eba451125421c11cdb4d8", kill_on_drop: false }` [INFO] [stdout] 11f6a077434881164c116b56f5636cda54576652a07eba451125421c11cdb4d8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ede614a53a34ede18ae8a7f9711b7c90da4594731bd91c095fbb56a5ae5789d1 [INFO] running `Command { std: "docker" "start" "-a" "ede614a53a34ede18ae8a7f9711b7c90da4594731bd91c095fbb56a5ae5789d1", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling num-traits v0.1.37 [INFO] [stderr] Compiling sdl2-sys v0.30.0 [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling bitflags v0.7.0 [INFO] [stderr] Compiling lazy_static v0.2.8 [INFO] [stderr] Compiling gb v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling num-integer v0.1.34 [INFO] [stderr] Compiling num-iter v0.1.33 [INFO] [stderr] Compiling num v0.1.37 [INFO] [stderr] Compiling rand v0.3.15 [INFO] [stderr] Compiling rand v0.5.6 [INFO] [stderr] Compiling time v0.1.45 [INFO] [stderr] Compiling sdl2 v0.30.0 [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/cpu.rs:721:42 [INFO] [stdout] | [INFO] [stdout] 721 | 0x56 => { ld_8!(self,D,HL_address);; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1294:12 [INFO] [stdout] | [INFO] [stdout] 1294 | 0o000...0o007 => self.rlc(reg_vec[(instruction % 8) as usize]), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1295:12 [INFO] [stdout] | [INFO] [stdout] 1295 | 0o010...0o017 => self.rrc(reg_vec[(instruction % 8) as usize]), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1296:12 [INFO] [stdout] | [INFO] [stdout] 1296 | 0o020...0o027 => self.rl(reg_vec[(instruction % 8) as usize]), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1297:12 [INFO] [stdout] | [INFO] [stdout] 1297 | 0o030...0o037 => self.rr(reg_vec[(instruction % 8) as usize]), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1298:12 [INFO] [stdout] | [INFO] [stdout] 1298 | 0o040...0o047 => self.sla(reg_vec[(instruction % 8) as usize]), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1299:12 [INFO] [stdout] | [INFO] [stdout] 1299 | 0o050...0o057 => self.sra(reg_vec[(instruction % 8) as usize]), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1300:12 [INFO] [stdout] | [INFO] [stdout] 1300 | 0o060...0o067 => self.swap(reg_vec[(instruction % 8) as usize]), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1301:12 [INFO] [stdout] | [INFO] [stdout] 1301 | 0o070...0o077 => self.srl(reg_vec[(instruction % 8) as usize]), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1302:12 [INFO] [stdout] | [INFO] [stdout] 1302 | 0o100...0o107 => self.bit(reg_vec[(instruction % 8) as usize], Bit::One), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1303:12 [INFO] [stdout] | [INFO] [stdout] 1303 | 0o110...0o117 => self.bit(reg_vec[(instruction % 8) as usize], Bit::Two), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1304:12 [INFO] [stdout] | [INFO] [stdout] 1304 | 0o120...0o127 => self.bit(reg_vec[(instruction % 8) as usize], Bit::Three), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1305:12 [INFO] [stdout] | [INFO] [stdout] 1305 | 0o130...0o137 => self.bit(reg_vec[(instruction % 8) as usize], Bit::Four), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1306:12 [INFO] [stdout] | [INFO] [stdout] 1306 | 0o140...0o147 => self.bit(reg_vec[(instruction % 8) as usize], Bit::Five), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1307:12 [INFO] [stdout] | [INFO] [stdout] 1307 | 0o150...0o157 => self.bit(reg_vec[(instruction % 8) as usize], Bit::Six), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1308:12 [INFO] [stdout] | [INFO] [stdout] 1308 | 0o160...0o167 => self.bit(reg_vec[(instruction % 8) as usize], Bit::Seven), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1309:12 [INFO] [stdout] | [INFO] [stdout] 1309 | 0o170...0o177 => self.bit(reg_vec[(instruction % 8) as usize], Bit::Eight), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1310:12 [INFO] [stdout] | [INFO] [stdout] 1310 | 0o200...0o207 => self.res(reg_vec[(instruction % 8) as usize], Bit::One), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1311:12 [INFO] [stdout] | [INFO] [stdout] 1311 | 0o210...0o217 => self.res(reg_vec[(instruction % 8) as usize], Bit::Two), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1312:12 [INFO] [stdout] | [INFO] [stdout] 1312 | 0o220...0o227 => self.res(reg_vec[(instruction % 8) as usize], Bit::Three), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1313:12 [INFO] [stdout] | [INFO] [stdout] 1313 | 0o230...0o237 => self.res(reg_vec[(instruction % 8) as usize], Bit::Four), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1314:12 [INFO] [stdout] | [INFO] [stdout] 1314 | 0o240...0o247 => self.res(reg_vec[(instruction % 8) as usize], Bit::Five), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1315:12 [INFO] [stdout] | [INFO] [stdout] 1315 | 0o250...0o257 => self.res(reg_vec[(instruction % 8) as usize], Bit::Six), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1316:12 [INFO] [stdout] | [INFO] [stdout] 1316 | 0o260...0o267 => self.res(reg_vec[(instruction % 8) as usize], Bit::Seven), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1317:12 [INFO] [stdout] | [INFO] [stdout] 1317 | 0o270...0o277 => self.res(reg_vec[(instruction % 8) as usize], Bit::Eight), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1318:12 [INFO] [stdout] | [INFO] [stdout] 1318 | 0o300...0o307 => self.set(reg_vec[(instruction % 8) as usize], Bit::One), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1319:12 [INFO] [stdout] | [INFO] [stdout] 1319 | 0o310...0o317 => self.set(reg_vec[(instruction % 8) as usize], Bit::Two), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1320:12 [INFO] [stdout] | [INFO] [stdout] 1320 | 0o320...0o327 => self.set(reg_vec[(instruction % 8) as usize], Bit::Three), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1321:12 [INFO] [stdout] | [INFO] [stdout] 1321 | 0o330...0o337 => self.set(reg_vec[(instruction % 8) as usize], Bit::Four), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1322:12 [INFO] [stdout] | [INFO] [stdout] 1322 | 0o340...0o347 => self.set(reg_vec[(instruction % 8) as usize], Bit::Five), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1323:12 [INFO] [stdout] | [INFO] [stdout] 1323 | 0o350...0o357 => self.set(reg_vec[(instruction % 8) as usize], Bit::Six), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1324:12 [INFO] [stdout] | [INFO] [stdout] 1324 | 0o360...0o367 => self.set(reg_vec[(instruction % 8) as usize], Bit::Seven), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1325:12 [INFO] [stdout] | [INFO] [stdout] 1325 | 0o370...0o377 => self.set(reg_vec[(instruction % 8) as usize], Bit::Eight), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::rect::Point` [INFO] [stdout] --> src/lcd.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use sdl2::rect::Point; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WindowContext` [INFO] [stdout] --> src/lcd.rs:4:27 [INFO] [stdout] | [INFO] [stdout] 4 | use sdl2::video::{Window, WindowContext}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::video::WindowSurfaceRef` [INFO] [stdout] --> src/lcd.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use sdl2::video::WindowSurfaceRef; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mmu` [INFO] [stdout] --> src/lcd.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | use mmu::{Mmu,Bit}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around assigned value [INFO] [stdout] --> src/lcd.rs:50:37 [INFO] [stdout] | [INFO] [stdout] 50 | const BG_COLOR_SHADES : [Color;4] = {[COLOR_WHITE, COLOR_L_GREY, COLOR_GREY, COLOR_BLACK]}; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 50 - const BG_COLOR_SHADES : [Color;4] = {[COLOR_WHITE, COLOR_L_GREY, COLOR_GREY, COLOR_BLACK]}; [INFO] [stdout] 50 + const BG_COLOR_SHADES : [Color;4] = [COLOR_WHITE, COLOR_L_GREY, COLOR_GREY, COLOR_BLACK]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mmu::Bit` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use mmu::Bit; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/cpu.rs:1326:7 [INFO] [stdout] | [INFO] [stdout] 1326 | _ => panic!("invalid instruction given to prefix_cb"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/cpu.rs:1326:7 [INFO] [stdout] | [INFO] [stdout] 1294 | 0o000...0o007 => self.rlc(reg_vec[(instruction % 8) as usize]), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 1295 | 0o010...0o017 => self.rrc(reg_vec[(instruction % 8) as usize]), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 1296 | 0o020...0o027 => self.rl(reg_vec[(instruction % 8) as usize]), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 1297 | 0o030...0o037 => self.rr(reg_vec[(instruction % 8) as usize]), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1326 | _ => panic!("invalid instruction given to prefix_cb"), [INFO] [stdout] | ^ ...and 28 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/main.rs:41:11 [INFO] [stdout] | [INFO] [stdout] 41 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dt` [INFO] [stdout] --> src/main.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let dt = prev.to(now); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | let mut c = Cpu::default(); [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | let mut canvas = window [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:41:7 [INFO] [stdout] | [INFO] [stdout] 41 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_bit` is never used [INFO] [stdout] --> src/mmu.rs:77:10 [INFO] [stdout] | [INFO] [stdout] 42 | impl Mmu { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn set_bit(&mut self, loc : u16, bit : Bit) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `F` is never constructed [INFO] [stdout] --> src/cpu.rs:14:3 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum Register{ [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 14 | F, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Register` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `TIMER_OVERFLOW`, `SERIAL_TRANSFER`, and `INPUT` are never constructed [INFO] [stdout] --> src/cpu.rs:1344:5 [INFO] [stdout] | [INFO] [stdout] 1341 | pub enum Interrupt{ [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 1344 | TIMER_OVERFLOW = 0x0050, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 1345 | SERIAL_TRANSFER = 0x0058, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 1346 | INPUT = 0x0060, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BG_PALETTE` is never used [INFO] [stdout] --> src/lcd.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | const BG_PALETTE: u16 = 0xFF47; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SpriteSize` is never used [INFO] [stdout] --> src/lcd.rs:60:6 [INFO] [stdout] | [INFO] [stdout] 60 | enum SpriteSize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_lcd_enabled`, `get_window_tile_bank`, `get_window_enabled`, `get_sprite_size`, and `get_sprite_enabled` are never used [INFO] [stdout] --> src/lcd.rs:67:6 [INFO] [stdout] | [INFO] [stdout] 65 | impl Lcd { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 66 | [INFO] [stdout] 67 | fn get_lcd_enabled(&self) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn get_window_tile_bank(&self) -> u16{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | fn get_window_enabled(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | fn get_sprite_size(&self) -> SpriteSize{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | fn get_sprite_enabled(&self) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.25s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: bitflags v0.7.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "ede614a53a34ede18ae8a7f9711b7c90da4594731bd91c095fbb56a5ae5789d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ede614a53a34ede18ae8a7f9711b7c90da4594731bd91c095fbb56a5ae5789d1", kill_on_drop: false }` [INFO] [stdout] ede614a53a34ede18ae8a7f9711b7c90da4594731bd91c095fbb56a5ae5789d1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] efa5f20cce07fa1042d2f11979a639b6f332c0760f47599228f2dab677615aab [INFO] running `Command { std: "docker" "start" "-a" "efa5f20cce07fa1042d2f11979a639b6f332c0760f47599228f2dab677615aab", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling gb v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/cpu.rs:721:42 [INFO] [stdout] | [INFO] [stdout] 721 | 0x56 => { ld_8!(self,D,HL_address);; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1294:12 [INFO] [stdout] | [INFO] [stdout] 1294 | 0o000...0o007 => self.rlc(reg_vec[(instruction % 8) as usize]), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1295:12 [INFO] [stdout] | [INFO] [stdout] 1295 | 0o010...0o017 => self.rrc(reg_vec[(instruction % 8) as usize]), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1296:12 [INFO] [stdout] | [INFO] [stdout] 1296 | 0o020...0o027 => self.rl(reg_vec[(instruction % 8) as usize]), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1297:12 [INFO] [stdout] | [INFO] [stdout] 1297 | 0o030...0o037 => self.rr(reg_vec[(instruction % 8) as usize]), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1298:12 [INFO] [stdout] | [INFO] [stdout] 1298 | 0o040...0o047 => self.sla(reg_vec[(instruction % 8) as usize]), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1299:12 [INFO] [stdout] | [INFO] [stdout] 1299 | 0o050...0o057 => self.sra(reg_vec[(instruction % 8) as usize]), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1300:12 [INFO] [stdout] | [INFO] [stdout] 1300 | 0o060...0o067 => self.swap(reg_vec[(instruction % 8) as usize]), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1301:12 [INFO] [stdout] | [INFO] [stdout] 1301 | 0o070...0o077 => self.srl(reg_vec[(instruction % 8) as usize]), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1302:12 [INFO] [stdout] | [INFO] [stdout] 1302 | 0o100...0o107 => self.bit(reg_vec[(instruction % 8) as usize], Bit::One), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1303:12 [INFO] [stdout] | [INFO] [stdout] 1303 | 0o110...0o117 => self.bit(reg_vec[(instruction % 8) as usize], Bit::Two), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1304:12 [INFO] [stdout] | [INFO] [stdout] 1304 | 0o120...0o127 => self.bit(reg_vec[(instruction % 8) as usize], Bit::Three), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1305:12 [INFO] [stdout] | [INFO] [stdout] 1305 | 0o130...0o137 => self.bit(reg_vec[(instruction % 8) as usize], Bit::Four), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1306:12 [INFO] [stdout] | [INFO] [stdout] 1306 | 0o140...0o147 => self.bit(reg_vec[(instruction % 8) as usize], Bit::Five), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1307:12 [INFO] [stdout] | [INFO] [stdout] 1307 | 0o150...0o157 => self.bit(reg_vec[(instruction % 8) as usize], Bit::Six), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1308:12 [INFO] [stdout] | [INFO] [stdout] 1308 | 0o160...0o167 => self.bit(reg_vec[(instruction % 8) as usize], Bit::Seven), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1309:12 [INFO] [stdout] | [INFO] [stdout] 1309 | 0o170...0o177 => self.bit(reg_vec[(instruction % 8) as usize], Bit::Eight), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1310:12 [INFO] [stdout] | [INFO] [stdout] 1310 | 0o200...0o207 => self.res(reg_vec[(instruction % 8) as usize], Bit::One), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1311:12 [INFO] [stdout] | [INFO] [stdout] 1311 | 0o210...0o217 => self.res(reg_vec[(instruction % 8) as usize], Bit::Two), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1312:12 [INFO] [stdout] | [INFO] [stdout] 1312 | 0o220...0o227 => self.res(reg_vec[(instruction % 8) as usize], Bit::Three), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1313:12 [INFO] [stdout] | [INFO] [stdout] 1313 | 0o230...0o237 => self.res(reg_vec[(instruction % 8) as usize], Bit::Four), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1314:12 [INFO] [stdout] | [INFO] [stdout] 1314 | 0o240...0o247 => self.res(reg_vec[(instruction % 8) as usize], Bit::Five), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1315:12 [INFO] [stdout] | [INFO] [stdout] 1315 | 0o250...0o257 => self.res(reg_vec[(instruction % 8) as usize], Bit::Six), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1316:12 [INFO] [stdout] | [INFO] [stdout] 1316 | 0o260...0o267 => self.res(reg_vec[(instruction % 8) as usize], Bit::Seven), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1317:12 [INFO] [stdout] | [INFO] [stdout] 1317 | 0o270...0o277 => self.res(reg_vec[(instruction % 8) as usize], Bit::Eight), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1318:12 [INFO] [stdout] | [INFO] [stdout] 1318 | 0o300...0o307 => self.set(reg_vec[(instruction % 8) as usize], Bit::One), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1319:12 [INFO] [stdout] | [INFO] [stdout] 1319 | 0o310...0o317 => self.set(reg_vec[(instruction % 8) as usize], Bit::Two), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1320:12 [INFO] [stdout] | [INFO] [stdout] 1320 | 0o320...0o327 => self.set(reg_vec[(instruction % 8) as usize], Bit::Three), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1321:12 [INFO] [stdout] | [INFO] [stdout] 1321 | 0o330...0o337 => self.set(reg_vec[(instruction % 8) as usize], Bit::Four), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1322:12 [INFO] [stdout] | [INFO] [stdout] 1322 | 0o340...0o347 => self.set(reg_vec[(instruction % 8) as usize], Bit::Five), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1323:12 [INFO] [stdout] | [INFO] [stdout] 1323 | 0o350...0o357 => self.set(reg_vec[(instruction % 8) as usize], Bit::Six), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1324:12 [INFO] [stdout] | [INFO] [stdout] 1324 | 0o360...0o367 => self.set(reg_vec[(instruction % 8) as usize], Bit::Seven), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:1325:12 [INFO] [stdout] | [INFO] [stdout] 1325 | 0o370...0o377 => self.set(reg_vec[(instruction % 8) as usize], Bit::Eight), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::rect::Point` [INFO] [stdout] --> src/lcd.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use sdl2::rect::Point; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WindowContext` [INFO] [stdout] --> src/lcd.rs:4:27 [INFO] [stdout] | [INFO] [stdout] 4 | use sdl2::video::{Window, WindowContext}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::video::WindowSurfaceRef` [INFO] [stdout] --> src/lcd.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use sdl2::video::WindowSurfaceRef; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mmu` [INFO] [stdout] --> src/lcd.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | use mmu::{Mmu,Bit}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around assigned value [INFO] [stdout] --> src/lcd.rs:50:37 [INFO] [stdout] | [INFO] [stdout] 50 | const BG_COLOR_SHADES : [Color;4] = {[COLOR_WHITE, COLOR_L_GREY, COLOR_GREY, COLOR_BLACK]}; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 50 - const BG_COLOR_SHADES : [Color;4] = {[COLOR_WHITE, COLOR_L_GREY, COLOR_GREY, COLOR_BLACK]}; [INFO] [stdout] 50 + const BG_COLOR_SHADES : [Color;4] = [COLOR_WHITE, COLOR_L_GREY, COLOR_GREY, COLOR_BLACK]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mmu::Bit` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use mmu::Bit; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/cpu.rs:1326:7 [INFO] [stdout] | [INFO] [stdout] 1326 | _ => panic!("invalid instruction given to prefix_cb"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/cpu.rs:1326:7 [INFO] [stdout] | [INFO] [stdout] 1294 | 0o000...0o007 => self.rlc(reg_vec[(instruction % 8) as usize]), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 1295 | 0o010...0o017 => self.rrc(reg_vec[(instruction % 8) as usize]), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 1296 | 0o020...0o027 => self.rl(reg_vec[(instruction % 8) as usize]), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 1297 | 0o030...0o037 => self.rr(reg_vec[(instruction % 8) as usize]), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1326 | _ => panic!("invalid instruction given to prefix_cb"), [INFO] [stdout] | ^ ...and 28 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/main.rs:41:11 [INFO] [stdout] | [INFO] [stdout] 41 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dt` [INFO] [stdout] --> src/main.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let dt = prev.to(now); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | let mut c = Cpu::default(); [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | let mut canvas = window [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:41:7 [INFO] [stdout] | [INFO] [stdout] 41 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `F` is never constructed [INFO] [stdout] --> src/cpu.rs:14:3 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum Register{ [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 14 | F, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Register` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `TIMER_OVERFLOW`, `SERIAL_TRANSFER`, and `INPUT` are never constructed [INFO] [stdout] --> src/cpu.rs:1344:5 [INFO] [stdout] | [INFO] [stdout] 1341 | pub enum Interrupt{ [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 1344 | TIMER_OVERFLOW = 0x0050, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 1345 | SERIAL_TRANSFER = 0x0058, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 1346 | INPUT = 0x0060, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BG_PALETTE` is never used [INFO] [stdout] --> src/lcd.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | const BG_PALETTE: u16 = 0xFF47; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SpriteSize` is never used [INFO] [stdout] --> src/lcd.rs:60:6 [INFO] [stdout] | [INFO] [stdout] 60 | enum SpriteSize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_lcd_enabled`, `get_window_tile_bank`, `get_window_enabled`, `get_sprite_size`, and `get_sprite_enabled` are never used [INFO] [stdout] --> src/lcd.rs:67:6 [INFO] [stdout] | [INFO] [stdout] 65 | impl Lcd { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 66 | [INFO] [stdout] 67 | fn get_lcd_enabled(&self) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn get_window_tile_bank(&self) -> u16{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | fn get_window_enabled(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | fn get_sprite_size(&self) -> SpriteSize{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | fn get_sprite_enabled(&self) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.20s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: bitflags v0.7.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "efa5f20cce07fa1042d2f11979a639b6f332c0760f47599228f2dab677615aab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "efa5f20cce07fa1042d2f11979a639b6f332c0760f47599228f2dab677615aab", kill_on_drop: false }` [INFO] [stdout] efa5f20cce07fa1042d2f11979a639b6f332c0760f47599228f2dab677615aab