[INFO] cloning repository https://github.com/cafeclimber/GadgetNES [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/cafeclimber/GadgetNES" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcafeclimber%2FGadgetNES", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcafeclimber%2FGadgetNES'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 683b6e29ed51b65db4afad1d131ef0797a0e9799 [INFO] checking cafeclimber/GadgetNES/683b6e29ed51b65db4afad1d131ef0797a0e9799 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcafeclimber%2FGadgetNES" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/cafeclimber/GadgetNES 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/cafeclimber/GadgetNES [INFO] finished tweaking git repo https://github.com/cafeclimber/GadgetNES [INFO] tweaked toml for git repo https://github.com/cafeclimber/GadgetNES written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/cafeclimber/GadgetNES 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 atty v0.2.8 [INFO] [stderr] Downloaded sdl2 v0.31.0 [INFO] [stderr] Downloaded num-traits v0.2.2 [INFO] [stderr] Downloaded sdl2-sys v0.31.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6b7b9834a50394cd8cc97488fef8ba17f5bb96efdf826b85eecacccd3f6dd853 [INFO] running `Command { std: "docker" "start" "-a" "6b7b9834a50394cd8cc97488fef8ba17f5bb96efdf826b85eecacccd3f6dd853", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6b7b9834a50394cd8cc97488fef8ba17f5bb96efdf826b85eecacccd3f6dd853", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b7b9834a50394cd8cc97488fef8ba17f5bb96efdf826b85eecacccd3f6dd853", kill_on_drop: false }` [INFO] [stdout] 6b7b9834a50394cd8cc97488fef8ba17f5bb96efdf826b85eecacccd3f6dd853 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8bb75e0fa833f5257a30774b72938a56555c7fe73eb4e54935afc24b1118d1d6 [INFO] running `Command { std: "docker" "start" "-a" "8bb75e0fa833f5257a30774b72938a56555c7fe73eb4e54935afc24b1118d1d6", 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 cfg-if v0.1.2 [INFO] [stderr] Checking num-traits v0.2.2 [INFO] [stderr] Checking unicode-width v0.1.4 [INFO] [stderr] Checking vec_map v0.8.0 [INFO] [stderr] Checking bitflags v1.0.1 [INFO] [stderr] Checking strsim v0.7.0 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking lazy_static v0.2.11 [INFO] [stderr] Checking bitflags v0.7.0 [INFO] [stderr] Compiling sdl2-sys v0.31.0 [INFO] [stderr] Checking textwrap v0.9.0 [INFO] [stderr] Checking rand v0.4.2 [INFO] [stderr] Checking atty v0.2.8 [INFO] [stderr] Checking memchr v1.0.2 [INFO] [stderr] Checking clap v2.31.2 [INFO] [stderr] Checking nom v3.2.1 [INFO] [stderr] Checking num-integer v0.1.36 [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 gadget_nes v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `sdl2::pixels::PixelFormatEnum::RGB24` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use sdl2::pixels::PixelFormatEnum::RGB24; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TextureCreator` and `Texture` [INFO] [stdout] --> src/main.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 13 | use sdl2::render::{Texture, TextureCreator}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/cpu.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | / bitflags! { [INFO] [stdout] 26 | | #[derive(Default)] [INFO] [stdout] 27 | | struct ProcessorFlags: u8 { [INFO] [stdout] 28 | | const CARRY = 0b00000001; [INFO] [stdout] ... | [INFO] [stdout] 36 | | } [INFO] [stdout] 37 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/cpu.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | / bitflags! { [INFO] [stdout] 26 | | #[derive(Default)] [INFO] [stdout] 27 | | struct ProcessorFlags: u8 { [INFO] [stdout] 28 | | const CARRY = 0b00000001; [INFO] [stdout] ... | [INFO] [stdout] 36 | | } [INFO] [stdout] 37 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/cpu.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | / bitflags! { [INFO] [stdout] 26 | | #[derive(Default)] [INFO] [stdout] 27 | | struct ProcessorFlags: u8 { [INFO] [stdout] 28 | | const CARRY = 0b00000001; [INFO] [stdout] ... | [INFO] [stdout] 36 | | } [INFO] [stdout] 37 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:260:16 [INFO] [stdout] | [INFO] [stdout] 260 | 0x0...0x07FF => self.ram[addr 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:261:19 [INFO] [stdout] | [INFO] [stdout] 261 | 0x0800...0x1FFF => self.ram[(addr % 0x0800) 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:262:19 [INFO] [stdout] | [INFO] [stdout] 262 | 0x2000...0xFFFF => interconnect.read_byte(addr), [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:274:16 [INFO] [stdout] | [INFO] [stdout] 274 | 0x0...0x07FF => self.ram[addr as usize] = val, [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:275:19 [INFO] [stdout] | [INFO] [stdout] 275 | 0x0800...0x1FFF => self.ram[(addr % 0x0800) as usize] = val, [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:276:19 [INFO] [stdout] | [INFO] [stdout] 276 | 0x2000...0xFFFF => interconnect.write_byte(addr, val), [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/interconnect.rs:25:19 [INFO] [stdout] | [INFO] [stdout] 25 | 0x2000...0x2007 => unimplemented!(), // PPU registers [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/interconnect.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 26 | 0x2008...0x3FFF => unimplemented!(), // PPU register mirrors [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::pixels::PixelFormatEnum::RGB24` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use sdl2::pixels::PixelFormatEnum::RGB24; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/interconnect.rs:27:19 [INFO] [stdout] | [INFO] [stdout] 27 | 0x4000...0x4017 => unimplemented!(), // APU registers [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/interconnect.rs:28:19 [INFO] [stdout] | [INFO] [stdout] 28 | 0x4018...0x401F => panic!("These registers are disabled during normal operation"), [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 imports: `TextureCreator` and `Texture` [INFO] [stdout] --> src/main.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 13 | use sdl2::render::{Texture, TextureCreator}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/interconnect.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 29 | 0x4020...0xFFFF => self.cart.prg_read(addr), [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/interconnect.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 36 | 0x2000...0x2007 => unimplemented!(), // PPU registers [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/interconnect.rs:37:19 [INFO] [stdout] | [INFO] [stdout] 37 | 0x2008...0x3FFF => unimplemented!(), // PPU register mirrors [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/interconnect.rs:38:19 [INFO] [stdout] | [INFO] [stdout] 38 | 0x4000...0x4017 => unimplemented!(), // APU registers [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/interconnect.rs:39:19 [INFO] [stdout] | [INFO] [stdout] 39 | 0x4018...0x401F => panic!("These registers are disabled during normal operation"), [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: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/cpu.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | / bitflags! { [INFO] [stdout] 26 | | #[derive(Default)] [INFO] [stdout] 27 | | struct ProcessorFlags: u8 { [INFO] [stdout] 28 | | const CARRY = 0b00000001; [INFO] [stdout] ... | [INFO] [stdout] 36 | | } [INFO] [stdout] 37 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/interconnect.rs:40:19 [INFO] [stdout] | [INFO] [stdout] 40 | 0x4020...0xFFFF => self.cart.prg_write(addr, val), [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: `std::time::Duration` [INFO] [stdout] --> src/nes.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/cpu.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | / bitflags! { [INFO] [stdout] 26 | | #[derive(Default)] [INFO] [stdout] 27 | | struct ProcessorFlags: u8 { [INFO] [stdout] 28 | | const CARRY = 0b00000001; [INFO] [stdout] ... | [INFO] [stdout] 36 | | } [INFO] [stdout] 37 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::sdl2::Sdl` [INFO] [stdout] --> src/nes.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use super::sdl2::Sdl; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/nes.rs:70:31 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn step(&mut self) -> (u8) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 70 - pub fn step(&mut self) -> (u8) { [INFO] [stdout] 70 + pub fn step(&mut self) -> u8 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/nes.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | (opcode) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 73 - (opcode) [INFO] [stdout] 73 + opcode [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/cpu.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | / bitflags! { [INFO] [stdout] 26 | | #[derive(Default)] [INFO] [stdout] 27 | | struct ProcessorFlags: u8 { [INFO] [stdout] 28 | | const CARRY = 0b00000001; [INFO] [stdout] ... | [INFO] [stdout] 36 | | } [INFO] [stdout] 37 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:260:16 [INFO] [stdout] | [INFO] [stdout] 260 | 0x0...0x07FF => self.ram[addr 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: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/ppu.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | / bitflags! { [INFO] [stdout] 40 | | #[derive(Default)] [INFO] [stdout] 41 | | struct PpuCtrl: u8 { [INFO] [stdout] 42 | | const NAMETABLE = 0b00000011; [INFO] [stdout] ... | [INFO] [stdout] 49 | | } [INFO] [stdout] 50 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:261:19 [INFO] [stdout] | [INFO] [stdout] 261 | 0x0800...0x1FFF => self.ram[(addr % 0x0800) 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:262:19 [INFO] [stdout] | [INFO] [stdout] 262 | 0x2000...0xFFFF => interconnect.read_byte(addr), [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:274:16 [INFO] [stdout] | [INFO] [stdout] 274 | 0x0...0x07FF => self.ram[addr as usize] = val, [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: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/ppu.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | / bitflags! { [INFO] [stdout] 40 | | #[derive(Default)] [INFO] [stdout] 41 | | struct PpuCtrl: u8 { [INFO] [stdout] 42 | | const NAMETABLE = 0b00000011; [INFO] [stdout] ... | [INFO] [stdout] 49 | | } [INFO] [stdout] 50 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:275:19 [INFO] [stdout] | [INFO] [stdout] 275 | 0x0800...0x1FFF => self.ram[(addr % 0x0800) as usize] = val, [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:276:19 [INFO] [stdout] | [INFO] [stdout] 276 | 0x2000...0xFFFF => interconnect.write_byte(addr, val), [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: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/ppu.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | / bitflags! { [INFO] [stdout] 40 | | #[derive(Default)] [INFO] [stdout] 41 | | struct PpuCtrl: u8 { [INFO] [stdout] 42 | | const NAMETABLE = 0b00000011; [INFO] [stdout] ... | [INFO] [stdout] 49 | | } [INFO] [stdout] 50 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/interconnect.rs:25:19 [INFO] [stdout] | [INFO] [stdout] 25 | 0x2000...0x2007 => unimplemented!(), // PPU registers [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/interconnect.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 26 | 0x2008...0x3FFF => unimplemented!(), // PPU register mirrors [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/interconnect.rs:27:19 [INFO] [stdout] | [INFO] [stdout] 27 | 0x4000...0x4017 => unimplemented!(), // APU registers [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: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/ppu.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 52 | / bitflags! { [INFO] [stdout] 53 | | #[derive(Default)] [INFO] [stdout] 54 | | struct PpuMask: u8 { [INFO] [stdout] 55 | | const GREYSCALE = 0b00000001; [INFO] [stdout] ... | [INFO] [stdout] 63 | | } [INFO] [stdout] 64 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/interconnect.rs:28:19 [INFO] [stdout] | [INFO] [stdout] 28 | 0x4018...0x401F => panic!("These registers are disabled during normal operation"), [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/interconnect.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 29 | 0x4020...0xFFFF => self.cart.prg_read(addr), [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: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/ppu.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 52 | / bitflags! { [INFO] [stdout] 53 | | #[derive(Default)] [INFO] [stdout] 54 | | struct PpuMask: u8 { [INFO] [stdout] 55 | | const GREYSCALE = 0b00000001; [INFO] [stdout] ... | [INFO] [stdout] 63 | | } [INFO] [stdout] 64 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/interconnect.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 36 | 0x2000...0x2007 => unimplemented!(), // PPU registers [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/interconnect.rs:37:19 [INFO] [stdout] | [INFO] [stdout] 37 | 0x2008...0x3FFF => unimplemented!(), // PPU register mirrors [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: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/ppu.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 52 | / bitflags! { [INFO] [stdout] 53 | | #[derive(Default)] [INFO] [stdout] 54 | | struct PpuMask: u8 { [INFO] [stdout] 55 | | const GREYSCALE = 0b00000001; [INFO] [stdout] ... | [INFO] [stdout] 63 | | } [INFO] [stdout] 64 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/interconnect.rs:38:19 [INFO] [stdout] | [INFO] [stdout] 38 | 0x4000...0x4017 => unimplemented!(), // APU registers [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/interconnect.rs:39:19 [INFO] [stdout] | [INFO] [stdout] 39 | 0x4018...0x401F => panic!("These registers are disabled during normal operation"), [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: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/ppu.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 66 | / bitflags! { [INFO] [stdout] 67 | | #[derive(Default)] [INFO] [stdout] 68 | | struct PpuStatus: u8 { [INFO] [stdout] 69 | | const LAST_WRITTEN_BITS = 0b00011111; [INFO] [stdout] ... | [INFO] [stdout] 73 | | } [INFO] [stdout] 74 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/interconnect.rs:40:19 [INFO] [stdout] | [INFO] [stdout] 40 | 0x4020...0xFFFF => self.cart.prg_write(addr, val), [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: `std::time::Duration` [INFO] [stdout] --> src/nes.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/ppu.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 66 | / bitflags! { [INFO] [stdout] 67 | | #[derive(Default)] [INFO] [stdout] 68 | | struct PpuStatus: u8 { [INFO] [stdout] 69 | | const LAST_WRITTEN_BITS = 0b00011111; [INFO] [stdout] ... | [INFO] [stdout] 73 | | } [INFO] [stdout] 74 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::sdl2::Sdl` [INFO] [stdout] --> src/nes.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use super::sdl2::Sdl; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/nes.rs:70:31 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn step(&mut self) -> (u8) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 70 - pub fn step(&mut self) -> (u8) { [INFO] [stdout] 70 + pub fn step(&mut self) -> u8 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/ppu.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 66 | / bitflags! { [INFO] [stdout] 67 | | #[derive(Default)] [INFO] [stdout] 68 | | struct PpuStatus: u8 { [INFO] [stdout] 69 | | const LAST_WRITTEN_BITS = 0b00011111; [INFO] [stdout] ... | [INFO] [stdout] 73 | | } [INFO] [stdout] 74 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/nes.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | (opcode) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 73 - (opcode) [INFO] [stdout] 73 + opcode [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/ppu.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | / bitflags! { [INFO] [stdout] 40 | | #[derive(Default)] [INFO] [stdout] 41 | | struct PpuCtrl: u8 { [INFO] [stdout] 42 | | const NAMETABLE = 0b00000011; [INFO] [stdout] ... | [INFO] [stdout] 49 | | } [INFO] [stdout] 50 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/ppu.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | / bitflags! { [INFO] [stdout] 40 | | #[derive(Default)] [INFO] [stdout] 41 | | struct PpuCtrl: u8 { [INFO] [stdout] 42 | | const NAMETABLE = 0b00000011; [INFO] [stdout] ... | [INFO] [stdout] 49 | | } [INFO] [stdout] 50 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/ppu.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | / bitflags! { [INFO] [stdout] 40 | | #[derive(Default)] [INFO] [stdout] 41 | | struct PpuCtrl: u8 { [INFO] [stdout] 42 | | const NAMETABLE = 0b00000011; [INFO] [stdout] ... | [INFO] [stdout] 49 | | } [INFO] [stdout] 50 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/ppu.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 52 | / bitflags! { [INFO] [stdout] 53 | | #[derive(Default)] [INFO] [stdout] 54 | | struct PpuMask: u8 { [INFO] [stdout] 55 | | const GREYSCALE = 0b00000001; [INFO] [stdout] ... | [INFO] [stdout] 63 | | } [INFO] [stdout] 64 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/ppu.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 52 | / bitflags! { [INFO] [stdout] 53 | | #[derive(Default)] [INFO] [stdout] 54 | | struct PpuMask: u8 { [INFO] [stdout] 55 | | const GREYSCALE = 0b00000001; [INFO] [stdout] ... | [INFO] [stdout] 63 | | } [INFO] [stdout] 64 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/ppu.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 52 | / bitflags! { [INFO] [stdout] 53 | | #[derive(Default)] [INFO] [stdout] 54 | | struct PpuMask: u8 { [INFO] [stdout] 55 | | const GREYSCALE = 0b00000001; [INFO] [stdout] ... | [INFO] [stdout] 63 | | } [INFO] [stdout] 64 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/ppu.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 66 | / bitflags! { [INFO] [stdout] 67 | | #[derive(Default)] [INFO] [stdout] 68 | | struct PpuStatus: u8 { [INFO] [stdout] 69 | | const LAST_WRITTEN_BITS = 0b00011111; [INFO] [stdout] ... | [INFO] [stdout] 73 | | } [INFO] [stdout] 74 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/ppu.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 66 | / bitflags! { [INFO] [stdout] 67 | | #[derive(Default)] [INFO] [stdout] 68 | | struct PpuStatus: u8 { [INFO] [stdout] 69 | | const LAST_WRITTEN_BITS = 0b00011111; [INFO] [stdout] ... | [INFO] [stdout] 73 | | } [INFO] [stdout] 74 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/ppu.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 66 | / bitflags! { [INFO] [stdout] 67 | | #[derive(Default)] [INFO] [stdout] 68 | | struct PpuStatus: u8 { [INFO] [stdout] 69 | | const LAST_WRITTEN_BITS = 0b00011111; [INFO] [stdout] ... | [INFO] [stdout] 73 | | } [INFO] [stdout] 74 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/cart.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | mapper: Box, [INFO] [stdout] | ^^^^^^ [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(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 7 | mapper: Box, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/cart.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | mapper: Box, [INFO] [stdout] | ^^^^^^ [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(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 7 | mapper: Box, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/nes.rs:72:65 [INFO] [stdout] | [INFO] [stdout] 72 | self.interconnect.ppu.step(&mut self.interconnect.cart, self.cpu.cycles()); [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^ expected `u8`, found `usize` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/ppu.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn step(&mut self, cart: &mut Cartridge, cpu_cycles: u8) { [INFO] [stdout] | ^^^^ -------------- [INFO] [stdout] help: you can convert a `usize` to a `u8` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 72 | self.interconnect.ppu.step(&mut self.interconnect.cart, self.cpu.cycles().try_into().unwrap()); [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/nes.rs:72:65 [INFO] [stdout] | [INFO] [stdout] 72 | self.interconnect.ppu.step(&mut self.interconnect.cart, self.cpu.cycles()); [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^ expected `u8`, found `usize` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/ppu.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn step(&mut self, cart: &mut Cartridge, cpu_cycles: u8) { [INFO] [stdout] | ^^^^ -------------- [INFO] [stdout] help: you can convert a `usize` to a `u8` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 72 | self.interconnect.ppu.step(&mut self.interconnect.cart, self.cpu.cycles().try_into().unwrap()); [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interconnect` [INFO] [stdout] --> src/cpu.rs:225:29 [INFO] [stdout] | [INFO] [stdout] 225 | pub fn reset(&mut self, interconnect: &mut Interconnect) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interconnect` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/cpu.rs:263:13 [INFO] [stdout] | [INFO] [stdout] 263 | _ => unreachable!(), [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:263:13 [INFO] [stdout] | [INFO] [stdout] 260 | 0x0...0x07FF => self.ram[addr as usize], [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] 261 | 0x0800...0x1FFF => self.ram[(addr % 0x0800) as usize], [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 262 | 0x2000...0xFFFF => interconnect.read_byte(addr), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 263 | _ => unreachable!(), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/cpu.rs:277:13 [INFO] [stdout] | [INFO] [stdout] 277 | _ => unreachable!(), [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:277:13 [INFO] [stdout] | [INFO] [stdout] 274 | 0x0...0x07FF => self.ram[addr as usize] = val, [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] 275 | 0x0800...0x1FFF => self.ram[(addr % 0x0800) as usize] = val, [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 276 | 0x2000...0xFFFF => interconnect.write_byte(addr, val), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 277 | _ => unreachable!(), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interconnect` [INFO] [stdout] --> src/cpu.rs:225:29 [INFO] [stdout] | [INFO] [stdout] 225 | pub fn reset(&mut self, interconnect: &mut Interconnect) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interconnect` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/cpu.rs:263:13 [INFO] [stdout] | [INFO] [stdout] 263 | _ => unreachable!(), [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:263:13 [INFO] [stdout] | [INFO] [stdout] 260 | 0x0...0x07FF => self.ram[addr as usize], [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] 261 | 0x0800...0x1FFF => self.ram[(addr % 0x0800) as usize], [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 262 | 0x2000...0xFFFF => interconnect.read_byte(addr), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 263 | _ => unreachable!(), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/cpu.rs:277:13 [INFO] [stdout] | [INFO] [stdout] 277 | _ => unreachable!(), [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:277:13 [INFO] [stdout] | [INFO] [stdout] 274 | 0x0...0x07FF => self.ram[addr as usize] = val, [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] 275 | 0x0800...0x1FFF => self.ram[(addr % 0x0800) as usize] = val, [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 276 | 0x2000...0xFFFF => interconnect.write_byte(addr, val), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 277 | _ => unreachable!(), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cart` [INFO] [stdout] --> src/ppu.rs:121:28 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn step(&mut self, cart: &mut Cartridge, cpu_cycles: u8) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_cart` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu_cycles` [INFO] [stdout] --> src/ppu.rs:121:50 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn step(&mut self, cart: &mut Cartridge, cpu_cycles: u8) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cpu_cycles` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/ppu.rs:141:27 [INFO] [stdout] | [INFO] [stdout] 141 | fn visible(&mut self, line: u8) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/ppu.rs:155:26 [INFO] [stdout] | [INFO] [stdout] 155 | fn vblank(&mut self, line: u8) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cart` [INFO] [stdout] --> src/ppu.rs:121:28 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn step(&mut self, cart: &mut Cartridge, cpu_cycles: u8) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_cart` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu_cycles` [INFO] [stdout] --> src/ppu.rs:121:50 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn step(&mut self, cart: &mut Cartridge, cpu_cycles: u8) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cpu_cycles` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/ppu.rs:141:27 [INFO] [stdout] | [INFO] [stdout] 141 | fn visible(&mut self, line: u8) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/ppu.rs:155:26 [INFO] [stdout] | [INFO] [stdout] 155 | fn vblank(&mut self, line: u8) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ppu_screen` [INFO] [stdout] --> src/screen.rs:43:30 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn update(&mut self, ppu_screen: &[u8; SCREEN_SIZE]) {} [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ppu_screen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | let mut sdl = sdl2::init().unwrap(); [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:64:17 [INFO] [stdout] | [INFO] [stdout] 64 | let mut screen = Screen::new(canvas, &texture_creator); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ppu_screen` [INFO] [stdout] --> src/screen.rs:43:30 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn update(&mut self, ppu_screen: &[u8; SCREEN_SIZE]) {} [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ppu_screen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | let mut sdl = sdl2::init().unwrap(); [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:64:17 [INFO] [stdout] | [INFO] [stdout] 64 | let mut screen = Screen::new(canvas, &texture_creator); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `gadget_nes` (bin "gadget_nes") due to 2 previous errors; 45 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `gadget_nes` (bin "gadget_nes" test) due to 2 previous errors; 45 warnings emitted [INFO] running `Command { std: "docker" "inspect" "8bb75e0fa833f5257a30774b72938a56555c7fe73eb4e54935afc24b1118d1d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8bb75e0fa833f5257a30774b72938a56555c7fe73eb4e54935afc24b1118d1d6", kill_on_drop: false }` [INFO] [stdout] 8bb75e0fa833f5257a30774b72938a56555c7fe73eb4e54935afc24b1118d1d6