[INFO] cloning repository https://github.com/ryotaroAAA/rustnes [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ryotaroAAA/rustnes" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FryotaroAAA%2Frustnes", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FryotaroAAA%2Frustnes'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 38abb6edf40642156978d4e4929800f50087d98f [INFO] checking ryotaroAAA/rustnes against try#9d63f825c0d409b0e1743a2c84b33f86965e5929 for pr-136968 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FryotaroAAA%2Frustnes" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ryotaroAAA/rustnes on toolchain 9d63f825c0d409b0e1743a2c84b33f86965e5929 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9d63f825c0d409b0e1743a2c84b33f86965e5929" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ryotaroAAA/rustnes [INFO] finished tweaking git repo https://github.com/ryotaroAAA/rustnes [INFO] tweaked toml for git repo https://github.com/ryotaroAAA/rustnes written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ryotaroAAA/rustnes already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9d63f825c0d409b0e1743a2c84b33f86965e5929" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded c_vec v2.0.0 [INFO] [stderr] Downloaded version-compare v0.1.0 [INFO] [stderr] Downloaded sdl2 v0.35.2 [INFO] [stderr] Downloaded libc v0.2.127 [INFO] [stderr] Downloaded sdl2-sys v0.35.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9d63f825c0d409b0e1743a2c84b33f86965e5929" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5cad1c66f3083da484abe4e8121c5a21a8083412a1c802b4e22a269749495f5a [INFO] running `Command { std: "docker" "start" "-a" "5cad1c66f3083da484abe4e8121c5a21a8083412a1c802b4e22a269749495f5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5cad1c66f3083da484abe4e8121c5a21a8083412a1c802b4e22a269749495f5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5cad1c66f3083da484abe4e8121c5a21a8083412a1c802b4e22a269749495f5a", kill_on_drop: false }` [INFO] [stdout] 5cad1c66f3083da484abe4e8121c5a21a8083412a1c802b4e22a269749495f5a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9d63f825c0d409b0e1743a2c84b33f86965e5929" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dbb32009067d6b1d984c8bcc4b5cd7bce1df1cacca5923bdc90272c1939e38a5 [INFO] running `Command { std: "docker" "start" "-a" "dbb32009067d6b1d984c8bcc4b5cd7bce1df1cacca5923bdc90272c1939e38a5", kill_on_drop: false }` [INFO] [stderr] Compiling version-compare v0.1.0 [INFO] [stderr] Compiling libc v0.2.127 [INFO] [stderr] Compiling sdl2 v0.35.2 [INFO] [stderr] Checking c_vec v2.0.0 [INFO] [stderr] Checking once_cell v1.13.0 [INFO] [stderr] Compiling sdl2-sys v0.35.2 [INFO] [stderr] Checking rustnes v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `test` [INFO] [stdout] --> src/nes.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | use test::Bencher; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `test` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `test`, use `cargo add test` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::nes::VRAM_SIZE` [INFO] [stdout] --> src/nes/ppu.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::nes::VRAM_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::interrupts` [INFO] [stdout] --> src/nes/ppu.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use super::interrupts; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/nes/ppu.rs:534:33 [INFO] [stdout] | [INFO] [stdout] 534 | let addr: u16 = (self.vram_addr - 0x3F00); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 534 - let addr: u16 = (self.vram_addr - 0x3F00); [INFO] [stdout] 534 + let addr: u16 = self.vram_addr - 0x3F00; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/nes.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::nes::VRAM_SIZE` [INFO] [stdout] --> src/nes/ppu.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::nes::VRAM_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::interrupts` [INFO] [stdout] --> src/nes/ppu.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use super::interrupts; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/nes/ppu.rs:534:33 [INFO] [stdout] | [INFO] [stdout] 534 | let addr: u16 = (self.vram_addr - 0x3F00); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 534 - let addr: u16 = (self.vram_addr - 0x3F00); [INFO] [stdout] 534 + let addr: u16 = self.vram_addr - 0x3F00; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/nes.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: use of unstable library feature `test`: `bench` is a part of custom test frameworks which are unstable [INFO] [stdout] --> src/nes.rs:84:7 [INFO] [stdout] | [INFO] [stdout] 84 | #[bench] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #64266 [INFO] [stdout] = note: `#[deny(soft_unstable)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple patterns overlap on their endpoints [INFO] [stdout] --> src/nes/apu.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 86 | 0x4000..=0x4004 => { [INFO] [stdout] | --------------- this range overlaps on `16388_u16`... [INFO] [stdout] ... [INFO] [stdout] 90 | 0x4004..=0x4008 => { [INFO] [stdout] | ^^^^^^^^^^^^^^^ ... with this range [INFO] [stdout] | [INFO] [stdout] = note: you likely meant to write mutually exclusive ranges [INFO] [stdout] = note: `#[warn(overlapping_range_endpoints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple patterns overlap on their endpoints [INFO] [stdout] --> src/nes/apu.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 86 | 0x4000..=0x4004 => { [INFO] [stdout] | --------------- this range overlaps on `16388_u16`... [INFO] [stdout] ... [INFO] [stdout] 90 | 0x4004..=0x4008 => { [INFO] [stdout] | ^^^^^^^^^^^^^^^ ... with this range [INFO] [stdout] | [INFO] [stdout] = note: you likely meant to write mutually exclusive ranges [INFO] [stdout] = note: `#[warn(overlapping_range_endpoints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple patterns overlap on their endpoints [INFO] [stdout] --> src/nes/apu.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 90 | 0x4004..=0x4008 => { [INFO] [stdout] | --------------- this range overlaps on `16392_u16`... [INFO] [stdout] ... [INFO] [stdout] 94 | 0x4008..=0x400C => { [INFO] [stdout] | ^^^^^^^^^^^^^^^ ... with this range [INFO] [stdout] | [INFO] [stdout] = note: you likely meant to write mutually exclusive ranges [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple patterns overlap on their endpoints [INFO] [stdout] --> src/nes/apu.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 90 | 0x4004..=0x4008 => { [INFO] [stdout] | --------------- this range overlaps on `16392_u16`... [INFO] [stdout] ... [INFO] [stdout] 94 | 0x4008..=0x400C => { [INFO] [stdout] | ^^^^^^^^^^^^^^^ ... with this range [INFO] [stdout] | [INFO] [stdout] = note: you likely meant to write mutually exclusive ranges [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple patterns overlap on their endpoints [INFO] [stdout] --> src/nes/apu.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 94 | 0x4008..=0x400C => { [INFO] [stdout] | --------------- this range overlaps on `16396_u16`... [INFO] [stdout] ... [INFO] [stdout] 98 | 0x400C..=0x400F => { [INFO] [stdout] | ^^^^^^^^^^^^^^^ ... with this range [INFO] [stdout] | [INFO] [stdout] = note: you likely meant to write mutually exclusive ranges [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple patterns overlap on their endpoints [INFO] [stdout] --> src/nes/apu.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 94 | 0x4008..=0x400C => { [INFO] [stdout] | --------------- this range overlaps on `16396_u16`... [INFO] [stdout] ... [INFO] [stdout] 98 | 0x400C..=0x400F => { [INFO] [stdout] | ^^^^^^^^^^^^^^^ ... with this range [INFO] [stdout] | [INFO] [stdout] = note: you likely meant to write mutually exclusive ranges [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interrupts` [INFO] [stdout] --> src/nes/apu.rs:130:41 [INFO] [stdout] | [INFO] [stdout] 130 | fn update_mode1_sequence(&mut self, interrupts: &mut Interrupts) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interrupts` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interrupts` [INFO] [stdout] --> src/nes/apu.rs:130:41 [INFO] [stdout] | [INFO] [stdout] 130 | fn update_mode1_sequence(&mut self, interrupts: &mut Interrupts) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interrupts` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/nes/cassette.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let size = f.read_to_end(&mut buf); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/nes/cassette.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let size = f.read_to_end(&mut buf); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/nes/cpu.rs:340:13 [INFO] [stdout] | [INFO] [stdout] 340 | _=> panic!("invelid mode {:?}", op.mode), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/nes/cpu.rs:340:13 [INFO] [stdout] | [INFO] [stdout] 295 | AddrModes::ACM | AddrModes::IMPL => (), [INFO] [stdout] | -------------------------------- matches some of the same values [INFO] [stdout] 296 | AddrModes::IMD | AddrModes::ZPG => { [INFO] [stdout] | ------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 299 | AddrModes::REL => { [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 304 | AddrModes::ZPGX => data = [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 340 | _=> panic!("invelid mode {:?}", op.mode), [INFO] [stdout] | ^ ...and 7 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/nes/cpu.rs:340:13 [INFO] [stdout] | [INFO] [stdout] 340 | _=> panic!("invelid mode {:?}", op.mode), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/nes/cpu.rs:340:13 [INFO] [stdout] | [INFO] [stdout] 295 | AddrModes::ACM | AddrModes::IMPL => (), [INFO] [stdout] | -------------------------------- matches some of the same values [INFO] [stdout] 296 | AddrModes::IMD | AddrModes::ZPG => { [INFO] [stdout] | ------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 299 | AddrModes::REL => { [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 304 | AddrModes::ZPGX => data = [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 340 | _=> panic!("invelid mode {:?}", op.mode), [INFO] [stdout] | ^ ...and 7 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/nes/cpu.rs:918:13 [INFO] [stdout] | [INFO] [stdout] 918 | _=> panic!("non implemented opcode {:?}", opcode), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/nes/cpu.rs:918:13 [INFO] [stdout] | [INFO] [stdout] 393 | OpCodes::ADC => { [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 417 | OpCodes::SBC => { [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 447 | OpCodes::AND => { [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 456 | OpCodes::ORA => { [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 918 | _=> panic!("non implemented opcode {:?}", opcode), [INFO] [stdout] | ^ ...and 60 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/nes/cpu.rs:918:13 [INFO] [stdout] | [INFO] [stdout] 918 | _=> panic!("non implemented opcode {:?}", opcode), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/nes/cpu.rs:918:13 [INFO] [stdout] | [INFO] [stdout] 393 | OpCodes::ADC => { [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 417 | OpCodes::SBC => { [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 447 | OpCodes::AND => { [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 456 | OpCodes::ORA => { [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 918 | _=> panic!("non implemented opcode {:?}", opcode), [INFO] [stdout] | ^ ...and 60 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/nes/game.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | _ => panic!("invalid mode {:?}", mode), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/nes/game.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 145 | UpdateMode::Game => (0,0), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 146 | UpdateMode::NameTable => (SCALE as usize * H_SIZE, 0usize), [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] 147 | UpdateMode::PatternTable => (0usize, SCALE as usize * V_SIZE), [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] 148 | _ => panic!("invalid mode {:?}", mode), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/nes/game.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | _ => panic!("invalid mode {:?}", mode), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/nes/game.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 145 | UpdateMode::Game => (0,0), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 146 | UpdateMode::NameTable => (SCALE as usize * H_SIZE, 0usize), [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] 147 | UpdateMode::PatternTable => (0usize, SCALE as usize * V_SIZE), [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] 148 | _ => panic!("invalid mode {:?}", mode), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `end` is never read [INFO] [stdout] --> src/nes.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let mut end = start.elapsed(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_dbg_rendered` [INFO] [stdout] --> src/nes.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let mut is_dbg_rendered: bool = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_dbg_rendered` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `end` is never read [INFO] [stdout] --> src/nes.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let mut end = start.elapsed(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_dbg_rendered` [INFO] [stdout] --> src/nes.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let mut is_dbg_rendered: bool = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_dbg_rendered` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/nes.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let mut is_dbg_rendered: bool = false; [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/nes.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let mut is_dbg_rendered: bool = false; [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: constant `CPU_CLOCK` is never used [INFO] [stdout] --> src/nes/apu.rs:29:7 [INFO] [stdout] | [INFO] [stdout] 29 | const CPU_CLOCK: f32 = 1789772.5; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GLOBAL_GAIN` is never used [INFO] [stdout] --> src/nes/apu.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | const GLOBAL_GAIN: f32 = 0.01; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SAMPLING_FREQUENCY` is never used [INFO] [stdout] --> src/nes/apu.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | const SAMPLING_FREQUENCY: usize = 44100; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COUNTER_TABLE` is never used [INFO] [stdout] --> src/nes/apu.rs:32:7 [INFO] [stdout] | [INFO] [stdout] 32 | const COUNTER_TABLE: [u8; 32] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NOISE_TIMER_PERIOD_TABLE` is never used [INFO] [stdout] --> src/nes/apu.rs:39:7 [INFO] [stdout] | [INFO] [stdout] 39 | const NOISE_TIMER_PERIOD_TABLE: [u16; 16] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DMC_TIMER_PERIOD_TABLE` is never used [INFO] [stdout] --> src/nes/apu.rs:46:7 [INFO] [stdout] | [INFO] [stdout] 46 | const DMC_TIMER_PERIOD_TABLE: [u16; 16] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `envelope_counter` is never read [INFO] [stdout] --> src/nes/apu.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct Apu { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 58 | envelope_counter: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Apu` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `path` and `rom_size` are never read [INFO] [stdout] --> src/nes/cassette.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Cassette { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 13 | path: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | rom_size: u64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cassette` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `index` is never read [INFO] [stdout] --> src/nes/cpu.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 137 | struct FetchedOp { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 138 | index: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `nestest_log` is never read [INFO] [stdout] --> src/nes/cpu.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 145 | pub struct Cpu<'a> { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 150 | nestest_log: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cpu` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `show_op` and `nestest` are never used [INFO] [stdout] --> src/nes/cpu.rs:947:8 [INFO] [stdout] | [INFO] [stdout] 160 | impl<'a> Cpu<'a> { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 947 | fn show_op(&mut self, pc: u16, fop: &FetchedOp, ppu: &Ppu) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 971 | fn nestest(&mut self, pc: u16, fop: &FetchedOp) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `vram_offset` is never read [INFO] [stdout] --> src/nes/ppu.rs:204:5 [INFO] [stdout] | [INFO] [stdout] 198 | pub struct Ppu<'a> { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 204 | vram_offset: u16, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ppu` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_pattern_rendered` is never read [INFO] [stdout] --> src/nes/render.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct Render { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 26 | is_pattern_rendered: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Render` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rustnes` (bin "rustnes" test) due to 3 previous errors; 15 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "dbb32009067d6b1d984c8bcc4b5cd7bce1df1cacca5923bdc90272c1939e38a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dbb32009067d6b1d984c8bcc4b5cd7bce1df1cacca5923bdc90272c1939e38a5", kill_on_drop: false }` [INFO] [stdout] dbb32009067d6b1d984c8bcc4b5cd7bce1df1cacca5923bdc90272c1939e38a5