[INFO] cloning repository https://github.com/synlestidae/webnes [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/synlestidae/webnes" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsynlestidae%2Fwebnes", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsynlestidae%2Fwebnes'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b33eaa14e63ac420c871b982988d968529885b32 [INFO] checking synlestidae/webnes against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsynlestidae%2Fwebnes" "/workspace/builds/worker-10/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-10/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/synlestidae/webnes 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/synlestidae/webnes [INFO] finished tweaking git repo https://github.com/synlestidae/webnes [INFO] tweaked toml for git repo https://github.com/synlestidae/webnes written to /workspace/builds/worker-10/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [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-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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] 4940d5ec2d3d6449de58d61985fb96673c9603ee680fd79e414f0fafb5a60a7b [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" "4940d5ec2d3d6449de58d61985fb96673c9603ee680fd79e414f0fafb5a60a7b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4940d5ec2d3d6449de58d61985fb96673c9603ee680fd79e414f0fafb5a60a7b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4940d5ec2d3d6449de58d61985fb96673c9603ee680fd79e414f0fafb5a60a7b", kill_on_drop: false }` [INFO] [stdout] 4940d5ec2d3d6449de58d61985fb96673c9603ee680fd79e414f0fafb5a60a7b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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] 997ecd84156e7373a35c0ee691bc0859bb9adb3900304fb735ce6a8bbbd0bbcb [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" "997ecd84156e7373a35c0ee691bc0859bb9adb3900304fb735ce6a8bbbd0bbcb", kill_on_drop: false }` [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling wasm-bindgen v0.2.68 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.68 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.68 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.68 [INFO] [stderr] Checking js-sys v0.3.45 [INFO] [stderr] Checking web-sys v0.3.45 [INFO] [stderr] Checking nes v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/util.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | let count = try!(rd.read(&mut buf[total..])); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/rom.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | try!(util::read_to_buf(&mut header, r)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/rom.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | try!(util::read_to_buf(&mut prg_rom, r)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/rom.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | try!(util::read_to_buf(&mut chr_rom, r)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Result` [INFO] [stdout] --> src/util.rs:6:34 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::{self, Read, Write, Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/util.rs:9:49 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn read_to_buf(mut buf: &mut [u8], rd: &mut Read) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: use `dyn`: `dyn Read` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OutputBuffer`, `self` [INFO] [stdout] --> src/apu.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use audio::{self, OutputBuffer}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `resampler::Resampler` [INFO] [stdout] --> src/apu.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use resampler::Resampler; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/util.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | let count = try!(rd.read(&mut buf[total..])); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/rom.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | try!(util::read_to_buf(&mut header, r)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/rom.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | try!(util::read_to_buf(&mut prg_rom, r)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/rom.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | try!(util::read_to_buf(&mut chr_rom, r)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/apu.rs:430:20 [INFO] [stdout] | [INFO] [stdout] 430 | 0x4000 ... 0x4003 => self.update_pulse(addr, val, 0), [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: unused import: `Result` [INFO] [stdout] --> src/util.rs:6:34 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::{self, Read, Write, Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/util.rs:9:49 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn read_to_buf(mut buf: &mut [u8], rd: &mut Read) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: use `dyn`: `dyn Read` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/apu.rs:431:20 [INFO] [stdout] | [INFO] [stdout] 431 | 0x4004 ... 0x4007 => self.update_pulse(addr, val, 1), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OutputBuffer`, `self` [INFO] [stdout] --> src/apu.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use audio::{self, OutputBuffer}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `resampler::Resampler` [INFO] [stdout] --> src/apu.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use resampler::Resampler; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/apu.rs:432:20 [INFO] [stdout] | [INFO] [stdout] 432 | 0x4008 ... 0x400b => self.regs.triangle.storeb(addr, val), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/apu.rs:430:20 [INFO] [stdout] | [INFO] [stdout] 430 | 0x4000 ... 0x4003 => self.update_pulse(addr, val, 0), [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/apu.rs:431:20 [INFO] [stdout] | [INFO] [stdout] 431 | 0x4004 ... 0x4007 => self.update_pulse(addr, val, 1), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/apu.rs:433:20 [INFO] [stdout] | [INFO] [stdout] 433 | 0x400c ... 0x400f => self.update_noise(addr, val), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/apu.rs:432:20 [INFO] [stdout] | [INFO] [stdout] 432 | 0x4008 ... 0x400b => self.regs.triangle.storeb(addr, val), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/apu.rs:433:20 [INFO] [stdout] | [INFO] [stdout] 433 | 0x400c ... 0x400f => self.update_noise(addr, val), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> src/audio.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> src/audio.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::from_raw_parts_mut` [INFO] [stdout] --> src/audio.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::slice::from_raw_parts_mut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mapper.rs:26:44 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn create_mapper(rom: Box) -> Box { [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Mapper+Send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::from_raw_parts_mut` [INFO] [stdout] --> src/audio.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::slice::from_raw_parts_mut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mapper.rs:31:23 [INFO] [stdout] | [INFO] [stdout] 31 | }) as Box [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Mapper+Send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mapper.rs:33:47 [INFO] [stdout] | [INFO] [stdout] 33 | 1 => Box::new(SxRom::new(rom)) as Box, [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Mapper+Send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mapper.rs:34:47 [INFO] [stdout] | [INFO] [stdout] 34 | 4 => Box::new(TxRom::new(rom)) as Box, [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Mapper+Send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/mapper.rs:341:23 [INFO] [stdout] | [INFO] [stdout] 341 | 0 ... 1 => self.chr_banks_2k[bank_update_select] = val, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/mapper.rs:342:23 [INFO] [stdout] | [INFO] [stdout] 342 | 2 ... 5 => self.chr_banks_1k[bank_update_select - 2] = val, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/mapper.rs:343:23 [INFO] [stdout] | [INFO] [stdout] 343 | 6 ... 7 => self.prg_banks[bank_update_select - 6] = val, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/mapper.rs:365:21 [INFO] [stdout] | [INFO] [stdout] 365 | (0x0000 ... 0x07ff, false) | (0x1000 ... 0x17ff, true) => (self.chr_banks_2k[0], true), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/mapper.rs:365:50 [INFO] [stdout] | [INFO] [stdout] 365 | (0x0000 ... 0x07ff, false) | (0x1000 ... 0x17ff, true) => (self.chr_banks_2k[0], true), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/mapper.rs:366:21 [INFO] [stdout] | [INFO] [stdout] 366 | (0x0800 ... 0x0fff, false) | (0x1800 ... 0x1fff, true) => (self.chr_banks_2k[1], true), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/mapper.rs:366:50 [INFO] [stdout] | [INFO] [stdout] 366 | (0x0800 ... 0x0fff, false) | (0x1800 ... 0x1fff, true) => (self.chr_banks_2k[1], true), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/mapper.rs:367:21 [INFO] [stdout] | [INFO] [stdout] 367 | (0x1000 ... 0x13ff, false) | (0x0000 ... 0x03ff, true) => (self.chr_banks_1k[0], false), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/mapper.rs:367:50 [INFO] [stdout] | [INFO] [stdout] 367 | (0x1000 ... 0x13ff, false) | (0x0000 ... 0x03ff, true) => (self.chr_banks_1k[0], false), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/mapper.rs:368:21 [INFO] [stdout] | [INFO] [stdout] 368 | (0x1400 ... 0x17ff, false) | (0x0400 ... 0x07ff, true) => (self.chr_banks_1k[1], false), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/mapper.rs:368:50 [INFO] [stdout] | [INFO] [stdout] 368 | (0x1400 ... 0x17ff, false) | (0x0400 ... 0x07ff, true) => (self.chr_banks_1k[1], false), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/mapper.rs:369:21 [INFO] [stdout] | [INFO] [stdout] 369 | (0x1800 ... 0x1bff, false) | (0x0800 ... 0x0bff, true) => (self.chr_banks_1k[2], false), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/mapper.rs:369:50 [INFO] [stdout] | [INFO] [stdout] 369 | (0x1800 ... 0x1bff, false) | (0x0800 ... 0x0bff, true) => (self.chr_banks_1k[2], false), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/mapper.rs:370:21 [INFO] [stdout] | [INFO] [stdout] 370 | (0x1c00 ... 0x1fff, false) | (0x0c00 ... 0x0fff, true) => (self.chr_banks_1k[3], false), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/mapper.rs:370:50 [INFO] [stdout] | [INFO] [stdout] 370 | (0x1c00 ... 0x1fff, false) | (0x0c00 ... 0x0fff, true) => (self.chr_banks_1k[3], false), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mem.rs:82:32 [INFO] [stdout] | [INFO] [stdout] 82 | pub mapper: Rc>>, [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Mapper+Send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mapper.rs:26:44 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn create_mapper(rom: Box) -> Box { [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Mapper+Send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mapper.rs:31:23 [INFO] [stdout] | [INFO] [stdout] 31 | }) as Box [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Mapper+Send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mem.rs:89:39 [INFO] [stdout] | [INFO] [stdout] 89 | mapper: Rc>>, [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Mapper+Send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mapper.rs:33:47 [INFO] [stdout] | [INFO] [stdout] 33 | 1 => Box::new(SxRom::new(rom)) as Box, [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Mapper+Send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mapper.rs:34:47 [INFO] [stdout] | [INFO] [stdout] 34 | 4 => Box::new(TxRom::new(rom)) as Box, [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Mapper+Send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ppu.rs:207:32 [INFO] [stdout] | [INFO] [stdout] 207 | pub mapper: Rc>>, [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Mapper+Send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/mapper.rs:341:23 [INFO] [stdout] | [INFO] [stdout] 341 | 0 ... 1 => self.chr_banks_2k[bank_update_select] = val, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ppu.rs:213:39 [INFO] [stdout] | [INFO] [stdout] 213 | pub fn new(mapper: Rc>>) -> Vram { [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Mapper+Send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/mapper.rs:342:23 [INFO] [stdout] | [INFO] [stdout] 342 | 2 ... 5 => self.chr_banks_1k[bank_update_select - 2] = val, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/mapper.rs:343:23 [INFO] [stdout] | [INFO] [stdout] 343 | 6 ... 7 => self.prg_banks[bank_update_select - 6] = val, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/mapper.rs:365:21 [INFO] [stdout] | [INFO] [stdout] 365 | (0x0000 ... 0x07ff, false) | (0x1000 ... 0x17ff, true) => (self.chr_banks_2k[0], true), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/rom.rs:37:25 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn load(r: &mut Read) -> Result { [INFO] [stdout] | ^^^^ help: use `dyn`: `dyn Read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/mapper.rs:365:50 [INFO] [stdout] | [INFO] [stdout] 365 | (0x0000 ... 0x07ff, false) | (0x1000 ... 0x17ff, true) => (self.chr_banks_2k[0], true), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/mapper.rs:366:21 [INFO] [stdout] | [INFO] [stdout] 366 | (0x0800 ... 0x0fff, false) | (0x1800 ... 0x1fff, true) => (self.chr_banks_2k[1], true), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `apu::Apu` [INFO] [stdout] --> src/lib.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | use apu::Apu; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/mapper.rs:366:50 [INFO] [stdout] | [INFO] [stdout] 366 | (0x0800 ... 0x0fff, false) | (0x1800 ... 0x1fff, true) => (self.chr_banks_2k[1], true), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cpu::Cpu` [INFO] [stdout] --> src/lib.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | use cpu::Cpu; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/mapper.rs:367:21 [INFO] [stdout] | [INFO] [stdout] 367 | (0x1000 ... 0x13ff, false) | (0x0000 ... 0x03ff, true) => (self.chr_banks_1k[0], false), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Gfx` [INFO] [stdout] --> src/lib.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | use gfx::{Gfx, Scale}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/mapper.rs:367:50 [INFO] [stdout] | [INFO] [stdout] 367 | (0x1000 ... 0x13ff, false) | (0x0000 ... 0x03ff, true) => (self.chr_banks_1k[0], false), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `InputResult`, `Input` [INFO] [stdout] --> src/lib.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | use input::{Input, InputResult}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mapper::Mapper` [INFO] [stdout] --> src/lib.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | use mapper::Mapper; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/mapper.rs:368:21 [INFO] [stdout] | [INFO] [stdout] 368 | (0x1400 ... 0x17ff, false) | (0x0400 ... 0x07ff, true) => (self.chr_banks_1k[1], false), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mem::MemMap` [INFO] [stdout] --> src/lib.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | use mem::MemMap; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/mapper.rs:368:50 [INFO] [stdout] | [INFO] [stdout] 368 | (0x1400 ... 0x17ff, false) | (0x0400 ... 0x07ff, true) => (self.chr_banks_1k[1], false), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Oam`, `Ppu`, `Vram` [INFO] [stdout] --> src/lib.rs:37:11 [INFO] [stdout] | [INFO] [stdout] 37 | use ppu::{Oam, Ppu, Vram}; [INFO] [stdout] | ^^^ ^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/mapper.rs:369:21 [INFO] [stdout] | [INFO] [stdout] 369 | (0x1800 ... 0x1bff, false) | (0x0800 ... 0x0bff, true) => (self.chr_banks_1k[2], false), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `util::Save` [INFO] [stdout] --> src/lib.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | use util::Save; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/mapper.rs:369:50 [INFO] [stdout] | [INFO] [stdout] 369 | (0x1800 ... 0x1bff, false) | (0x0800 ... 0x0bff, true) => (self.chr_banks_1k[2], false), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/lib.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/mapper.rs:370:21 [INFO] [stdout] | [INFO] [stdout] 370 | (0x1c00 ... 0x1fff, false) | (0x0c00 ... 0x0fff, true) => (self.chr_banks_1k[3], false), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `input_source::*` [INFO] [stdout] --> src/lib.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | use input_source::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/mapper.rs:370:50 [INFO] [stdout] | [INFO] [stdout] 370 | (0x1c00 ... 0x1fff, false) | (0x0c00 ... 0x0fff, true) => (self.chr_banks_1k[3], false), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `emulator::Emulator` [INFO] [stdout] --> src/lib.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | use emulator::Emulator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/lib.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mem.rs:82:32 [INFO] [stdout] | [INFO] [stdout] 82 | pub mapper: Rc>>, [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Mapper+Send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/lib.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mem.rs:89:39 [INFO] [stdout] | [INFO] [stdout] 89 | mapper: Rc>>, [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Mapper+Send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/lib.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/lib.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::mpsc::channel` [INFO] [stdout] --> src/lib.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | use std::sync::mpsc::channel; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ppu.rs:207:32 [INFO] [stdout] | [INFO] [stdout] 207 | pub mapper: Rc>>, [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Mapper+Send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/lib.rs:54:1 [INFO] [stdout] | [INFO] [stdout] 54 | / macro_rules! log { [INFO] [stdout] 55 | | ( $( $t:tt )* ) => { [INFO] [stdout] 56 | | web_sys::console::log_1(&format!( $( $t )* ).into()); [INFO] [stdout] 57 | | } [INFO] [stdout] 58 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ppu.rs:213:39 [INFO] [stdout] | [INFO] [stdout] 213 | pub fn new(mapper: Rc>>) -> Vram { [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Mapper+Send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/rom.rs:37:25 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn load(r: &mut Read) -> Result { [INFO] [stdout] | ^^^^ help: use `dyn`: `dyn Read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `apu::Apu` [INFO] [stdout] --> src/lib.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | use apu::Apu; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cpu::Cpu` [INFO] [stdout] --> src/lib.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | use cpu::Cpu; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Gfx` [INFO] [stdout] --> src/lib.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | use gfx::{Gfx, Scale}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `InputResult`, `Input` [INFO] [stdout] --> src/lib.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | use input::{Input, InputResult}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mapper::Mapper` [INFO] [stdout] --> src/lib.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | use mapper::Mapper; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mem::MemMap` [INFO] [stdout] --> src/lib.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | use mem::MemMap; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Oam`, `Ppu`, `Vram` [INFO] [stdout] --> src/lib.rs:37:11 [INFO] [stdout] | [INFO] [stdout] 37 | use ppu::{Oam, Ppu, Vram}; [INFO] [stdout] | ^^^ ^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `util::Save` [INFO] [stdout] --> src/lib.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | use util::Save; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/lib.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `input_source::*` [INFO] [stdout] --> src/lib.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | use input_source::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `emulator::Emulator` [INFO] [stdout] --> src/lib.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | use emulator::Emulator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/lib.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/lib.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/lib.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/lib.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::mpsc::channel` [INFO] [stdout] --> src/lib.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | use std::sync::mpsc::channel; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/lib.rs:54:1 [INFO] [stdout] | [INFO] [stdout] 54 | / macro_rules! log { [INFO] [stdout] 55 | | ( $( $t:tt )* ) => { [INFO] [stdout] 56 | | web_sys::console::log_1(&format!( $( $t )* ).into()); [INFO] [stdout] 57 | | } [INFO] [stdout] 58 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/audio.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | / lazy_static! { [INFO] [stdout] 26 | | pub static ref AUDIO_MUTEX: Mutex<()> = Mutex::new(()); [INFO] [stdout] 27 | | pub static ref AUDIO_CONDVAR: Condvar = Condvar::new(); [INFO] [stdout] 28 | | } [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 constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/audio.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | / lazy_static! { [INFO] [stdout] 26 | | pub static ref AUDIO_MUTEX: Mutex<()> = Mutex::new(()); [INFO] [stdout] 27 | | pub static ref AUDIO_CONDVAR: Condvar = Condvar::new(); [INFO] [stdout] 28 | | } [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 constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/audio.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | / lazy_static! { [INFO] [stdout] 26 | | pub static ref AUDIO_MUTEX: Mutex<()> = Mutex::new(()); [INFO] [stdout] 27 | | pub static ref AUDIO_CONDVAR: Condvar = Condvar::new(); [INFO] [stdout] 28 | | } [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 constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/audio.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | / lazy_static! { [INFO] [stdout] 26 | | pub static ref AUDIO_MUTEX: Mutex<()> = Mutex::new(()); [INFO] [stdout] 27 | | pub static ref AUDIO_CONDVAR: Condvar = Condvar::new(); [INFO] [stdout] 28 | | } [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 constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/audio.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | / lazy_static! { [INFO] [stdout] 26 | | pub static ref AUDIO_MUTEX: Mutex<()> = Mutex::new(()); [INFO] [stdout] 27 | | pub static ref AUDIO_CONDVAR: Condvar = Condvar::new(); [INFO] [stdout] 28 | | } [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 constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/audio.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | / lazy_static! { [INFO] [stdout] 26 | | pub static ref AUDIO_MUTEX: Mutex<()> = Mutex::new(()); [INFO] [stdout] 27 | | pub static ref AUDIO_CONDVAR: Condvar = Condvar::new(); [INFO] [stdout] 28 | | } [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 constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/audio.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | / lazy_static! { [INFO] [stdout] 26 | | pub static ref AUDIO_MUTEX: Mutex<()> = Mutex::new(()); [INFO] [stdout] 27 | | pub static ref AUDIO_CONDVAR: Condvar = Condvar::new(); [INFO] [stdout] 28 | | } [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 constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/audio.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | / lazy_static! { [INFO] [stdout] 26 | | pub static ref AUDIO_MUTEX: Mutex<()> = Mutex::new(()); [INFO] [stdout] 27 | | pub static ref AUDIO_CONDVAR: Condvar = Condvar::new(); [INFO] [stdout] 28 | | } [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 variable: `rom` [INFO] [stdout] --> src/lib.rs:80:23 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn start_emulator(rom: Rom, scale: Scale) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rom` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scale` [INFO] [stdout] --> src/lib.rs:80:33 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn start_emulator(rom: Rom, scale: Scale) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scale` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pulse_number` [INFO] [stdout] --> src/apu.rs:600:30 [INFO] [stdout] | [INFO] [stdout] 600 | fn play_pulse(&mut self, pulse_number: usize, channel: usize) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pulse_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel` [INFO] [stdout] --> src/apu.rs:600:51 [INFO] [stdout] | [INFO] [stdout] 600 | fn play_pulse(&mut self, pulse_number: usize, channel: usize) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel` [INFO] [stdout] --> src/apu.rs:637:33 [INFO] [stdout] | [INFO] [stdout] 637 | fn play_triangle(&mut self, channel: usize) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel` [INFO] [stdout] --> src/apu.rs:666:30 [INFO] [stdout] | [INFO] [stdout] 666 | fn play_noise(&mut self, channel: usize) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nes_sample_rate` [INFO] [stdout] --> src/resampler.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn new(nes_sample_rate: u32, output_sample_rate: u32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nes_sample_rate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output_sample_rate` [INFO] [stdout] --> src/resampler.rs:7:38 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn new(nes_sample_rate: u32, output_sample_rate: u32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_output_sample_rate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/resampler.rs:14:27 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn process(&self, input: &mut [i16], output: &mut [u8]) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/resampler.rs:14:46 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn process(&self, input: &mut [i16], output: &mut [u8]) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ppu_screen` [INFO] [stdout] --> src/gfx.rs:327:24 [INFO] [stdout] | [INFO] [stdout] 327 | fn blit(&mut self, ppu_screen: &[u8; SCREEN_SIZE]) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ppu_screen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rom` [INFO] [stdout] --> src/lib.rs:80:23 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn start_emulator(rom: Rom, scale: Scale) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rom` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scale` [INFO] [stdout] --> src/lib.rs:80:33 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn start_emulator(rom: Rom, scale: Scale) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scale` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pulse_number` [INFO] [stdout] --> src/apu.rs:600:30 [INFO] [stdout] | [INFO] [stdout] 600 | fn play_pulse(&mut self, pulse_number: usize, channel: usize) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pulse_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel` [INFO] [stdout] --> src/apu.rs:600:51 [INFO] [stdout] | [INFO] [stdout] 600 | fn play_pulse(&mut self, pulse_number: usize, channel: usize) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel` [INFO] [stdout] --> src/apu.rs:637:33 [INFO] [stdout] | [INFO] [stdout] 637 | fn play_triangle(&mut self, channel: usize) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel` [INFO] [stdout] --> src/apu.rs:666:30 [INFO] [stdout] | [INFO] [stdout] 666 | fn play_noise(&mut self, channel: usize) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nes_sample_rate` [INFO] [stdout] --> src/resampler.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn new(nes_sample_rate: u32, output_sample_rate: u32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nes_sample_rate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output_sample_rate` [INFO] [stdout] --> src/resampler.rs:7:38 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn new(nes_sample_rate: u32, output_sample_rate: u32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_output_sample_rate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/resampler.rs:14:27 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn process(&self, input: &mut [i16], output: &mut [u8]) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/resampler.rs:14:46 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn process(&self, input: &mut [i16], output: &mut [u8]) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ppu_screen` [INFO] [stdout] --> src/gfx.rs:327:24 [INFO] [stdout] | [INFO] [stdout] 327 | fn blit(&mut self, ppu_screen: &[u8; SCREEN_SIZE]) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ppu_screen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/util.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn read_to_buf(mut buf: &mut [u8], rd: &mut Read) -> io::Result<()> { [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/util.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn read_to_buf(mut buf: &mut [u8], rd: &mut Read) -> io::Result<()> { [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: unnecessary `unsafe` block [INFO] [stdout] --> src/audio.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NES_SAMPLE_RATE` [INFO] [stdout] --> src/apu.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | const NES_SAMPLE_RATE: u32 = 1789920; // Actual is 1789800, but this is divisible by 240. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `OUTPUT_SAMPLE_RATE` [INFO] [stdout] --> src/apu.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | const OUTPUT_SAMPLE_RATE: u32 = 44100; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TICK_FREQUENCY` [INFO] [stdout] --> src/apu.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | const TICK_FREQUENCY: u32 = 240; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NES_SAMPLES_PER_TICK` [INFO] [stdout] --> src/apu.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | const NES_SAMPLES_PER_TICK: u32 = NES_SAMPLE_RATE / TICK_FREQUENCY; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PULSE_WAVEFORMS` [INFO] [stdout] --> src/apu.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | const PULSE_WAVEFORMS: [u8; 4] = [ 0b01000000, 0b01100000, 0b01111000, 0b10011111 ]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TRIANGLE_WAVEFORM` [INFO] [stdout] --> src/apu.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | / const TRIANGLE_WAVEFORM: [u8; 32] = [ [INFO] [stdout] 32 | | 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, [INFO] [stdout] 33 | | 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, [INFO] [stdout] 34 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `audible` [INFO] [stdout] --> src/apu.rs:155:8 [INFO] [stdout] | [INFO] [stdout] 155 | fn audible(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sample_volume` [INFO] [stdout] --> src/apu.rs:159:8 [INFO] [stdout] | [INFO] [stdout] 159 | fn sample_volume(&self) -> i16 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `audible` [INFO] [stdout] --> src/apu.rs:193:8 [INFO] [stdout] | [INFO] [stdout] 193 | fn audible(&self) -> bool { self.value > 0 } [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `wavelen` [INFO] [stdout] --> src/apu.rs:194:8 [INFO] [stdout] | [INFO] [stdout] 194 | fn wavelen(&self) -> u64 { (self.value as u64 + 1) * 2 } [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `waveform_index` [INFO] [stdout] --> src/apu.rs:267:5 [INFO] [stdout] | [INFO] [stdout] 267 | waveform_index: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `audible` [INFO] [stdout] --> src/apu.rs:308:8 [INFO] [stdout] | [INFO] [stdout] 308 | fn audible(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `rng` [INFO] [stdout] --> src/apu.rs:322:5 [INFO] [stdout] | [INFO] [stdout] 322 | rng: Xorshift, // FIXME: This is inaccurate. [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SAMPLE_COUNT` [INFO] [stdout] --> src/apu.rs:400:1 [INFO] [stdout] | [INFO] [stdout] 400 | const SAMPLE_COUNT: usize = 178992; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `SampleBuffer` [INFO] [stdout] --> src/apu.rs:402:8 [INFO] [stdout] | [INFO] [stdout] 402 | struct SampleBuffer { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_or_zero_sample_buffer` [INFO] [stdout] --> src/apu.rs:587:8 [INFO] [stdout] | [INFO] [stdout] 587 | fn get_or_zero_sample_buffer(buffer: &mut [i16], offset: usize, audible: bool) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `play_pulse` [INFO] [stdout] --> src/apu.rs:600:8 [INFO] [stdout] | [INFO] [stdout] 600 | fn play_pulse(&mut self, pulse_number: usize, channel: usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `play_triangle` [INFO] [stdout] --> src/apu.rs:637:8 [INFO] [stdout] | [INFO] [stdout] 637 | fn play_triangle(&mut self, channel: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `play_noise` [INFO] [stdout] --> src/apu.rs:666:8 [INFO] [stdout] | [INFO] [stdout] 666 | fn play_noise(&mut self, channel: usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `g_output_buffer` [INFO] [stdout] --> src/audio.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | static mut g_output_buffer: Option<*mut OutputBuffer> = None; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `factor` [INFO] [stdout] --> src/gfx.rs:267:8 [INFO] [stdout] | [INFO] [stdout] 267 | fn factor(self) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `g_output_buffer` should have an upper case name [INFO] [stdout] --> src/audio.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | static mut g_output_buffer: Option<*mut OutputBuffer> = None; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `G_OUTPUT_BUFFER` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/audio.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 94 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NES_SAMPLE_RATE` [INFO] [stdout] --> src/apu.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | const NES_SAMPLE_RATE: u32 = 1789920; // Actual is 1789800, but this is divisible by 240. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `OUTPUT_SAMPLE_RATE` [INFO] [stdout] --> src/apu.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | const OUTPUT_SAMPLE_RATE: u32 = 44100; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TICK_FREQUENCY` [INFO] [stdout] --> src/apu.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | const TICK_FREQUENCY: u32 = 240; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NES_SAMPLES_PER_TICK` [INFO] [stdout] --> src/apu.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | const NES_SAMPLES_PER_TICK: u32 = NES_SAMPLE_RATE / TICK_FREQUENCY; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PULSE_WAVEFORMS` [INFO] [stdout] --> src/apu.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | const PULSE_WAVEFORMS: [u8; 4] = [ 0b01000000, 0b01100000, 0b01111000, 0b10011111 ]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TRIANGLE_WAVEFORM` [INFO] [stdout] --> src/apu.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | / const TRIANGLE_WAVEFORM: [u8; 32] = [ [INFO] [stdout] 32 | | 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, [INFO] [stdout] 33 | | 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, [INFO] [stdout] 34 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `audible` [INFO] [stdout] --> src/apu.rs:155:8 [INFO] [stdout] | [INFO] [stdout] 155 | fn audible(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sample_volume` [INFO] [stdout] --> src/apu.rs:159:8 [INFO] [stdout] | [INFO] [stdout] 159 | fn sample_volume(&self) -> i16 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `audible` [INFO] [stdout] --> src/apu.rs:193:8 [INFO] [stdout] | [INFO] [stdout] 193 | fn audible(&self) -> bool { self.value > 0 } [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `wavelen` [INFO] [stdout] --> src/apu.rs:194:8 [INFO] [stdout] | [INFO] [stdout] 194 | fn wavelen(&self) -> u64 { (self.value as u64 + 1) * 2 } [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `waveform_index` [INFO] [stdout] --> src/apu.rs:267:5 [INFO] [stdout] | [INFO] [stdout] 267 | waveform_index: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `audible` [INFO] [stdout] --> src/apu.rs:308:8 [INFO] [stdout] | [INFO] [stdout] 308 | fn audible(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `rng` [INFO] [stdout] --> src/apu.rs:322:5 [INFO] [stdout] | [INFO] [stdout] 322 | rng: Xorshift, // FIXME: This is inaccurate. [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SAMPLE_COUNT` [INFO] [stdout] --> src/apu.rs:400:1 [INFO] [stdout] | [INFO] [stdout] 400 | const SAMPLE_COUNT: usize = 178992; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `SampleBuffer` [INFO] [stdout] --> src/apu.rs:402:8 [INFO] [stdout] | [INFO] [stdout] 402 | struct SampleBuffer { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_or_zero_sample_buffer` [INFO] [stdout] --> src/apu.rs:587:8 [INFO] [stdout] | [INFO] [stdout] 587 | fn get_or_zero_sample_buffer(buffer: &mut [i16], offset: usize, audible: bool) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `play_pulse` [INFO] [stdout] --> src/apu.rs:600:8 [INFO] [stdout] | [INFO] [stdout] 600 | fn play_pulse(&mut self, pulse_number: usize, channel: usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `play_triangle` [INFO] [stdout] --> src/apu.rs:637:8 [INFO] [stdout] | [INFO] [stdout] 637 | fn play_triangle(&mut self, channel: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `play_noise` [INFO] [stdout] --> src/apu.rs:666:8 [INFO] [stdout] | [INFO] [stdout] 666 | fn play_noise(&mut self, channel: usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `g_output_buffer` [INFO] [stdout] --> src/audio.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | static mut g_output_buffer: Option<*mut OutputBuffer> = None; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `factor` [INFO] [stdout] --> src/gfx.rs:267:8 [INFO] [stdout] | [INFO] [stdout] 267 | fn factor(self) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `g_output_buffer` should have an upper case name [INFO] [stdout] --> src/audio.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | static mut g_output_buffer: Option<*mut OutputBuffer> = None; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `G_OUTPUT_BUFFER` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 94 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 27.06s [INFO] running `Command { std: "docker" "inspect" "997ecd84156e7373a35c0ee691bc0859bb9adb3900304fb735ce6a8bbbd0bbcb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "997ecd84156e7373a35c0ee691bc0859bb9adb3900304fb735ce6a8bbbd0bbcb", kill_on_drop: false }` [INFO] [stdout] 997ecd84156e7373a35c0ee691bc0859bb9adb3900304fb735ce6a8bbbd0bbcb