[INFO] cloning repository https://github.com/bokuweb/rustynes [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bokuweb/rustynes" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbokuweb%2Frustynes", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbokuweb%2Frustynes'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f213881554e20054c7ea7adafe511195c25f8cb7 [INFO] testing bokuweb/rustynes against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbokuweb%2Frustynes" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-3-tc1/source/.cargo/config [INFO] started tweaking git repo https://github.com/bokuweb/rustynes [INFO] finished tweaking git repo https://github.com/bokuweb/rustynes [INFO] tweaked toml for git repo https://github.com/bokuweb/rustynes written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/bokuweb/rustynes on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/bokuweb/rustynes 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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: /workspace/builds/worker-3-tc1/source/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] warning: /workspace/builds/worker-3-tc1/source/standalone/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rand_core v0.4.0 [INFO] [stderr] Downloaded autocfg v0.1.4 [INFO] [stderr] Downloaded cfg-if v0.1.9 [INFO] [stderr] Downloaded lazy_static v1.3.0 [INFO] [stderr] Downloaded bitflags v1.1.0 [INFO] [stderr] Downloaded lazy_static v0.2.8 [INFO] [stderr] Downloaded libc v0.2.30 [INFO] [stderr] Downloaded sdl2-sys v0.32.6 [INFO] [stderr] Downloaded winapi v0.3.7 [INFO] [stderr] Downloaded sdl2 v0.32.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 135c4c776b29ca67026ea2c6d67209659935d003f7b4ddb9a931d51abefc72be [INFO] running `Command { std: "docker" "start" "-a" "135c4c776b29ca67026ea2c6d67209659935d003f7b4ddb9a931d51abefc72be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "135c4c776b29ca67026ea2c6d67209659935d003f7b4ddb9a931d51abefc72be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "135c4c776b29ca67026ea2c6d67209659935d003f7b4ddb9a931d51abefc72be", kill_on_drop: false }` [INFO] [stdout] 135c4c776b29ca67026ea2c6d67209659935d003f7b4ddb9a931d51abefc72be [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] df822e8410cfd3fa920696b635f45116e5caa98a9908191853344cd2657cf8fa [INFO] running `Command { std: "docker" "start" "-a" "df822e8410cfd3fa920696b635f45116e5caa98a9908191853344cd2657cf8fa", kill_on_drop: false }` [INFO] [stderr] warning: /opt/rustwide/workdir/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] warning: /opt/rustwide/workdir/standalone/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling lazy_static v0.2.8 [INFO] [stderr] Compiling libc v0.2.30 [INFO] [stderr] Compiling rustynes v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/nes/apu/mod.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | 0x00...0x03 => { [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/nes/apu/mod.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | 0x04...0x07 => { [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/nes/apu/mod.rs:87:17 [INFO] [stdout] | [INFO] [stdout] 87 | 0x08...0x0b => { [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/nes/apu/mod.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | 0x0c...0x0f => { [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/nes/bus/cpu_bus.rs:58:19 [INFO] [stdout] | [INFO] [stdout] 58 | 0x0000...0x1FFF => self.work_ram.read(addr & 0x07FF), [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/nes/bus/cpu_bus.rs:59:19 [INFO] [stdout] | [INFO] [stdout] 59 | 0x2000...0x3FFF => self.ppu.read(addr - 0x2000), [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/nes/bus/cpu_bus.rs:62:19 [INFO] [stdout] | [INFO] [stdout] 62 | 0x4000...0x401F => self.apu.read(addr - 0x4000), [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/nes/bus/cpu_bus.rs:63:19 [INFO] [stdout] | [INFO] [stdout] 63 | 0x6000...0x7FFF => { [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/nes/bus/cpu_bus.rs:70:19 [INFO] [stdout] | [INFO] [stdout] 70 | 0x8000...0xBFFF => self.program_rom.read(addr - 0x8000), [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/nes/bus/cpu_bus.rs:71:19 [INFO] [stdout] | [INFO] [stdout] 71 | 0xC000...0xFFFF if self.program_rom.size() <= 0x4000 => { [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/nes/bus/cpu_bus.rs:74:19 [INFO] [stdout] | [INFO] [stdout] 74 | 0xC000...0xFFFF => self.program_rom.read(addr - 0x8000), [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/nes/bus/cpu_bus.rs:81:19 [INFO] [stdout] | [INFO] [stdout] 81 | 0x0000...0x1FFF => self.work_ram.write(addr & 0x07FF, data), [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/nes/bus/cpu_bus.rs:82:19 [INFO] [stdout] | [INFO] [stdout] 82 | 0x2000...0x3FFF => self.ppu.write(addr - 0x2000, data), [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/nes/bus/cpu_bus.rs:85:19 [INFO] [stdout] | [INFO] [stdout] 85 | 0x4000...0x401F => self.apu.write(addr - 0x4000, data), [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/nes/bus/cpu_bus.rs:86:19 [INFO] [stdout] | [INFO] [stdout] 86 | 0x6000...0x7FFF => { [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/nes/bus/cpu_bus.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | 0x8000...0xFFFF => { [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: unnecessary parentheses around method argument [INFO] [stdout] --> src/nes/cpu/instructions.rs:556:15 [INFO] [stdout] | [INFO] [stdout] 556 | bus.write((addr | 0x0100), data); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 556 - bus.write((addr | 0x0100), data); [INFO] [stdout] 556 + bus.write(addr | 0x0100, data); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/nes/cpu/opecode.rs:98:1 [INFO] [stdout] | [INFO] [stdout] 98 | / lazy_static! { [INFO] [stdout] 99 | | [INFO] [stdout] 100 | | pub static ref MAP: HashMap = { [INFO] [stdout] ... | [INFO] [stdout] 359 | | }; [INFO] [stdout] 360 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/nes/cpu/opecode.rs:98:1 [INFO] [stdout] | [INFO] [stdout] 98 | / lazy_static! { [INFO] [stdout] 99 | | [INFO] [stdout] 100 | | pub static ref MAP: HashMap = { [INFO] [stdout] ... | [INFO] [stdout] 359 | | }; [INFO] [stdout] 360 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/nes/cpu/mod.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | _ => panic!("{}", "Undefined opecode detected."), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/nes/cpu/mod.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 35 | Instruction::LDA => lda(operand, registers, bus), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 36 | Instruction::LDX if code.mode == Addressing::Immediate => ldx_imm(operand, registers), [INFO] [stdout] 37 | Instruction::LDX => ldx(operand, registers, bus), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 38 | Instruction::LDY if code.mode == Addressing::Immediate => ldy_imm(operand, registers), [INFO] [stdout] 39 | Instruction::LDY => ldy(operand, registers, bus), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 40 | Instruction::STA => sta(operand, registers, bus), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 113 | _ => panic!("{}", "Undefined opecode detected."), [INFO] [stdout] | ^ ...and 60 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `divider_for_frequency` and `frequency` are never read [INFO] [stdout] --> src/nes/apu/noise.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Noise { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | divider_for_frequency: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | frequency: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Noise` has a derived impl for the trait `Debug`, 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: methods `enable` and `disable` are never used [INFO] [stdout] --> src/nes/apu/noise.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl Noise { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn enable(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn disable(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `close_oscillator` is never used [INFO] [stdout] --> src/nes/apu/triangle.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn close_oscillator(index: usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_oscillator_pulse_width` is never used [INFO] [stdout] --> src/nes/apu/triangle.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | fn set_oscillator_pulse_width(index: usize, width: f32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_negative`, `set_zero`, `get_reserved`, `get_break`, and `get_decimal` are never used [INFO] [stdout] --> src/nes/cpu_registers/mod.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub trait CpuRegisters { [INFO] [stdout] | ------------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 52 | fn set_negative(&mut self, v: bool) -> &mut Self; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | fn set_zero(&mut self, v: bool) -> &mut Self; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | fn get_reserved(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 73 | [INFO] [stdout] 74 | fn get_break(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | fn get_decimal(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_background_masked` and `is_sprite_masked` are never used [INFO] [stdout] --> src/nes/ppu/registers/mod.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub trait PpuRegisters { [INFO] [stdout] | ------------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 83 | fn is_background_masked(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 84 | [INFO] [stdout] 85 | fn is_sprite_masked(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reset_addr` is never used [INFO] [stdout] --> src/nes/ppu/registers/oam.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Oam { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn reset_addr(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/nes/apu/mod.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | 0x00...0x03 => { [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/nes/apu/mod.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | 0x04...0x07 => { [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/nes/apu/mod.rs:87:17 [INFO] [stdout] | [INFO] [stdout] 87 | 0x08...0x0b => { [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/nes/apu/mod.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | 0x0c...0x0f => { [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/nes/bus/cpu_bus.rs:58:19 [INFO] [stdout] | [INFO] [stdout] 58 | 0x0000...0x1FFF => self.work_ram.read(addr & 0x07FF), [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/nes/bus/cpu_bus.rs:59:19 [INFO] [stdout] | [INFO] [stdout] 59 | 0x2000...0x3FFF => self.ppu.read(addr - 0x2000), [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/nes/bus/cpu_bus.rs:62:19 [INFO] [stdout] | [INFO] [stdout] 62 | 0x4000...0x401F => self.apu.read(addr - 0x4000), [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/nes/bus/cpu_bus.rs:63:19 [INFO] [stdout] | [INFO] [stdout] 63 | 0x6000...0x7FFF => { [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/nes/bus/cpu_bus.rs:70:19 [INFO] [stdout] | [INFO] [stdout] 70 | 0x8000...0xBFFF => self.program_rom.read(addr - 0x8000), [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/nes/bus/cpu_bus.rs:71:19 [INFO] [stdout] | [INFO] [stdout] 71 | 0xC000...0xFFFF if self.program_rom.size() <= 0x4000 => { [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/nes/bus/cpu_bus.rs:74:19 [INFO] [stdout] | [INFO] [stdout] 74 | 0xC000...0xFFFF => self.program_rom.read(addr - 0x8000), [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/nes/bus/cpu_bus.rs:81:19 [INFO] [stdout] | [INFO] [stdout] 81 | 0x0000...0x1FFF => self.work_ram.write(addr & 0x07FF, data), [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/nes/bus/cpu_bus.rs:82:19 [INFO] [stdout] | [INFO] [stdout] 82 | 0x2000...0x3FFF => self.ppu.write(addr - 0x2000, data), [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/nes/bus/cpu_bus.rs:85:19 [INFO] [stdout] | [INFO] [stdout] 85 | 0x4000...0x401F => self.apu.write(addr - 0x4000, data), [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/nes/bus/cpu_bus.rs:86:19 [INFO] [stdout] | [INFO] [stdout] 86 | 0x6000...0x7FFF => { [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/nes/bus/cpu_bus.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | 0x8000...0xFFFF => { [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: unnecessary parentheses around method argument [INFO] [stdout] --> src/nes/cpu/instructions.rs:556:15 [INFO] [stdout] | [INFO] [stdout] 556 | bus.write((addr | 0x0100), data); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 556 - bus.write((addr | 0x0100), data); [INFO] [stdout] 556 + bus.write(addr | 0x0100, data); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::ppu::background` [INFO] [stdout] --> src/nes/mod.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub use self::ppu::background; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::ppu::Tile` [INFO] [stdout] --> src/nes/mod.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub use self::ppu::Tile; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SpriteWithCtx` [INFO] [stdout] --> src/nes/mod.rs:19:45 [INFO] [stdout] | [INFO] [stdout] 19 | pub use self::ppu::{Sprite, SpritePosition, SpriteWithCtx}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/nes/cpu/opecode.rs:98:1 [INFO] [stdout] | [INFO] [stdout] 98 | / lazy_static! { [INFO] [stdout] 99 | | [INFO] [stdout] 100 | | pub static ref MAP: HashMap = { [INFO] [stdout] ... | [INFO] [stdout] 359 | | }; [INFO] [stdout] 360 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/nes/cpu/opecode.rs:98:1 [INFO] [stdout] | [INFO] [stdout] 98 | / lazy_static! { [INFO] [stdout] 99 | | [INFO] [stdout] 100 | | pub static ref MAP: HashMap = { [INFO] [stdout] ... | [INFO] [stdout] 359 | | }; [INFO] [stdout] 360 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/nes/cpu/mod.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | _ => panic!("{}", "Undefined opecode detected."), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/nes/cpu/mod.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 35 | Instruction::LDA => lda(operand, registers, bus), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 36 | Instruction::LDX if code.mode == Addressing::Immediate => ldx_imm(operand, registers), [INFO] [stdout] 37 | Instruction::LDX => ldx(operand, registers, bus), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 38 | Instruction::LDY if code.mode == Addressing::Immediate => ldy_imm(operand, registers), [INFO] [stdout] 39 | Instruction::LDY => ldy(operand, registers, bus), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 40 | Instruction::STA => sta(operand, registers, bus), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 113 | _ => panic!("{}", "Undefined opecode detected."), [INFO] [stdout] | ^ ...and 60 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_render_buf` is never used [INFO] [stdout] --> src/nes/mod.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn get_render_buf(ctx: &mut Context) -> &Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `divider_for_frequency` and `frequency` are never read [INFO] [stdout] --> src/nes/apu/noise.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Noise { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | divider_for_frequency: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | frequency: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Noise` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `enable` and `disable` are never used [INFO] [stdout] --> src/nes/apu/noise.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl Noise { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn enable(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn disable(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `close_oscillator` is never used [INFO] [stdout] --> src/nes/apu/triangle.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn close_oscillator(index: usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_oscillator_pulse_width` is never used [INFO] [stdout] --> src/nes/apu/triangle.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | fn set_oscillator_pulse_width(index: usize, width: f32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_negative`, `set_zero`, `get_reserved`, `get_break`, and `get_decimal` are never used [INFO] [stdout] --> src/nes/cpu_registers/mod.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub trait CpuRegisters { [INFO] [stdout] | ------------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 52 | fn set_negative(&mut self, v: bool) -> &mut Self; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | fn set_zero(&mut self, v: bool) -> &mut Self; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | fn get_reserved(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 73 | [INFO] [stdout] 74 | fn get_break(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | fn get_decimal(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mapper` is never read [INFO] [stdout] --> src/nes/mmc/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Mmc { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 3 | mapper: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Mmc` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_bank` and `get_mapper` are never used [INFO] [stdout] --> src/nes/mmc/mod.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Mmc { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn get_bank(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn get_mapper(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_background_masked` and `is_sprite_masked` are never used [INFO] [stdout] --> src/nes/ppu/registers/mod.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub trait PpuRegisters { [INFO] [stdout] | ------------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 83 | fn is_background_masked(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 84 | [INFO] [stdout] 85 | fn is_sprite_masked(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reset_addr` is never used [INFO] [stdout] --> src/nes/ppu/registers/oam.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Oam { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn reset_addr(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `offset_addr_by_sprite_table` is never read [INFO] [stdout] --> src/nes/ppu/sprite_utils.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct SpriteConfig { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub offset_addr_by_sprite_table: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SpriteConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_buf` is never used [INFO] [stdout] --> src/nes/renderer/mod.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Renderer { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn get_buf(&self) -> &Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eval` is never used [INFO] [stdout] --> src/externs/mod.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn eval(x: &str) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `emscripten_run_script_int` is never used [INFO] [stdout] --> src/externs/mod.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn emscripten_run_script_int(x: *const c_uchar) -> c_int; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.33s [INFO] running `Command { std: "docker" "inspect" "df822e8410cfd3fa920696b635f45116e5caa98a9908191853344cd2657cf8fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "df822e8410cfd3fa920696b635f45116e5caa98a9908191853344cd2657cf8fa", kill_on_drop: false }` [INFO] [stdout] df822e8410cfd3fa920696b635f45116e5caa98a9908191853344cd2657cf8fa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 8fec44b84e7ca50f092744efa4ee75229873cad06428b080a972c849ccb786b1 [INFO] running `Command { std: "docker" "start" "-a" "8fec44b84e7ca50f092744efa4ee75229873cad06428b080a972c849ccb786b1", kill_on_drop: false }` [INFO] [stderr] warning: /opt/rustwide/workdir/standalone/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] warning: /opt/rustwide/workdir/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/nes/apu/mod.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | 0x00...0x03 => { [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/nes/apu/mod.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | 0x04...0x07 => { [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/nes/apu/mod.rs:87:17 [INFO] [stdout] | [INFO] [stdout] 87 | 0x08...0x0b => { [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/nes/apu/mod.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | 0x0c...0x0f => { [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/nes/bus/cpu_bus.rs:58:19 [INFO] [stdout] | [INFO] [stdout] 58 | 0x0000...0x1FFF => self.work_ram.read(addr & 0x07FF), [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/nes/bus/cpu_bus.rs:59:19 [INFO] [stdout] | [INFO] [stdout] 59 | 0x2000...0x3FFF => self.ppu.read(addr - 0x2000), [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/nes/bus/cpu_bus.rs:62:19 [INFO] [stdout] | [INFO] [stdout] 62 | 0x4000...0x401F => self.apu.read(addr - 0x4000), [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/nes/bus/cpu_bus.rs:63:19 [INFO] [stdout] | [INFO] [stdout] 63 | 0x6000...0x7FFF => { [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/nes/bus/cpu_bus.rs:70:19 [INFO] [stdout] | [INFO] [stdout] 70 | 0x8000...0xBFFF => self.program_rom.read(addr - 0x8000), [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/nes/bus/cpu_bus.rs:71:19 [INFO] [stdout] | [INFO] [stdout] 71 | 0xC000...0xFFFF if self.program_rom.size() <= 0x4000 => { [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/nes/bus/cpu_bus.rs:74:19 [INFO] [stdout] | [INFO] [stdout] 74 | 0xC000...0xFFFF => self.program_rom.read(addr - 0x8000), [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/nes/bus/cpu_bus.rs:81:19 [INFO] [stdout] | [INFO] [stdout] 81 | 0x0000...0x1FFF => self.work_ram.write(addr & 0x07FF, data), [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/nes/bus/cpu_bus.rs:82:19 [INFO] [stdout] | [INFO] [stdout] 82 | 0x2000...0x3FFF => self.ppu.write(addr - 0x2000, data), [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/nes/bus/cpu_bus.rs:85:19 [INFO] [stdout] | [INFO] [stdout] 85 | 0x4000...0x401F => self.apu.write(addr - 0x4000, data), [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/nes/bus/cpu_bus.rs:86:19 [INFO] [stdout] | [INFO] [stdout] 86 | 0x6000...0x7FFF => { [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/nes/bus/cpu_bus.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | 0x8000...0xFFFF => { [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: unnecessary parentheses around method argument [INFO] [stdout] --> src/nes/cpu/instructions.rs:556:15 [INFO] [stdout] | [INFO] [stdout] 556 | bus.write((addr | 0x0100), data); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 556 - bus.write((addr | 0x0100), data); [INFO] [stdout] 556 + bus.write(addr | 0x0100, data); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/nes/cpu/opecode.rs:98:1 [INFO] [stdout] | [INFO] [stdout] 98 | / lazy_static! { [INFO] [stdout] 99 | | [INFO] [stdout] 100 | | pub static ref MAP: HashMap = { [INFO] [stdout] ... | [INFO] [stdout] 359 | | }; [INFO] [stdout] 360 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/nes/cpu/opecode.rs:98:1 [INFO] [stdout] | [INFO] [stdout] 98 | / lazy_static! { [INFO] [stdout] 99 | | [INFO] [stdout] 100 | | pub static ref MAP: HashMap = { [INFO] [stdout] ... | [INFO] [stdout] 359 | | }; [INFO] [stdout] 360 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rustynes v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/nes/cpu/mod.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | _ => panic!("{}", "Undefined opecode detected."), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/nes/cpu/mod.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 35 | Instruction::LDA => lda(operand, registers, bus), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 36 | Instruction::LDX if code.mode == Addressing::Immediate => ldx_imm(operand, registers), [INFO] [stdout] 37 | Instruction::LDX => ldx(operand, registers, bus), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 38 | Instruction::LDY if code.mode == Addressing::Immediate => ldy_imm(operand, registers), [INFO] [stdout] 39 | Instruction::LDY => ldy(operand, registers, bus), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 40 | Instruction::STA => sta(operand, registers, bus), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 113 | _ => panic!("{}", "Undefined opecode detected."), [INFO] [stdout] | ^ ...and 60 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `divider_for_frequency` and `frequency` are never read [INFO] [stdout] --> src/nes/apu/noise.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Noise { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | divider_for_frequency: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | frequency: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Noise` has a derived impl for the trait `Debug`, 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: methods `enable` and `disable` are never used [INFO] [stdout] --> src/nes/apu/noise.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl Noise { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn enable(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn disable(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `close_oscillator` is never used [INFO] [stdout] --> src/nes/apu/triangle.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn close_oscillator(index: usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_oscillator_pulse_width` is never used [INFO] [stdout] --> src/nes/apu/triangle.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | fn set_oscillator_pulse_width(index: usize, width: f32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_negative`, `set_zero`, `get_reserved`, `get_break`, and `get_decimal` are never used [INFO] [stdout] --> src/nes/cpu_registers/mod.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub trait CpuRegisters { [INFO] [stdout] | ------------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 52 | fn set_negative(&mut self, v: bool) -> &mut Self; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | fn set_zero(&mut self, v: bool) -> &mut Self; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | fn get_reserved(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 73 | [INFO] [stdout] 74 | fn get_break(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | fn get_decimal(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_background_masked` and `is_sprite_masked` are never used [INFO] [stdout] --> src/nes/ppu/registers/mod.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub trait PpuRegisters { [INFO] [stdout] | ------------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 83 | fn is_background_masked(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 84 | [INFO] [stdout] 85 | fn is_sprite_masked(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reset_addr` is never used [INFO] [stdout] --> src/nes/ppu/registers/oam.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Oam { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn reset_addr(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/nes/apu/mod.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | 0x00...0x03 => { [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/nes/apu/mod.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | 0x04...0x07 => { [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/nes/apu/mod.rs:87:17 [INFO] [stdout] | [INFO] [stdout] 87 | 0x08...0x0b => { [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/nes/apu/mod.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | 0x0c...0x0f => { [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/nes/bus/cpu_bus.rs:58:19 [INFO] [stdout] | [INFO] [stdout] 58 | 0x0000...0x1FFF => self.work_ram.read(addr & 0x07FF), [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/nes/bus/cpu_bus.rs:59:19 [INFO] [stdout] | [INFO] [stdout] 59 | 0x2000...0x3FFF => self.ppu.read(addr - 0x2000), [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/nes/bus/cpu_bus.rs:62:19 [INFO] [stdout] | [INFO] [stdout] 62 | 0x4000...0x401F => self.apu.read(addr - 0x4000), [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/nes/bus/cpu_bus.rs:63:19 [INFO] [stdout] | [INFO] [stdout] 63 | 0x6000...0x7FFF => { [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/nes/bus/cpu_bus.rs:70:19 [INFO] [stdout] | [INFO] [stdout] 70 | 0x8000...0xBFFF => self.program_rom.read(addr - 0x8000), [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/nes/bus/cpu_bus.rs:71:19 [INFO] [stdout] | [INFO] [stdout] 71 | 0xC000...0xFFFF if self.program_rom.size() <= 0x4000 => { [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/nes/bus/cpu_bus.rs:74:19 [INFO] [stdout] | [INFO] [stdout] 74 | 0xC000...0xFFFF => self.program_rom.read(addr - 0x8000), [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/nes/bus/cpu_bus.rs:81:19 [INFO] [stdout] | [INFO] [stdout] 81 | 0x0000...0x1FFF => self.work_ram.write(addr & 0x07FF, data), [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/nes/bus/cpu_bus.rs:82:19 [INFO] [stdout] | [INFO] [stdout] 82 | 0x2000...0x3FFF => self.ppu.write(addr - 0x2000, data), [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/nes/bus/cpu_bus.rs:85:19 [INFO] [stdout] | [INFO] [stdout] 85 | 0x4000...0x401F => self.apu.write(addr - 0x4000, data), [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/nes/bus/cpu_bus.rs:86:19 [INFO] [stdout] | [INFO] [stdout] 86 | 0x6000...0x7FFF => { [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/nes/bus/cpu_bus.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | 0x8000...0xFFFF => { [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: unnecessary parentheses around method argument [INFO] [stdout] --> src/nes/cpu/instructions.rs:556:15 [INFO] [stdout] | [INFO] [stdout] 556 | bus.write((addr | 0x0100), data); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 556 - bus.write((addr | 0x0100), data); [INFO] [stdout] 556 + bus.write(addr | 0x0100, data); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::ppu::background` [INFO] [stdout] --> src/nes/mod.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub use self::ppu::background; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::ppu::Tile` [INFO] [stdout] --> src/nes/mod.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub use self::ppu::Tile; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SpriteWithCtx` [INFO] [stdout] --> src/nes/mod.rs:19:45 [INFO] [stdout] | [INFO] [stdout] 19 | pub use self::ppu::{Sprite, SpritePosition, SpriteWithCtx}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/nes/apu/mod.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | 0x00...0x03 => { [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/nes/apu/mod.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | 0x04...0x07 => { [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/nes/apu/mod.rs:87:17 [INFO] [stdout] | [INFO] [stdout] 87 | 0x08...0x0b => { [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/nes/apu/mod.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | 0x0c...0x0f => { [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/nes/bus/cpu_bus.rs:58:19 [INFO] [stdout] | [INFO] [stdout] 58 | 0x0000...0x1FFF => self.work_ram.read(addr & 0x07FF), [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/nes/bus/cpu_bus.rs:59:19 [INFO] [stdout] | [INFO] [stdout] 59 | 0x2000...0x3FFF => self.ppu.read(addr - 0x2000), [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/nes/bus/cpu_bus.rs:62:19 [INFO] [stdout] | [INFO] [stdout] 62 | 0x4000...0x401F => self.apu.read(addr - 0x4000), [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/nes/bus/cpu_bus.rs:63:19 [INFO] [stdout] | [INFO] [stdout] 63 | 0x6000...0x7FFF => { [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/nes/bus/cpu_bus.rs:70:19 [INFO] [stdout] | [INFO] [stdout] 70 | 0x8000...0xBFFF => self.program_rom.read(addr - 0x8000), [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/nes/bus/cpu_bus.rs:71:19 [INFO] [stdout] | [INFO] [stdout] 71 | 0xC000...0xFFFF if self.program_rom.size() <= 0x4000 => { [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/nes/bus/cpu_bus.rs:74:19 [INFO] [stdout] | [INFO] [stdout] 74 | 0xC000...0xFFFF => self.program_rom.read(addr - 0x8000), [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/nes/bus/cpu_bus.rs:81:19 [INFO] [stdout] | [INFO] [stdout] 81 | 0x0000...0x1FFF => self.work_ram.write(addr & 0x07FF, data), [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/nes/bus/cpu_bus.rs:82:19 [INFO] [stdout] | [INFO] [stdout] 82 | 0x2000...0x3FFF => self.ppu.write(addr - 0x2000, data), [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/nes/bus/cpu_bus.rs:85:19 [INFO] [stdout] | [INFO] [stdout] 85 | 0x4000...0x401F => self.apu.write(addr - 0x4000, data), [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/nes/bus/cpu_bus.rs:86:19 [INFO] [stdout] | [INFO] [stdout] 86 | 0x6000...0x7FFF => { [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/nes/bus/cpu_bus.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | 0x8000...0xFFFF => { [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: unnecessary parentheses around method argument [INFO] [stdout] --> src/nes/cpu/instructions.rs:556:15 [INFO] [stdout] | [INFO] [stdout] 556 | bus.write((addr | 0x0100), data); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 556 - bus.write((addr | 0x0100), data); [INFO] [stdout] 556 + bus.write(addr | 0x0100, data); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/nes/cpu/opecode.rs:98:1 [INFO] [stdout] | [INFO] [stdout] 98 | / lazy_static! { [INFO] [stdout] 99 | | [INFO] [stdout] 100 | | pub static ref MAP: HashMap = { [INFO] [stdout] ... | [INFO] [stdout] 359 | | }; [INFO] [stdout] 360 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/nes/cpu/opecode.rs:98:1 [INFO] [stdout] | [INFO] [stdout] 98 | / lazy_static! { [INFO] [stdout] 99 | | [INFO] [stdout] 100 | | pub static ref MAP: HashMap = { [INFO] [stdout] ... | [INFO] [stdout] 359 | | }; [INFO] [stdout] 360 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/nes/cpu/opecode.rs:98:1 [INFO] [stdout] | [INFO] [stdout] 98 | / lazy_static! { [INFO] [stdout] 99 | | [INFO] [stdout] 100 | | pub static ref MAP: HashMap = { [INFO] [stdout] ... | [INFO] [stdout] 359 | | }; [INFO] [stdout] 360 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/nes/cpu/opecode.rs:98:1 [INFO] [stdout] | [INFO] [stdout] 98 | / lazy_static! { [INFO] [stdout] 99 | | [INFO] [stdout] 100 | | pub static ref MAP: HashMap = { [INFO] [stdout] ... | [INFO] [stdout] 359 | | }; [INFO] [stdout] 360 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/nes/cpu/mod.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | _ => panic!("{}", "Undefined opecode detected."), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/nes/cpu/mod.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 35 | Instruction::LDA => lda(operand, registers, bus), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 36 | Instruction::LDX if code.mode == Addressing::Immediate => ldx_imm(operand, registers), [INFO] [stdout] 37 | Instruction::LDX => ldx(operand, registers, bus), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 38 | Instruction::LDY if code.mode == Addressing::Immediate => ldy_imm(operand, registers), [INFO] [stdout] 39 | Instruction::LDY => ldy(operand, registers, bus), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 40 | Instruction::STA => sta(operand, registers, bus), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 113 | _ => panic!("{}", "Undefined opecode detected."), [INFO] [stdout] | ^ ...and 60 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/nes/cpu/mod.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | _ => panic!("{}", "Undefined opecode detected."), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/nes/cpu/mod.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 35 | Instruction::LDA => lda(operand, registers, bus), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 36 | Instruction::LDX if code.mode == Addressing::Immediate => ldx_imm(operand, registers), [INFO] [stdout] 37 | Instruction::LDX => ldx(operand, registers, bus), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 38 | Instruction::LDY if code.mode == Addressing::Immediate => ldy_imm(operand, registers), [INFO] [stdout] 39 | Instruction::LDY => ldy(operand, registers, bus), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 40 | Instruction::STA => sta(operand, registers, bus), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 113 | _ => panic!("{}", "Undefined opecode detected."), [INFO] [stdout] | ^ ...and 60 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `divider_for_frequency` and `frequency` are never read [INFO] [stdout] --> src/nes/apu/noise.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Noise { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | divider_for_frequency: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | frequency: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Noise` has a derived impl for the trait `Debug`, 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: methods `enable` and `disable` are never used [INFO] [stdout] --> src/nes/apu/noise.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl Noise { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn enable(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn disable(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `close_oscillator` is never used [INFO] [stdout] --> src/nes/apu/triangle.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn close_oscillator(index: usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_oscillator_pulse_width` is never used [INFO] [stdout] --> src/nes/apu/triangle.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | fn set_oscillator_pulse_width(index: usize, width: f32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_negative`, `set_zero`, `get_reserved`, `get_break`, and `get_decimal` are never used [INFO] [stdout] --> src/nes/cpu_registers/mod.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub trait CpuRegisters { [INFO] [stdout] | ------------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 52 | fn set_negative(&mut self, v: bool) -> &mut Self; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | fn set_zero(&mut self, v: bool) -> &mut Self; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | fn get_reserved(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 73 | [INFO] [stdout] 74 | fn get_break(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | fn get_decimal(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_background_masked` and `is_sprite_masked` are never used [INFO] [stdout] --> src/nes/ppu/registers/mod.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub trait PpuRegisters { [INFO] [stdout] | ------------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 83 | fn is_background_masked(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 84 | [INFO] [stdout] 85 | fn is_sprite_masked(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reset_addr` is never used [INFO] [stdout] --> src/nes/ppu/registers/oam.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Oam { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn reset_addr(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_render_buf` is never used [INFO] [stdout] --> src/nes/mod.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn get_render_buf(ctx: &mut Context) -> &Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `divider_for_frequency` and `frequency` are never read [INFO] [stdout] --> src/nes/apu/noise.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Noise { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | divider_for_frequency: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | frequency: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Noise` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `enable` and `disable` are never used [INFO] [stdout] --> src/nes/apu/noise.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl Noise { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn enable(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn disable(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `close_oscillator` is never used [INFO] [stdout] --> src/nes/apu/triangle.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn close_oscillator(index: usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_oscillator_pulse_width` is never used [INFO] [stdout] --> src/nes/apu/triangle.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | fn set_oscillator_pulse_width(index: usize, width: f32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_negative`, `set_zero`, `get_reserved`, `get_break`, and `get_decimal` are never used [INFO] [stdout] --> src/nes/cpu_registers/mod.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub trait CpuRegisters { [INFO] [stdout] | ------------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 52 | fn set_negative(&mut self, v: bool) -> &mut Self; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | fn set_zero(&mut self, v: bool) -> &mut Self; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | fn get_reserved(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 73 | [INFO] [stdout] 74 | fn get_break(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | fn get_decimal(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mapper` is never read [INFO] [stdout] --> src/nes/mmc/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Mmc { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 3 | mapper: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Mmc` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_bank` and `get_mapper` are never used [INFO] [stdout] --> src/nes/mmc/mod.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Mmc { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn get_bank(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn get_mapper(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_background_masked` and `is_sprite_masked` are never used [INFO] [stdout] --> src/nes/ppu/registers/mod.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub trait PpuRegisters { [INFO] [stdout] | ------------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 83 | fn is_background_masked(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 84 | [INFO] [stdout] 85 | fn is_sprite_masked(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reset_addr` is never used [INFO] [stdout] --> src/nes/ppu/registers/oam.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Oam { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn reset_addr(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `offset_addr_by_sprite_table` is never read [INFO] [stdout] --> src/nes/ppu/sprite_utils.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct SpriteConfig { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub offset_addr_by_sprite_table: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SpriteConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_buf` is never used [INFO] [stdout] --> src/nes/renderer/mod.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Renderer { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn get_buf(&self) -> &Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eval` is never used [INFO] [stdout] --> src/externs/mod.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn eval(x: &str) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `emscripten_run_script_int` is never used [INFO] [stdout] --> src/externs/mod.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn emscripten_run_script_int(x: *const c_uchar) -> c_int; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.32s [INFO] running `Command { std: "docker" "inspect" "8fec44b84e7ca50f092744efa4ee75229873cad06428b080a972c849ccb786b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8fec44b84e7ca50f092744efa4ee75229873cad06428b080a972c849ccb786b1", kill_on_drop: false }` [INFO] [stdout] 8fec44b84e7ca50f092744efa4ee75229873cad06428b080a972c849ccb786b1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] a143238fb3e7851b58b4279e592de0474cab6689b9cfcb233121b073078c4574 [INFO] running `Command { std: "docker" "start" "-a" "a143238fb3e7851b58b4279e592de0474cab6689b9cfcb233121b073078c4574", kill_on_drop: false }` [INFO] [stderr] warning: /opt/rustwide/workdir/standalone/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] warning: /opt/rustwide/workdir/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/nes/apu/mod.rs:81:17 [INFO] [stderr] | [INFO] [stderr] 81 | 0x00...0x03 => { [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/nes/apu/mod.rs:84:17 [INFO] [stderr] | [INFO] [stderr] 84 | 0x04...0x07 => { [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/nes/apu/mod.rs:87:17 [INFO] [stderr] | [INFO] [stderr] 87 | 0x08...0x0b => { [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/nes/apu/mod.rs:90:17 [INFO] [stderr] | [INFO] [stderr] 90 | 0x0c...0x0f => { [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/nes/bus/cpu_bus.rs:58:19 [INFO] [stderr] | [INFO] [stderr] 58 | 0x0000...0x1FFF => self.work_ram.read(addr & 0x07FF), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/nes/bus/cpu_bus.rs:59:19 [INFO] [stderr] | [INFO] [stderr] 59 | 0x2000...0x3FFF => self.ppu.read(addr - 0x2000), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/nes/bus/cpu_bus.rs:62:19 [INFO] [stderr] | [INFO] [stderr] 62 | 0x4000...0x401F => self.apu.read(addr - 0x4000), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/nes/bus/cpu_bus.rs:63:19 [INFO] [stderr] | [INFO] [stderr] 63 | 0x6000...0x7FFF => { [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/nes/bus/cpu_bus.rs:70:19 [INFO] [stderr] | [INFO] [stderr] 70 | 0x8000...0xBFFF => self.program_rom.read(addr - 0x8000), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/nes/bus/cpu_bus.rs:71:19 [INFO] [stderr] | [INFO] [stderr] 71 | 0xC000...0xFFFF if self.program_rom.size() <= 0x4000 => { [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/nes/bus/cpu_bus.rs:74:19 [INFO] [stderr] | [INFO] [stderr] 74 | 0xC000...0xFFFF => self.program_rom.read(addr - 0x8000), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/nes/bus/cpu_bus.rs:81:19 [INFO] [stderr] | [INFO] [stderr] 81 | 0x0000...0x1FFF => self.work_ram.write(addr & 0x07FF, data), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/nes/bus/cpu_bus.rs:82:19 [INFO] [stderr] | [INFO] [stderr] 82 | 0x2000...0x3FFF => self.ppu.write(addr - 0x2000, data), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/nes/bus/cpu_bus.rs:85:19 [INFO] [stderr] | [INFO] [stderr] 85 | 0x4000...0x401F => self.apu.write(addr - 0x4000, data), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/nes/bus/cpu_bus.rs:86:19 [INFO] [stderr] | [INFO] [stderr] 86 | 0x6000...0x7FFF => { [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/nes/bus/cpu_bus.rs:92:19 [INFO] [stderr] | [INFO] [stderr] 92 | 0x8000...0xFFFF => { [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around method argument [INFO] [stderr] --> src/nes/cpu/instructions.rs:556:15 [INFO] [stderr] | [INFO] [stderr] 556 | bus.write((addr | 0x0100), data); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 556 - bus.write((addr | 0x0100), data); [INFO] [stderr] 556 + bus.write(addr | 0x0100, data); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stderr] --> src/nes/cpu/opecode.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | [INFO] [stderr] 100 | | pub static ref MAP: HashMap = { [INFO] [stderr] ... | [INFO] [stderr] 359 | | }; [INFO] [stderr] 360 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stderr] --> src/nes/cpu/opecode.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 98 | / lazy_static! { [INFO] [stderr] 99 | | [INFO] [stderr] 100 | | pub static ref MAP: HashMap = { [INFO] [stderr] ... | [INFO] [stderr] 359 | | }; [INFO] [stderr] 360 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/nes/cpu/mod.rs:113:9 [INFO] [stderr] | [INFO] [stderr] 113 | _ => panic!("{}", "Undefined opecode detected."), [INFO] [stderr] | ^ no value can reach this [INFO] [stderr] | [INFO] [stderr] note: multiple earlier patterns match some of the same values [INFO] [stderr] --> src/nes/cpu/mod.rs:113:9 [INFO] [stderr] | [INFO] [stderr] 35 | Instruction::LDA => lda(operand, registers, bus), [INFO] [stderr] | ---------------- matches some of the same values [INFO] [stderr] 36 | Instruction::LDX if code.mode == Addressing::Immediate => ldx_imm(operand, registers), [INFO] [stderr] 37 | Instruction::LDX => ldx(operand, registers, bus), [INFO] [stderr] | ---------------- matches some of the same values [INFO] [stderr] 38 | Instruction::LDY if code.mode == Addressing::Immediate => ldy_imm(operand, registers), [INFO] [stderr] 39 | Instruction::LDY => ldy(operand, registers, bus), [INFO] [stderr] | ---------------- matches some of the same values [INFO] [stderr] 40 | Instruction::STA => sta(operand, registers, bus), [INFO] [stderr] | ---------------- matches some of the same values [INFO] [stderr] ... [INFO] [stderr] 113 | _ => panic!("{}", "Undefined opecode detected."), [INFO] [stderr] | ^ ...and 60 other patterns collectively make this unreachable [INFO] [stderr] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stderr] [INFO] [stderr] warning: fields `divider_for_frequency` and `frequency` are never read [INFO] [stderr] --> src/nes/apu/noise.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 5 | pub struct Noise { [INFO] [stderr] | ----- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 13 | divider_for_frequency: usize, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 14 | frequency: usize, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Noise` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: methods `enable` and `disable` are never used [INFO] [stderr] --> src/nes/apu/noise.rs:42:12 [INFO] [stderr] | [INFO] [stderr] 26 | impl Noise { [INFO] [stderr] | ---------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 42 | pub fn enable(&mut self) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 47 | pub fn disable(&mut self) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `close_oscillator` is never used [INFO] [stderr] --> src/nes/apu/triangle.rs:19:8 [INFO] [stderr] | [INFO] [stderr] 19 | fn close_oscillator(index: usize); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `set_oscillator_pulse_width` is never used [INFO] [stderr] --> src/nes/apu/triangle.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | fn set_oscillator_pulse_width(index: usize, width: f32); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `set_negative`, `set_zero`, `get_reserved`, `get_break`, and `get_decimal` are never used [INFO] [stderr] --> src/nes/cpu_registers/mod.rs:52:8 [INFO] [stderr] | [INFO] [stderr] 27 | pub trait CpuRegisters { [INFO] [stderr] | ------------ methods in this trait [INFO] [stderr] ... [INFO] [stderr] 52 | fn set_negative(&mut self, v: bool) -> &mut Self; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 62 | fn set_zero(&mut self, v: bool) -> &mut Self; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 72 | fn get_reserved(&self) -> bool; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 73 | [INFO] [stderr] 74 | fn get_break(&self) -> bool; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 80 | fn get_decimal(&self) -> bool; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `is_background_masked` and `is_sprite_masked` are never used [INFO] [stderr] --> src/nes/ppu/registers/mod.rs:83:8 [INFO] [stderr] | [INFO] [stderr] 50 | pub trait PpuRegisters { [INFO] [stderr] | ------------ methods in this trait [INFO] [stderr] ... [INFO] [stderr] 83 | fn is_background_masked(&self) -> bool; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 84 | [INFO] [stderr] 85 | fn is_sprite_masked(&self) -> bool; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `reset_addr` is never used [INFO] [stderr] --> src/nes/ppu/registers/oam.rs:22:12 [INFO] [stderr] | [INFO] [stderr] 10 | impl Oam { [INFO] [stderr] | -------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 22 | pub fn reset_addr(&mut self) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `rustynes` (lib) generated 27 warnings (run `cargo fix --lib -p rustynes` to apply 17 suggestions) [INFO] [stderr] warning: unused import: `self::ppu::background` [INFO] [stderr] --> src/nes/mod.rs:17:9 [INFO] [stderr] | [INFO] [stderr] 17 | pub use self::ppu::background; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `self::ppu::Tile` [INFO] [stderr] --> src/nes/mod.rs:18:9 [INFO] [stderr] | [INFO] [stderr] 18 | pub use self::ppu::Tile; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `SpriteWithCtx` [INFO] [stderr] --> src/nes/mod.rs:19:45 [INFO] [stderr] | [INFO] [stderr] 19 | pub use self::ppu::{Sprite, SpritePosition, SpriteWithCtx}; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_render_buf` is never used [INFO] [stderr] --> src/nes/mod.rs:89:8 [INFO] [stderr] | [INFO] [stderr] 89 | pub fn get_render_buf(ctx: &mut Context) -> &Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: fields `divider_for_frequency` and `frequency` are never read [INFO] [stderr] --> src/nes/apu/noise.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 5 | pub struct Noise { [INFO] [stderr] | ----- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 13 | divider_for_frequency: usize, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 14 | frequency: usize, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Noise` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `mapper` is never read [INFO] [stderr] --> src/nes/mmc/mod.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 2 | pub struct Mmc { [INFO] [stderr] | --- field in this struct [INFO] [stderr] 3 | mapper: u8, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Mmc` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: methods `get_bank` and `get_mapper` are never used [INFO] [stderr] --> src/nes/mmc/mod.rs:16:12 [INFO] [stderr] | [INFO] [stderr] 7 | impl Mmc { [INFO] [stderr] | -------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 16 | pub fn get_bank(&self) -> u8 { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 25 | pub fn get_mapper(&self) -> u8 { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `offset_addr_by_sprite_table` is never read [INFO] [stderr] --> src/nes/ppu/sprite_utils.rs:13:9 [INFO] [stderr] | [INFO] [stderr] 10 | pub struct SpriteConfig { [INFO] [stderr] | ------------ field in this struct [INFO] [stderr] ... [INFO] [stderr] 13 | pub offset_addr_by_sprite_table: u16, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `SpriteConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `get_buf` is never used [INFO] [stderr] --> src/nes/renderer/mod.rs:31:12 [INFO] [stderr] | [INFO] [stderr] 18 | impl Renderer { [INFO] [stderr] | ------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 31 | pub fn get_buf(&self) -> &Vec { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `eval` is never used [INFO] [stderr] --> src/externs/mod.rs:12:8 [INFO] [stderr] | [INFO] [stderr] 12 | pub fn eval(x: &str) -> i32 { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `emscripten_run_script_int` is never used [INFO] [stderr] --> src/externs/mod.rs:20:12 [INFO] [stderr] | [INFO] [stderr] 20 | pub fn emscripten_run_script_int(x: *const c_uchar) -> c_int; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `rustynes` (bin "rustynes" test) generated 37 warnings (26 duplicates) (run `cargo fix --bin "rustynes" --tests` to apply 3 suggestions) [INFO] [stderr] warning: `rustynes` (lib test) generated 27 warnings (27 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/rustynes-8f2738c14f17840e) [INFO] [stdout] [INFO] [stdout] running 59 tests [INFO] [stdout] test nes::cpu::instructions::test::test_adc ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_adc_immediate ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_and ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_asl ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_asl_acc ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_cmp ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_cpx_immediate ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_cpy ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_cpy_immediate ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_dec ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_and_immediate ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_dex ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_cpx ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_dey ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_eor_immediate ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_cmp_immediate ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_inx ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_eor ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_inc ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_iny ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_jmp ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_lda_immediate ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_jsr ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_lda ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_ldx_immediate ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_ldy ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_ldx ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_ldy_immediate ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_lsr ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_lsr_acc ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_ora ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_ora_immediate ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_pha ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_php ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_pla ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_rol_accumlator_with_carry ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_ror_accumlator_with_carry ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_ror_accumlator_without_carry ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_sbc ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_tax ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_tay ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_sty ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_plp ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_sta ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_stx ... ok [INFO] [stdout] test nes::cpu_registers::get_p ... ok [INFO] [stdout] test nes::cpu_registers::update_negative ... ok [INFO] [stdout] test nes::cpu_registers::update_zero ... ok [INFO] [stdout] test nes::ppu::palette::test_get_baclground_palette ... ok [INFO] [stdout] test nes::ppu::palette::test_get_sprite_palette ... ok [INFO] [stdout] test nes::ppu::registers::oam::set_addr ... ok [INFO] [stdout] test nes::ppu::registers::ppu_addr::set_addr ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_tya ... ok [INFO] [stdout] test nes::ppu::registers::ppu_addr::update_addr ... ok [INFO] [stdout] test nes::ppu::sprite_utils::test_get_block_id ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_tsx ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_txs ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_sbc_immediate ... ok [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/rustynes-de2fb0dcb2db7cbe) [INFO] [stdout] test nes::cpu::instructions::test::test_txa ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 59 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 59 tests [INFO] [stdout] test nes::cpu::instructions::test::test_and ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_adc_immediate ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_and_immediate ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_asl ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_asl_acc ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_cmp ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_cpx ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_cpx_immediate ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_cpy ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_cmp_immediate ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_cpy_immediate ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_dec ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_dex ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_eor_immediate ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_dey ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_inc ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_eor ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_inx ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_iny ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_jmp ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_jsr ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_lda ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_ldx ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_ldy ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_ldy_immediate ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_lsr ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_lsr_acc ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_ora ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_ora_immediate ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_pha ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_php ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_pla ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_plp ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_rol_accumlator_with_carry ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_ror_accumlator_with_carry ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_ror_accumlator_without_carry ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_sbc ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_sbc_immediate ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_sta ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_stx ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_sty ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_ldx_immediate ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_lda_immediate ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_tax ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_tay ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_tsx ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_txa ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_txs ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_tya ... ok [INFO] [stdout] test nes::cpu_registers::get_p ... ok [INFO] [stdout] test nes::cpu_registers::update_negative ... ok [INFO] [stdout] test nes::cpu_registers::update_zero ... ok [INFO] [stdout] test nes::ppu::palette::test_get_baclground_palette ... ok [INFO] [stdout] test nes::ppu::palette::test_get_sprite_palette ... ok [INFO] [stdout] test nes::ppu::registers::oam::set_addr ... ok [INFO] [stdout] test nes::ppu::registers::ppu_addr::set_addr ... ok [INFO] [stdout] test nes::ppu::registers::ppu_addr::update_addr ... ok [INFO] [stdout] test nes::ppu::sprite_utils::test_get_block_id ... ok [INFO] [stdout] test nes::cpu::instructions::test::test_adc ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 59 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "a143238fb3e7851b58b4279e592de0474cab6689b9cfcb233121b073078c4574", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a143238fb3e7851b58b4279e592de0474cab6689b9cfcb233121b073078c4574", kill_on_drop: false }` [INFO] [stdout] a143238fb3e7851b58b4279e592de0474cab6689b9cfcb233121b073078c4574