[INFO] cloning repository https://github.com/fdb/emunes [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fdb/emunes" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffdb%2Femunes", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffdb%2Femunes'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 103512664ebd291df6830f10cee2681002ae98a0 [INFO] checking fdb/emunes against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffdb%2Femunes" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/fdb/emunes on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/fdb/emunes [INFO] finished tweaking git repo https://github.com/fdb/emunes [INFO] tweaked toml for git repo https://github.com/fdb/emunes written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/fdb/emunes already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 998a8194aa2a8825cc999a8c9232681b8bde3d791931b7f02c47ae004ad971a8 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "998a8194aa2a8825cc999a8c9232681b8bde3d791931b7f02c47ae004ad971a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "998a8194aa2a8825cc999a8c9232681b8bde3d791931b7f02c47ae004ad971a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "998a8194aa2a8825cc999a8c9232681b8bde3d791931b7f02c47ae004ad971a8", kill_on_drop: false }` [INFO] [stdout] 998a8194aa2a8825cc999a8c9232681b8bde3d791931b7f02c47ae004ad971a8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 380dbc22ca84c71c492c68c40a7387eafdc3c0f9d2a8bc1d221e79385a4cd0ec [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "380dbc22ca84c71c492c68c40a7387eafdc3c0f9d2a8bc1d221e79385a4cd0ec", kill_on_drop: false }` [INFO] [stderr] Checking num-traits v0.1.42 [INFO] [stderr] Checking libc v0.2.36 [INFO] [stderr] Checking bitflags v1.0.1 [INFO] [stderr] Compiling sdl2-sys v0.31.0 [INFO] [stderr] Checking rand v0.3.20 [INFO] [stderr] Checking num-integer v0.1.35 [INFO] [stderr] Checking num-iter v0.1.34 [INFO] [stderr] Checking num v0.1.41 [INFO] [stderr] Checking sdl2 v0.31.0 [INFO] [stderr] Checking emunes v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/cpu.rs:89:1 [INFO] [stdout] | [INFO] [stdout] 89 | / bitflags! { [INFO] [stdout] 90 | | #[derive(Default)] [INFO] [stdout] 91 | | pub struct Flags: u8 { [INFO] [stdout] 92 | | const CARRY = 1 << 0; [INFO] [stdout] ... | [INFO] [stdout] 100 | | } [INFO] [stdout] 101 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/cpu.rs:89:1 [INFO] [stdout] | [INFO] [stdout] 89 | / bitflags! { [INFO] [stdout] 90 | | #[derive(Default)] [INFO] [stdout] 91 | | pub struct Flags: u8 { [INFO] [stdout] 92 | | const CARRY = 1 << 0; [INFO] [stdout] ... | [INFO] [stdout] 100 | | } [INFO] [stdout] 101 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/cpu.rs:89:1 [INFO] [stdout] | [INFO] [stdout] 89 | / bitflags! { [INFO] [stdout] 90 | | #[derive(Default)] [INFO] [stdout] 91 | | pub struct Flags: u8 { [INFO] [stdout] 92 | | const CARRY = 1 << 0; [INFO] [stdout] ... | [INFO] [stdout] 100 | | } [INFO] [stdout] 101 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::render::TextureQuery` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use sdl2::render::TextureQuery; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/cpu.rs:203:47 [INFO] [stdout] | [INFO] [stdout] 203 | let address = bus.read_16_bug((bus.read(self.pc + 1) as u16)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/cpu.rs:218:17 [INFO] [stdout] | [INFO] [stdout] 218 | ((bus.read(self.pc + 1) as u16).wrapping_add(self.x as u16) & 0xFF as u16) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/cpu.rs:221:17 [INFO] [stdout] | [INFO] [stdout] 221 | ((bus.read(self.pc + 1) as u16).wrapping_add(self.y as u16) & 0xFF as u16) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/bus.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 33 | 0x0000...0x1FFF => self.ram[(address % 0x2000) as usize], [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [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/bus.rs:34:19 [INFO] [stdout] | [INFO] [stdout] 34 | 0x2000...0x3FFF => 0xCC, // TODO: self.ppu.read_register(0x2000 + address % 8) [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/bus.rs:35:19 [INFO] [stdout] | [INFO] [stdout] 35 | 0x4000...0x4013 => 0xFF, // TODO: read from APU registers [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/bus.rs:40:19 [INFO] [stdout] | [INFO] [stdout] 40 | 0x4018...0x5FFF => 0xFF, // TODO: I/O registers [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/bus.rs:41:19 [INFO] [stdout] | [INFO] [stdout] 41 | 0x6000...0xFFFF => self.mapper_read(address), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/bus.rs:59:19 [INFO] [stdout] | [INFO] [stdout] 59 | 0x0000...0x1FFF => self.ram[(address % 2048) as usize] = value, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/bus.rs:60:19 [INFO] [stdout] | [INFO] [stdout] 60 | 0x4000...0x4013 | 0x4015 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/bus.rs:69:19 [INFO] [stdout] | [INFO] [stdout] 69 | 0x0000...0x2000 => self.cartridge.chr[address as usize], [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/bus.rs:70:19 [INFO] [stdout] | [INFO] [stdout] 70 | 0x6000...0x7FFF => 0xCC, // TODO: self.cartridge.sram[address - 0x6000] [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/bus.rs:71:19 [INFO] [stdout] | [INFO] [stdout] 71 | 0x8000...0xBFFF => self.cartridge.prg[(address - 0x8000) as usize], [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/bus.rs:72:19 [INFO] [stdout] | [INFO] [stdout] 72 | 0xC000...0xFFFF => self.cartridge.prg[(address - 0xC000) as usize], [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/bus.rs:80:19 [INFO] [stdout] | [INFO] [stdout] 80 | 0x0000...0x1FFF => self.mapper_read(address), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/bus.rs:81:19 [INFO] [stdout] | [INFO] [stdout] 81 | 0x2000...0x3F00 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/bus.rs:86:19 [INFO] [stdout] | [INFO] [stdout] 86 | 0x3F00...0x4000 => self.ppu_palette[(address % 32) as usize], [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:112:19 [INFO] [stdout] | [INFO] [stdout] 112 | 0x0000...0x2000 => self.cartridge.chr[address as usize], [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:113:19 [INFO] [stdout] | [INFO] [stdout] 113 | 0x2001...0xC000 => self.cartridge.prg[address as usize], [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:120:19 [INFO] [stdout] | [INFO] [stdout] 120 | 0x0000...0x2000 => self.cartridge.chr[address as usize] = value, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:121:19 [INFO] [stdout] | [INFO] [stdout] 121 | 0x2001...0xC000 => self.cartridge.prg[address as usize] = value, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/cpu.rs:89:1 [INFO] [stdout] | [INFO] [stdout] 89 | / bitflags! { [INFO] [stdout] 90 | | #[derive(Default)] [INFO] [stdout] 91 | | pub struct Flags: u8 { [INFO] [stdout] 92 | | const CARRY = 1 << 0; [INFO] [stdout] ... | [INFO] [stdout] 100 | | } [INFO] [stdout] 101 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/cpu.rs:89:1 [INFO] [stdout] | [INFO] [stdout] 89 | / bitflags! { [INFO] [stdout] 90 | | #[derive(Default)] [INFO] [stdout] 91 | | pub struct Flags: u8 { [INFO] [stdout] 92 | | const CARRY = 1 << 0; [INFO] [stdout] ... | [INFO] [stdout] 100 | | } [INFO] [stdout] 101 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/cpu.rs:89:1 [INFO] [stdout] | [INFO] [stdout] 89 | / bitflags! { [INFO] [stdout] 90 | | #[derive(Default)] [INFO] [stdout] 91 | | pub struct Flags: u8 { [INFO] [stdout] 92 | | const CARRY = 1 << 0; [INFO] [stdout] ... | [INFO] [stdout] 100 | | } [INFO] [stdout] 101 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::render::TextureQuery` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use sdl2::render::TextureQuery; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/cpu.rs:203:47 [INFO] [stdout] | [INFO] [stdout] 203 | let address = bus.read_16_bug((bus.read(self.pc + 1) as u16)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/cpu.rs:218:17 [INFO] [stdout] | [INFO] [stdout] 218 | ((bus.read(self.pc + 1) as u16).wrapping_add(self.x as u16) & 0xFF as u16) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/cpu.rs:221:17 [INFO] [stdout] | [INFO] [stdout] 221 | ((bus.read(self.pc + 1) as u16).wrapping_add(self.y as u16) & 0xFF as u16) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/bus.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 33 | 0x0000...0x1FFF => self.ram[(address % 0x2000) as usize], [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [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/bus.rs:34:19 [INFO] [stdout] | [INFO] [stdout] 34 | 0x2000...0x3FFF => 0xCC, // TODO: self.ppu.read_register(0x2000 + address % 8) [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/bus.rs:35:19 [INFO] [stdout] | [INFO] [stdout] 35 | 0x4000...0x4013 => 0xFF, // TODO: read from APU registers [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/bus.rs:40:19 [INFO] [stdout] | [INFO] [stdout] 40 | 0x4018...0x5FFF => 0xFF, // TODO: I/O registers [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/bus.rs:41:19 [INFO] [stdout] | [INFO] [stdout] 41 | 0x6000...0xFFFF => self.mapper_read(address), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/bus.rs:59:19 [INFO] [stdout] | [INFO] [stdout] 59 | 0x0000...0x1FFF => self.ram[(address % 2048) as usize] = value, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/bus.rs:60:19 [INFO] [stdout] | [INFO] [stdout] 60 | 0x4000...0x4013 | 0x4015 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/bus.rs:69:19 [INFO] [stdout] | [INFO] [stdout] 69 | 0x0000...0x2000 => self.cartridge.chr[address as usize], [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/bus.rs:70:19 [INFO] [stdout] | [INFO] [stdout] 70 | 0x6000...0x7FFF => 0xCC, // TODO: self.cartridge.sram[address - 0x6000] [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/bus.rs:71:19 [INFO] [stdout] | [INFO] [stdout] 71 | 0x8000...0xBFFF => self.cartridge.prg[(address - 0x8000) as usize], [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/bus.rs:72:19 [INFO] [stdout] | [INFO] [stdout] 72 | 0xC000...0xFFFF => self.cartridge.prg[(address - 0xC000) as usize], [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/bus.rs:80:19 [INFO] [stdout] | [INFO] [stdout] 80 | 0x0000...0x1FFF => self.mapper_read(address), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/bus.rs:81:19 [INFO] [stdout] | [INFO] [stdout] 81 | 0x2000...0x3F00 => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/bus.rs:86:19 [INFO] [stdout] | [INFO] [stdout] 86 | 0x3F00...0x4000 => self.ppu_palette[(address % 32) as usize], [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:112:19 [INFO] [stdout] | [INFO] [stdout] 112 | 0x0000...0x2000 => self.cartridge.chr[address as usize], [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:113:19 [INFO] [stdout] | [INFO] [stdout] 113 | 0x2001...0xC000 => self.cartridge.prg[address as usize], [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:120:19 [INFO] [stdout] | [INFO] [stdout] 120 | 0x0000...0x2000 => self.cartridge.chr[address as usize] = value, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:121:19 [INFO] [stdout] | [INFO] [stdout] 121 | 0x2001...0xC000 => self.cartridge.prg[address as usize] = value, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `bitflags::core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/main.rs:523:37 [INFO] [stdout] | [INFO] [stdout] 523 | let expected = expected.trim_right().to_owned(); [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/bus.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | _ => panic!("Invalid bus memory read at address {:04X}", address), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple patterns covering the same range [INFO] [stdout] --> src/bus.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 81 | 0x2000...0x3F00 => { [INFO] [stdout] | --------------- this range overlaps on `16128_u16` [INFO] [stdout] ... [INFO] [stdout] 86 | 0x3F00...0x4000 => self.ppu_palette[(address % 32) as usize], [INFO] [stdout] | ^^^^^^^^^^^^^^^ overlapping patterns [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(overlapping_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buffer` [INFO] [stdout] --> src/main.rs:232:9 [INFO] [stdout] | [INFO] [stdout] 232 | let mut buffer: Vec = vec![0; WINDOW_WIDTH * WINDOW_HEIGHT]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_buffer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b1` [INFO] [stdout] --> src/main.rs:245:21 [INFO] [stdout] | [INFO] [stdout] 245 | let b1 = (plane1 >> ((7 - ((x % 8) as u8)) as usize)) & 1; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_b1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `render_line` [INFO] [stdout] --> src/ppu.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | let render_line = pre_line || visible_line; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_render_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bus` [INFO] [stdout] --> src/ppu.rs:118:28 [INFO] [stdout] | [INFO] [stdout] 118 | pub fn step(&mut self, bus: &mut Bus) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mode` [INFO] [stdout] --> src/bus.rs:82:21 [INFO] [stdout] | [INFO] [stdout] 82 | let mode = self.cartridge.mirror_mode; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bus` [INFO] [stdout] --> src/apu.rs:53:28 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn step(&mut self, bus: &mut Bus) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/bus.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | _ => panic!("Invalid bus memory read at address {:04X}", address), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple patterns covering the same range [INFO] [stdout] --> src/bus.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 81 | 0x2000...0x3F00 => { [INFO] [stdout] | --------------- this range overlaps on `16128_u16` [INFO] [stdout] ... [INFO] [stdout] 86 | 0x3F00...0x4000 => self.ppu_palette[(address % 32) as usize], [INFO] [stdout] | ^^^^^^^^^^^^^^^ overlapping patterns [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(overlapping_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buffer` [INFO] [stdout] --> src/main.rs:232:9 [INFO] [stdout] | [INFO] [stdout] 232 | let mut buffer: Vec = vec![0; WINDOW_WIDTH * WINDOW_HEIGHT]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_buffer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b1` [INFO] [stdout] --> src/main.rs:245:21 [INFO] [stdout] | [INFO] [stdout] 245 | let b1 = (plane1 >> ((7 - ((x % 8) as u8)) as usize)) & 1; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_b1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `render_line` [INFO] [stdout] --> src/ppu.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | let render_line = pre_line || visible_line; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_render_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bus` [INFO] [stdout] --> src/ppu.rs:118:28 [INFO] [stdout] | [INFO] [stdout] 118 | pub fn step(&mut self, bus: &mut Bus) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mode` [INFO] [stdout] --> src/bus.rs:82:21 [INFO] [stdout] | [INFO] [stdout] 82 | let mode = self.cartridge.mirror_mode; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bus` [INFO] [stdout] --> src/apu.rs:53:28 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn step(&mut self, bus: &mut Bus) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:232:9 [INFO] [stdout] | [INFO] [stdout] 232 | let mut buffer: Vec = vec![0; WINDOW_WIDTH * WINDOW_HEIGHT]; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:314:9 [INFO] [stdout] | [INFO] [stdout] 314 | let mut current_cps = 0; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:232:9 [INFO] [stdout] | [INFO] [stdout] 232 | let mut buffer: Vec = vec![0; WINDOW_WIDTH * WINDOW_HEIGHT]; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:314:9 [INFO] [stdout] | [INFO] [stdout] 314 | let mut current_cps = 0; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cpu.rs:812:21 [INFO] [stdout] | [INFO] [stdout] 812 | let mut c: u8 = if self.flags.intersects(Flags::CARRY) { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cpu.rs:812:21 [INFO] [stdout] | [INFO] [stdout] 812 | let mut c: u8 = if self.flags.intersects(Flags::CARRY) { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `log` [INFO] [stdout] --> src/cpu.rs:325:12 [INFO] [stdout] | [INFO] [stdout] 325 | pub fn log(&mut self, bus: &Bus) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `log_string` [INFO] [stdout] --> src/console.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn log_string(&mut self) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `log_string` [INFO] [stdout] --> src/cpu.rs:246:12 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn log_string(&mut self, bus: &Bus) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `log` [INFO] [stdout] --> src/cpu.rs:325:12 [INFO] [stdout] | [INFO] [stdout] 325 | pub fn log(&mut self, bus: &Bus) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PALETTE` [INFO] [stdout] --> src/ppu.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / const PALETTE: [u32; 64] = [ [INFO] [stdout] 4 | | 0x666666, 0x002A88, 0x1412A7, 0x3B00A4, 0x5C007E, 0x6E0040, 0x6C0600, 0x561D00, 0x333500, [INFO] [stdout] 5 | | 0x0B4800, 0x005200, 0x004F08, 0x00404D, 0x000000, 0x000000, 0x000000, 0xADADAD, 0x155FD9, [INFO] [stdout] 6 | | 0x4240FF, 0x7527FE, 0xA01ACC, 0xB71E7B, 0xB53120, 0x994E00, 0x6B6D00, 0x388700, 0x0C9300, [INFO] [stdout] ... | [INFO] [stdout] 11 | | 0x000000, [INFO] [stdout] 12 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `fetch_tile_data` [INFO] [stdout] --> src/ppu.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn fetch_tile_data(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `background_pixel` [INFO] [stdout] --> src/ppu.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn background_pixel(&mut self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sprite_pixel` [INFO] [stdout] --> src/ppu.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn sprite_pixel(&mut self) -> (u8, u8) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_palette` [INFO] [stdout] --> src/ppu.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn read_palette(&self, address: u16) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `render_pixel` [INFO] [stdout] --> src/ppu.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn render_pixel(&mut self, bus: &mut Bus) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `ppu_read` [INFO] [stdout] --> src/bus.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn ppu_read(&self, address: u16) -> u8 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `AUDIO_BUFFER_SIZE` [INFO] [stdout] --> src/apu.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | const AUDIO_BUFFER_SIZE: u32 = 50 * 1024; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `LENGTH_TABLE` [INFO] [stdout] --> src/apu.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / const LENGTH_TABLE: [u8; 32] = [ [INFO] [stdout] 5 | | 10, 254, 20, 2, 40, 4, 80, 6, 160, 8, 60, 10, 14, 12, 26, 14, [INFO] [stdout] 6 | | 12, 16, 24, 18, 48, 20, 96, 22, 192, 24, 72, 26, 16, 28, 32, 30, [INFO] [stdout] 7 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DUTY_TABLE` [INFO] [stdout] --> src/apu.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | / const DUTY_TABLE: [[u8; 8]; 4] = [ [INFO] [stdout] 9 | | [0, 1, 0, 0, 0, 0, 0, 0], [INFO] [stdout] 10 | | [0, 1, 1, 0, 0, 0, 0, 0], [INFO] [stdout] 11 | | [0, 1, 1, 1, 1, 0, 0, 0], [INFO] [stdout] 12 | | [1, 0, 0, 1, 1, 1, 1, 1], [INFO] [stdout] 13 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `square_wave` [INFO] [stdout] --> src/apu.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn square_wave(&mut self, bus: &mut Bus, tone_hz: u32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Pulse` [INFO] [stdout] --> src/apu.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct Pulse { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_control` [INFO] [stdout] --> src/apu.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn write_control(&mut self, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_sweep` [INFO] [stdout] --> src/apu.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn write_sweep(&mut self, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_timer_low` [INFO] [stdout] --> src/apu.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn write_timer_low(&mut self, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_timer_high` [INFO] [stdout] --> src/apu.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn write_timer_high(&mut self, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `step_timer` [INFO] [stdout] --> src/apu.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn step_timer(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `step_envelope` [INFO] [stdout] --> src/apu.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn step_envelope(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `step_sweep` [INFO] [stdout] --> src/apu.rs:141:12 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn step_sweep(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `step_length` [INFO] [stdout] --> src/apu.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn step_length(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sweep` [INFO] [stdout] --> src/apu.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn sweep(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `output` [INFO] [stdout] --> src/apu.rs:176:12 [INFO] [stdout] | [INFO] [stdout] 176 | pub fn output(&mut self) -> u8 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PALETTE` [INFO] [stdout] --> src/ppu.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / const PALETTE: [u32; 64] = [ [INFO] [stdout] 4 | | 0x666666, 0x002A88, 0x1412A7, 0x3B00A4, 0x5C007E, 0x6E0040, 0x6C0600, 0x561D00, 0x333500, [INFO] [stdout] 5 | | 0x0B4800, 0x005200, 0x004F08, 0x00404D, 0x000000, 0x000000, 0x000000, 0xADADAD, 0x155FD9, [INFO] [stdout] 6 | | 0x4240FF, 0x7527FE, 0xA01ACC, 0xB71E7B, 0xB53120, 0x994E00, 0x6B6D00, 0x388700, 0x0C9300, [INFO] [stdout] ... | [INFO] [stdout] 11 | | 0x000000, [INFO] [stdout] 12 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `fetch_tile_data` [INFO] [stdout] --> src/ppu.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn fetch_tile_data(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `background_pixel` [INFO] [stdout] --> src/ppu.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn background_pixel(&mut self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sprite_pixel` [INFO] [stdout] --> src/ppu.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn sprite_pixel(&mut self) -> (u8, u8) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_palette` [INFO] [stdout] --> src/ppu.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn read_palette(&self, address: u16) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `render_pixel` [INFO] [stdout] --> src/ppu.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn render_pixel(&mut self, bus: &mut Bus) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `ppu_read` [INFO] [stdout] --> src/bus.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn ppu_read(&self, address: u16) -> u8 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `AUDIO_BUFFER_SIZE` [INFO] [stdout] --> src/apu.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | const AUDIO_BUFFER_SIZE: u32 = 50 * 1024; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `LENGTH_TABLE` [INFO] [stdout] --> src/apu.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / const LENGTH_TABLE: [u8; 32] = [ [INFO] [stdout] 5 | | 10, 254, 20, 2, 40, 4, 80, 6, 160, 8, 60, 10, 14, 12, 26, 14, [INFO] [stdout] 6 | | 12, 16, 24, 18, 48, 20, 96, 22, 192, 24, 72, 26, 16, 28, 32, 30, [INFO] [stdout] 7 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DUTY_TABLE` [INFO] [stdout] --> src/apu.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | / const DUTY_TABLE: [[u8; 8]; 4] = [ [INFO] [stdout] 9 | | [0, 1, 0, 0, 0, 0, 0, 0], [INFO] [stdout] 10 | | [0, 1, 1, 0, 0, 0, 0, 0], [INFO] [stdout] 11 | | [0, 1, 1, 1, 1, 0, 0, 0], [INFO] [stdout] 12 | | [1, 0, 0, 1, 1, 1, 1, 1], [INFO] [stdout] 13 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `square_wave` [INFO] [stdout] --> src/apu.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn square_wave(&mut self, bus: &mut Bus, tone_hz: u32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Pulse` [INFO] [stdout] --> src/apu.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct Pulse { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_control` [INFO] [stdout] --> src/apu.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn write_control(&mut self, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_sweep` [INFO] [stdout] --> src/apu.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn write_sweep(&mut self, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_timer_low` [INFO] [stdout] --> src/apu.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn write_timer_low(&mut self, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_timer_high` [INFO] [stdout] --> src/apu.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn write_timer_high(&mut self, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `step_timer` [INFO] [stdout] --> src/apu.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn step_timer(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `step_envelope` [INFO] [stdout] --> src/apu.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn step_envelope(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `step_sweep` [INFO] [stdout] --> src/apu.rs:141:12 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn step_sweep(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `step_length` [INFO] [stdout] --> src/apu.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn step_length(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sweep` [INFO] [stdout] --> src/apu.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn sweep(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `output` [INFO] [stdout] --> src/apu.rs:176:12 [INFO] [stdout] | [INFO] [stdout] 176 | pub fn output(&mut self) -> u8 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 61 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 60 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 9.06s [INFO] running `Command { std: "docker" "inspect" "380dbc22ca84c71c492c68c40a7387eafdc3c0f9d2a8bc1d221e79385a4cd0ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "380dbc22ca84c71c492c68c40a7387eafdc3c0f9d2a8bc1d221e79385a4cd0ec", kill_on_drop: false }` [INFO] [stdout] 380dbc22ca84c71c492c68c40a7387eafdc3c0f9d2a8bc1d221e79385a4cd0ec