[INFO] cloning repository https://github.com/c-ola/cassowary-gb [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/c-ola/cassowary-gb" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fc-ola%2Fcassowary-gb", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fc-ola%2Fcassowary-gb'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 231560f7e58e05e3248466d77dfab0038ecc651d [INFO] checking c-ola/cassowary-gb against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fc-ola%2Fcassowary-gb" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/c-ola/cassowary-gb on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/c-ola/cassowary-gb [INFO] finished tweaking git repo https://github.com/c-ola/cassowary-gb [INFO] tweaked toml for git repo https://github.com/c-ola/cassowary-gb written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/c-ola/cassowary-gb 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 66c1de4fbe752074c05657ed16a39661a5273a3c7adedbe5de299e5620a7a03e [INFO] running `Command { std: "docker" "start" "-a" "66c1de4fbe752074c05657ed16a39661a5273a3c7adedbe5de299e5620a7a03e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "66c1de4fbe752074c05657ed16a39661a5273a3c7adedbe5de299e5620a7a03e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "66c1de4fbe752074c05657ed16a39661a5273a3c7adedbe5de299e5620a7a03e", kill_on_drop: false }` [INFO] [stdout] 66c1de4fbe752074c05657ed16a39661a5273a3c7adedbe5de299e5620a7a03e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bb30319ac271951b85eb76269cd3e75bbbc924618b09db329b3ef584877ad928 [INFO] running `Command { std: "docker" "start" "-a" "bb30319ac271951b85eb76269cd3e75bbbc924618b09db329b3ef584877ad928", kill_on_drop: false }` [INFO] [stderr] Compiling version-compare v0.1.1 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Checking anstyle-query v1.0.0 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Checking anstyle v1.0.4 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking clap_lex v0.6.0 [INFO] [stderr] Compiling sdl2 v0.35.2 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling syn v2.0.31 [INFO] [stderr] Checking anstyle-parse v0.2.2 [INFO] [stderr] Compiling sdl2-sys v0.35.2 [INFO] [stderr] Checking anstream v0.6.4 [INFO] [stderr] Checking clap_builder v4.4.7 [INFO] [stderr] Compiling clap_derive v4.4.7 [INFO] [stderr] Checking clap v4.4.7 [INFO] [stderr] Checking cassowary-gb v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `Memory` is imported redundantly [INFO] [stdout] --> src/console/ppu.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::console::Memory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 2 | use crate::console::*; [INFO] [stdout] | ----------------- the item `Memory` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `IF` is imported redundantly [INFO] [stdout] --> src/console/ppu.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::console::*; [INFO] [stdout] | ----------------- the item `IF` is already imported here [INFO] [stdout] 3 | use super::regids::IF; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::pixels::Color` [INFO] [stdout] --> src/console/ppu.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use sdl2::pixels::Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Canvas` [INFO] [stdout] --> src/console/ppu.rs:6:29 [INFO] [stdout] | [INFO] [stdout] 6 | use sdl2::render::{Texture, Canvas}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Texture` is imported redundantly [INFO] [stdout] --> src/console/ppu.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::console::*; [INFO] [stdout] | ----------------- the item `Texture` is already imported here [INFO] [stdout] ... [INFO] [stdout] 6 | use sdl2::render::{Texture, Canvas}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::surface::Surface` [INFO] [stdout] --> src/console/ppu.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use sdl2::surface::Surface; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::video::Window` [INFO] [stdout] --> src/console/ppu.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use sdl2::video::Window; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::rect::Point` [INFO] [stdout] --> src/console/ppu.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use sdl2::rect::Point; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::regids::*` [INFO] [stdout] --> src/console/apu.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::regids::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AudioSpecDesired` [INFO] [stdout] --> src/console/apu.rs:5:34 [INFO] [stdout] | [INFO] [stdout] 5 | use sdl2::audio::{AudioCallback, AudioSpecDesired}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AudioCallback` is imported redundantly [INFO] [stdout] --> src/console/apu.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{bytes::u8_to_u16, console::*}; [INFO] [stdout] | ---------- the item `AudioCallback` is already imported here [INFO] [stdout] 4 | use super::regids::*; [INFO] [stdout] 5 | use sdl2::audio::{AudioCallback, AudioSpecDesired}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/console.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `max` [INFO] [stdout] --> src/console.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | use std::cmp::{min, max}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::audio::AudioCallback` [INFO] [stdout] --> src/console.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use sdl2::audio::AudioCallback; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Canvas`, `Texture` [INFO] [stdout] --> src/console.rs:29:20 [INFO] [stdout] | [INFO] [stdout] 29 | use sdl2::render::{Canvas, Texture}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::video::Window` [INFO] [stdout] --> src/console.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use sdl2::video::Window; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Memory` is imported redundantly [INFO] [stdout] --> src/console/ppu.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::console::Memory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 2 | use crate::console::*; [INFO] [stdout] | ----------------- the item `Memory` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `IF` is imported redundantly [INFO] [stdout] --> src/console/ppu.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::console::*; [INFO] [stdout] | ----------------- the item `IF` is already imported here [INFO] [stdout] 3 | use super::regids::IF; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::pixels::Color` [INFO] [stdout] --> src/console/ppu.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use sdl2::pixels::Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Canvas` [INFO] [stdout] --> src/console/ppu.rs:6:29 [INFO] [stdout] | [INFO] [stdout] 6 | use sdl2::render::{Texture, Canvas}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Texture` is imported redundantly [INFO] [stdout] --> src/console/ppu.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::console::*; [INFO] [stdout] | ----------------- the item `Texture` is already imported here [INFO] [stdout] ... [INFO] [stdout] 6 | use sdl2::render::{Texture, Canvas}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::surface::Surface` [INFO] [stdout] --> src/console/ppu.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use sdl2::surface::Surface; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::video::Window` [INFO] [stdout] --> src/console/ppu.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use sdl2::video::Window; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::rect::Point` [INFO] [stdout] --> src/console/ppu.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use sdl2::rect::Point; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::regids::*` [INFO] [stdout] --> src/console/apu.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::regids::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AudioSpecDesired` [INFO] [stdout] --> src/console/apu.rs:5:34 [INFO] [stdout] | [INFO] [stdout] 5 | use sdl2::audio::{AudioCallback, AudioSpecDesired}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AudioCallback` is imported redundantly [INFO] [stdout] --> src/console/apu.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{bytes::u8_to_u16, console::*}; [INFO] [stdout] | ---------- the item `AudioCallback` is already imported here [INFO] [stdout] 4 | use super::regids::*; [INFO] [stdout] 5 | use sdl2::audio::{AudioCallback, AudioSpecDesired}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/console.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `max` [INFO] [stdout] --> src/console.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | use std::cmp::{min, max}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::audio::AudioCallback` [INFO] [stdout] --> src/console.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use sdl2::audio::AudioCallback; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Canvas`, `Texture` [INFO] [stdout] --> src/console.rs:29:20 [INFO] [stdout] | [INFO] [stdout] 29 | use sdl2::render::{Canvas, Texture}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::video::Window` [INFO] [stdout] --> src/console.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use sdl2::video::Window; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pace` [INFO] [stdout] --> src/console/apu.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let pace = nr10 & 0b01110000 >> 4; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pace` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env_dir` [INFO] [stdout] --> src/console/apu.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let env_dir = nr12 & 0b00001000 >> 3; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_env_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sweep_pace` [INFO] [stdout] --> src/console/apu.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let sweep_pace = nr12 & 0b00000111; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sweep_pace` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `trigger` [INFO] [stdout] --> src/console/apu.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let trigger = nr14 & 0b10000000 >> 7; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_trigger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length_en` [INFO] [stdout] --> src/console/apu.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let length_en = nr14 & 0b01000000 >> 6; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_length_en` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `log_timer` [INFO] [stdout] --> src/console.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | let mut log_timer = Instant::now(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_log_timer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `breakpoints` [INFO] [stdout] --> src/console.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | let breakpoints = [ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_breakpoints` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pace` [INFO] [stdout] --> src/console/apu.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let pace = nr10 & 0b01110000 >> 4; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pace` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env_dir` [INFO] [stdout] --> src/console/apu.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let env_dir = nr12 & 0b00001000 >> 3; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_env_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sweep_pace` [INFO] [stdout] --> src/console/apu.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let sweep_pace = nr12 & 0b00000111; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sweep_pace` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `trigger` [INFO] [stdout] --> src/console/apu.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let trigger = nr14 & 0b10000000 >> 7; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_trigger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length_en` [INFO] [stdout] --> src/console/apu.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let length_en = nr14 & 0b01000000 >> 6; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_length_en` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spec` [INFO] [stdout] --> src/console.rs:115:78 [INFO] [stdout] | [INFO] [stdout] 115 | let mut device = audio_subsystem.open_playback(None, &desired_spec, |spec| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_spec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/console.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | let mut log_timer = Instant::now(); [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/console.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | let mut run_time = Instant::now(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> src/console.rs:338:17 [INFO] [stdout] | [INFO] [stdout] 338 | Err(error) => match read(BOOT_ROM_PATH) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `log_timer` [INFO] [stdout] --> src/console.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | let mut log_timer = Instant::now(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_log_timer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `breakpoints` [INFO] [stdout] --> src/console.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | let breakpoints = [ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_breakpoints` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `reset` is never read [INFO] [stdout] --> src/console.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct GameBoy { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 45 | reset: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_carry_flags` is never used [INFO] [stdout] --> src/console/cpu.rs:635:8 [INFO] [stdout] | [INFO] [stdout] 41 | impl SharpSM83 { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 635 | fn set_carry_flags(&mut self, carry: bool, half_carry: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DMA` is never used [INFO] [stdout] --> src/console/ppu.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | const DMA: u16 = 0xFF46; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WIN_EN` is never used [INFO] [stdout] --> src/console/ppu.rs:39:7 [INFO] [stdout] | [INFO] [stdout] 39 | const WIN_EN: u8 = 1 << 5; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BGWIN_TILES` is never used [INFO] [stdout] --> src/console/ppu.rs:40:7 [INFO] [stdout] | [INFO] [stdout] 40 | const BGWIN_TILES: u8 = 1 << 4; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OBJ_EN` is never used [INFO] [stdout] --> src/console/ppu.rs:43:7 [INFO] [stdout] | [INFO] [stdout] 43 | const OBJ_EN: u8 = 1 << 1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LYC_INT_SEL` is never used [INFO] [stdout] --> src/console/ppu.rs:47:7 [INFO] [stdout] | [INFO] [stdout] 47 | const LYC_INT_SEL: u8 = 1 << 6; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `M2_INT_SEL` is never used [INFO] [stdout] --> src/console/ppu.rs:48:7 [INFO] [stdout] | [INFO] [stdout] 48 | const M2_INT_SEL: u8 = 1 << 5; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `M1_INT_SEL` is never used [INFO] [stdout] --> src/console/ppu.rs:49:7 [INFO] [stdout] | [INFO] [stdout] 49 | const M1_INT_SEL: u8 = 1 << 4; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `M0_INT_SEL` is never used [INFO] [stdout] --> src/console/ppu.rs:50:7 [INFO] [stdout] | [INFO] [stdout] 50 | const M0_INT_SEL: u8 = 1 << 3; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LYC_EQ_LY` is never used [INFO] [stdout] --> src/console/ppu.rs:51:7 [INFO] [stdout] | [INFO] [stdout] 51 | const LYC_EQ_LY: u8 = 1 << 2; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PPU_MODE` is never used [INFO] [stdout] --> src/console/ppu.rs:52:7 [INFO] [stdout] | [INFO] [stdout] 52 | const PPU_MODE: u8 = 0b11; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `palette` and `sprite_prio` are never read [INFO] [stdout] --> src/console/ppu.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 78 | struct Pixel { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 79 | pub color: u8, [INFO] [stdout] 80 | pub palette: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 81 | pub sprite_prio: u8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Pixel` 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 `dots` is never read [INFO] [stdout] --> src/console/ppu.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct PPU { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 97 | dots: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clear` is never used [INFO] [stdout] --> src/console/ppu.rs:398:8 [INFO] [stdout] | [INFO] [stdout] 123 | impl PPU { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 398 | fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `channel3_pos` is never read [INFO] [stdout] --> src/console/apu.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Apu { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 37 | channel3_pos: 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: unused variable: `spec` [INFO] [stdout] --> src/console.rs:115:78 [INFO] [stdout] | [INFO] [stdout] 115 | let mut device = audio_subsystem.open_playback(None, &desired_spec, |spec| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_spec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/console.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | let mut log_timer = Instant::now(); [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/console.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | let mut run_time = Instant::now(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> src/console.rs:338:17 [INFO] [stdout] | [INFO] [stdout] 338 | Err(error) => match read(BOOT_ROM_PATH) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `reset` is never read [INFO] [stdout] --> src/console.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct GameBoy { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 45 | reset: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_carry_flags` is never used [INFO] [stdout] --> src/console/cpu.rs:635:8 [INFO] [stdout] | [INFO] [stdout] 41 | impl SharpSM83 { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 635 | fn set_carry_flags(&mut self, carry: bool, half_carry: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DMA` is never used [INFO] [stdout] --> src/console/ppu.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | const DMA: u16 = 0xFF46; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WIN_EN` is never used [INFO] [stdout] --> src/console/ppu.rs:39:7 [INFO] [stdout] | [INFO] [stdout] 39 | const WIN_EN: u8 = 1 << 5; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BGWIN_TILES` is never used [INFO] [stdout] --> src/console/ppu.rs:40:7 [INFO] [stdout] | [INFO] [stdout] 40 | const BGWIN_TILES: u8 = 1 << 4; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OBJ_EN` is never used [INFO] [stdout] --> src/console/ppu.rs:43:7 [INFO] [stdout] | [INFO] [stdout] 43 | const OBJ_EN: u8 = 1 << 1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LYC_INT_SEL` is never used [INFO] [stdout] --> src/console/ppu.rs:47:7 [INFO] [stdout] | [INFO] [stdout] 47 | const LYC_INT_SEL: u8 = 1 << 6; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `M2_INT_SEL` is never used [INFO] [stdout] --> src/console/ppu.rs:48:7 [INFO] [stdout] | [INFO] [stdout] 48 | const M2_INT_SEL: u8 = 1 << 5; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `M1_INT_SEL` is never used [INFO] [stdout] --> src/console/ppu.rs:49:7 [INFO] [stdout] | [INFO] [stdout] 49 | const M1_INT_SEL: u8 = 1 << 4; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 43 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `M0_INT_SEL` is never used [INFO] [stdout] --> src/console/ppu.rs:50:7 [INFO] [stdout] | [INFO] [stdout] 50 | const M0_INT_SEL: u8 = 1 << 3; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LYC_EQ_LY` is never used [INFO] [stdout] --> src/console/ppu.rs:51:7 [INFO] [stdout] | [INFO] [stdout] 51 | const LYC_EQ_LY: u8 = 1 << 2; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PPU_MODE` is never used [INFO] [stdout] --> src/console/ppu.rs:52:7 [INFO] [stdout] | [INFO] [stdout] 52 | const PPU_MODE: u8 = 0b11; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `palette` and `sprite_prio` are never read [INFO] [stdout] --> src/console/ppu.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 78 | struct Pixel { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 79 | pub color: u8, [INFO] [stdout] 80 | pub palette: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 81 | pub sprite_prio: u8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Pixel` 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 `dots` is never read [INFO] [stdout] --> src/console/ppu.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct PPU { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 97 | dots: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clear` is never used [INFO] [stdout] --> src/console/ppu.rs:398:8 [INFO] [stdout] | [INFO] [stdout] 123 | impl PPU { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 398 | fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `channel3_pos` is never read [INFO] [stdout] --> src/console/apu.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Apu { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 37 | channel3_pos: 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: 43 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pc_ret` [INFO] [stdout] --> tests/cpu_test.rs:300:13 [INFO] [stdout] | [INFO] [stdout] 300 | let pc_ret = cpu.pc; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pc_ret` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Memory` is imported redundantly [INFO] [stdout] --> src/console/ppu.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::console::Memory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 2 | use crate::console::*; [INFO] [stdout] | ----------------- the item `Memory` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `IF` is imported redundantly [INFO] [stdout] --> src/console/ppu.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::console::*; [INFO] [stdout] | ----------------- the item `IF` is already imported here [INFO] [stdout] 3 | use super::regids::IF; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::pixels::Color` [INFO] [stdout] --> src/console/ppu.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use sdl2::pixels::Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Canvas` [INFO] [stdout] --> src/console/ppu.rs:6:29 [INFO] [stdout] | [INFO] [stdout] 6 | use sdl2::render::{Texture, Canvas}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Texture` is imported redundantly [INFO] [stdout] --> src/console/ppu.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::console::*; [INFO] [stdout] | ----------------- the item `Texture` is already imported here [INFO] [stdout] ... [INFO] [stdout] 6 | use sdl2::render::{Texture, Canvas}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::surface::Surface` [INFO] [stdout] --> src/console/ppu.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use sdl2::surface::Surface; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::video::Window` [INFO] [stdout] --> src/console/ppu.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use sdl2::video::Window; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::rect::Point` [INFO] [stdout] --> src/console/ppu.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use sdl2::rect::Point; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::regids::*` [INFO] [stdout] --> src/console/apu.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::regids::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AudioSpecDesired` [INFO] [stdout] --> src/console/apu.rs:5:34 [INFO] [stdout] | [INFO] [stdout] 5 | use sdl2::audio::{AudioCallback, AudioSpecDesired}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AudioCallback` is imported redundantly [INFO] [stdout] --> src/console/apu.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{bytes::u8_to_u16, console::*}; [INFO] [stdout] | ---------- the item `AudioCallback` is already imported here [INFO] [stdout] 4 | use super::regids::*; [INFO] [stdout] 5 | use sdl2::audio::{AudioCallback, AudioSpecDesired}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/console.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `max` [INFO] [stdout] --> src/console.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | use std::cmp::{min, max}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::audio::AudioCallback` [INFO] [stdout] --> src/console.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use sdl2::audio::AudioCallback; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Canvas`, `Texture` [INFO] [stdout] --> src/console.rs:29:20 [INFO] [stdout] | [INFO] [stdout] 29 | use sdl2::render::{Canvas, Texture}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::video::Window` [INFO] [stdout] --> src/console.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use sdl2::video::Window; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Memory` is imported redundantly [INFO] [stdout] --> src/console/ppu.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::console::Memory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 2 | use crate::console::*; [INFO] [stdout] | ----------------- the item `Memory` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `IF` is imported redundantly [INFO] [stdout] --> src/console/ppu.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::console::*; [INFO] [stdout] | ----------------- the item `IF` is already imported here [INFO] [stdout] 3 | use super::regids::IF; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::pixels::Color` [INFO] [stdout] --> src/console/ppu.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use sdl2::pixels::Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Canvas` [INFO] [stdout] --> src/console/ppu.rs:6:29 [INFO] [stdout] | [INFO] [stdout] 6 | use sdl2::render::{Texture, Canvas}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Texture` is imported redundantly [INFO] [stdout] --> src/console/ppu.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::console::*; [INFO] [stdout] | ----------------- the item `Texture` is already imported here [INFO] [stdout] ... [INFO] [stdout] 6 | use sdl2::render::{Texture, Canvas}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::surface::Surface` [INFO] [stdout] --> src/console/ppu.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use sdl2::surface::Surface; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::video::Window` [INFO] [stdout] --> src/console/ppu.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use sdl2::video::Window; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::rect::Point` [INFO] [stdout] --> src/console/ppu.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use sdl2::rect::Point; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::regids::*` [INFO] [stdout] --> src/console/apu.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::regids::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AudioSpecDesired` [INFO] [stdout] --> src/console/apu.rs:5:34 [INFO] [stdout] | [INFO] [stdout] 5 | use sdl2::audio::{AudioCallback, AudioSpecDesired}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AudioCallback` is imported redundantly [INFO] [stdout] --> src/console/apu.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{bytes::u8_to_u16, console::*}; [INFO] [stdout] | ---------- the item `AudioCallback` is already imported here [INFO] [stdout] 4 | use super::regids::*; [INFO] [stdout] 5 | use sdl2::audio::{AudioCallback, AudioSpecDesired}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/console.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `max` [INFO] [stdout] --> src/console.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | use std::cmp::{min, max}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::audio::AudioCallback` [INFO] [stdout] --> src/console.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use sdl2::audio::AudioCallback; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Canvas`, `Texture` [INFO] [stdout] --> src/console.rs:29:20 [INFO] [stdout] | [INFO] [stdout] 29 | use sdl2::render::{Canvas, Texture}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::video::Window` [INFO] [stdout] --> src/console.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use sdl2::video::Window; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pace` [INFO] [stdout] --> src/console/apu.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let pace = nr10 & 0b01110000 >> 4; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pace` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env_dir` [INFO] [stdout] --> src/console/apu.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let env_dir = nr12 & 0b00001000 >> 3; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_env_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sweep_pace` [INFO] [stdout] --> src/console/apu.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let sweep_pace = nr12 & 0b00000111; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sweep_pace` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `trigger` [INFO] [stdout] --> src/console/apu.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let trigger = nr14 & 0b10000000 >> 7; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_trigger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length_en` [INFO] [stdout] --> src/console/apu.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let length_en = nr14 & 0b01000000 >> 6; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_length_en` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `log_timer` [INFO] [stdout] --> src/console.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | let mut log_timer = Instant::now(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_log_timer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `breakpoints` [INFO] [stdout] --> src/console.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | let breakpoints = [ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_breakpoints` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pace` [INFO] [stdout] --> src/console/apu.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let pace = nr10 & 0b01110000 >> 4; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pace` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env_dir` [INFO] [stdout] --> src/console/apu.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let env_dir = nr12 & 0b00001000 >> 3; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_env_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sweep_pace` [INFO] [stdout] --> src/console/apu.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let sweep_pace = nr12 & 0b00000111; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sweep_pace` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `trigger` [INFO] [stdout] --> src/console/apu.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let trigger = nr14 & 0b10000000 >> 7; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_trigger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length_en` [INFO] [stdout] --> src/console/apu.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let length_en = nr14 & 0b01000000 >> 6; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_length_en` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spec` [INFO] [stdout] --> src/console.rs:115:78 [INFO] [stdout] | [INFO] [stdout] 115 | let mut device = audio_subsystem.open_playback(None, &desired_spec, |spec| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_spec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `log_timer` [INFO] [stdout] --> src/console.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | let mut log_timer = Instant::now(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_log_timer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `breakpoints` [INFO] [stdout] --> src/console.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | let breakpoints = [ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_breakpoints` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/console.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | let mut log_timer = Instant::now(); [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/console.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | let mut run_time = Instant::now(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> src/console.rs:338:17 [INFO] [stdout] | [INFO] [stdout] 338 | Err(error) => match read(BOOT_ROM_PATH) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spec` [INFO] [stdout] --> src/console.rs:115:78 [INFO] [stdout] | [INFO] [stdout] 115 | let mut device = audio_subsystem.open_playback(None, &desired_spec, |spec| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_spec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/console.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | let mut log_timer = Instant::now(); [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/console.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | let mut run_time = Instant::now(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> src/console.rs:338:17 [INFO] [stdout] | [INFO] [stdout] 338 | Err(error) => match read(BOOT_ROM_PATH) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `reset` is never read [INFO] [stdout] --> src/console.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct GameBoy { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 45 | reset: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_carry_flags` is never used [INFO] [stdout] --> src/console/cpu.rs:635:8 [INFO] [stdout] | [INFO] [stdout] 41 | impl SharpSM83 { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 635 | fn set_carry_flags(&mut self, carry: bool, half_carry: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DMA` is never used [INFO] [stdout] --> src/console/ppu.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | const DMA: u16 = 0xFF46; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WIN_EN` is never used [INFO] [stdout] --> src/console/ppu.rs:39:7 [INFO] [stdout] | [INFO] [stdout] 39 | const WIN_EN: u8 = 1 << 5; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BGWIN_TILES` is never used [INFO] [stdout] --> src/console/ppu.rs:40:7 [INFO] [stdout] | [INFO] [stdout] 40 | const BGWIN_TILES: u8 = 1 << 4; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OBJ_EN` is never used [INFO] [stdout] --> src/console/ppu.rs:43:7 [INFO] [stdout] | [INFO] [stdout] 43 | const OBJ_EN: u8 = 1 << 1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LYC_INT_SEL` is never used [INFO] [stdout] --> src/console/ppu.rs:47:7 [INFO] [stdout] | [INFO] [stdout] 47 | const LYC_INT_SEL: u8 = 1 << 6; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `M2_INT_SEL` is never used [INFO] [stdout] --> src/console/ppu.rs:48:7 [INFO] [stdout] | [INFO] [stdout] 48 | const M2_INT_SEL: u8 = 1 << 5; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `M1_INT_SEL` is never used [INFO] [stdout] --> src/console/ppu.rs:49:7 [INFO] [stdout] | [INFO] [stdout] 49 | const M1_INT_SEL: u8 = 1 << 4; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `M0_INT_SEL` is never used [INFO] [stdout] --> src/console/ppu.rs:50:7 [INFO] [stdout] | [INFO] [stdout] 50 | const M0_INT_SEL: u8 = 1 << 3; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LYC_EQ_LY` is never used [INFO] [stdout] --> src/console/ppu.rs:51:7 [INFO] [stdout] | [INFO] [stdout] 51 | const LYC_EQ_LY: u8 = 1 << 2; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PPU_MODE` is never used [INFO] [stdout] --> src/console/ppu.rs:52:7 [INFO] [stdout] | [INFO] [stdout] 52 | const PPU_MODE: u8 = 0b11; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `palette` and `sprite_prio` are never read [INFO] [stdout] --> src/console/ppu.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 78 | struct Pixel { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 79 | pub color: u8, [INFO] [stdout] 80 | pub palette: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 81 | pub sprite_prio: u8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Pixel` 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 `dots` is never read [INFO] [stdout] --> src/console/ppu.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct PPU { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 97 | dots: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clear` is never used [INFO] [stdout] --> src/console/ppu.rs:398:8 [INFO] [stdout] | [INFO] [stdout] 123 | impl PPU { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 398 | fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `channel3_pos` is never read [INFO] [stdout] --> src/console/apu.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Apu { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 37 | channel3_pos: 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: field `reset` is never read [INFO] [stdout] --> src/console.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct GameBoy { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 45 | reset: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_carry_flags` is never used [INFO] [stdout] --> src/console/cpu.rs:635:8 [INFO] [stdout] | [INFO] [stdout] 41 | impl SharpSM83 { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 635 | fn set_carry_flags(&mut self, carry: bool, half_carry: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DMA` is never used [INFO] [stdout] --> src/console/ppu.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | const DMA: u16 = 0xFF46; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WIN_EN` is never used [INFO] [stdout] --> src/console/ppu.rs:39:7 [INFO] [stdout] | [INFO] [stdout] 39 | const WIN_EN: u8 = 1 << 5; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BGWIN_TILES` is never used [INFO] [stdout] --> src/console/ppu.rs:40:7 [INFO] [stdout] | [INFO] [stdout] 40 | const BGWIN_TILES: u8 = 1 << 4; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OBJ_EN` is never used [INFO] [stdout] --> src/console/ppu.rs:43:7 [INFO] [stdout] | [INFO] [stdout] 43 | const OBJ_EN: u8 = 1 << 1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LYC_INT_SEL` is never used [INFO] [stdout] --> src/console/ppu.rs:47:7 [INFO] [stdout] | [INFO] [stdout] 47 | const LYC_INT_SEL: u8 = 1 << 6; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `M2_INT_SEL` is never used [INFO] [stdout] --> src/console/ppu.rs:48:7 [INFO] [stdout] | [INFO] [stdout] 48 | const M2_INT_SEL: u8 = 1 << 5; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `M1_INT_SEL` is never used [INFO] [stdout] --> src/console/ppu.rs:49:7 [INFO] [stdout] | [INFO] [stdout] 49 | const M1_INT_SEL: u8 = 1 << 4; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `M0_INT_SEL` is never used [INFO] [stdout] --> src/console/ppu.rs:50:7 [INFO] [stdout] | [INFO] [stdout] 50 | const M0_INT_SEL: u8 = 1 << 3; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LYC_EQ_LY` is never used [INFO] [stdout] --> src/console/ppu.rs:51:7 [INFO] [stdout] | [INFO] [stdout] 51 | const LYC_EQ_LY: u8 = 1 << 2; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PPU_MODE` is never used [INFO] [stdout] --> src/console/ppu.rs:52:7 [INFO] [stdout] | [INFO] [stdout] 52 | const PPU_MODE: u8 = 0b11; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `palette` and `sprite_prio` are never read [INFO] [stdout] --> src/console/ppu.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 78 | struct Pixel { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 79 | pub color: u8, [INFO] [stdout] 80 | pub palette: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 81 | pub sprite_prio: u8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Pixel` 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 `dots` is never read [INFO] [stdout] --> src/console/ppu.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct PPU { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 97 | dots: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clear` is never used [INFO] [stdout] --> src/console/ppu.rs:398:8 [INFO] [stdout] | [INFO] [stdout] 123 | impl PPU { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 398 | fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `channel3_pos` is never read [INFO] [stdout] --> src/console/apu.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Apu { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 37 | channel3_pos: 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: 43 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 43 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [optimized + debuginfo] target(s) in 7.77s [INFO] running `Command { std: "docker" "inspect" "bb30319ac271951b85eb76269cd3e75bbbc924618b09db329b3ef584877ad928", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb30319ac271951b85eb76269cd3e75bbbc924618b09db329b3ef584877ad928", kill_on_drop: false }` [INFO] [stdout] bb30319ac271951b85eb76269cd3e75bbbc924618b09db329b3ef584877ad928 [INFO] checking c-ola/cassowary-gb against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fc-ola%2Fcassowary-gb" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/c-ola/cassowary-gb on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/c-ola/cassowary-gb [INFO] finished tweaking git repo https://github.com/c-ola/cassowary-gb [INFO] tweaked toml for git repo https://github.com/c-ola/cassowary-gb written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/c-ola/cassowary-gb 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3f9cd6d7a3e0008725115a90d0bf57069d604e7a8ce19f993dfd83922c70d7b9 [INFO] running `Command { std: "docker" "start" "-a" "3f9cd6d7a3e0008725115a90d0bf57069d604e7a8ce19f993dfd83922c70d7b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3f9cd6d7a3e0008725115a90d0bf57069d604e7a8ce19f993dfd83922c70d7b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f9cd6d7a3e0008725115a90d0bf57069d604e7a8ce19f993dfd83922c70d7b9", kill_on_drop: false }` [INFO] [stdout] 3f9cd6d7a3e0008725115a90d0bf57069d604e7a8ce19f993dfd83922c70d7b9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1323c9b29923ee57f2d7578171989002e1c19d7893f837fa2542bb4b4611acae [INFO] running `Command { std: "docker" "start" "-a" "1323c9b29923ee57f2d7578171989002e1c19d7893f837fa2542bb4b4611acae", kill_on_drop: false }` [INFO] [stderr] Compiling version-compare v0.1.1 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Checking anstyle-query v1.0.0 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Checking anstyle v1.0.4 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking clap_lex v0.6.0 [INFO] [stderr] Compiling sdl2 v0.35.2 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling syn v2.0.31 [INFO] [stderr] Checking anstyle-parse v0.2.2 [INFO] [stderr] Checking anstream v0.6.4 [INFO] [stderr] Compiling sdl2-sys v0.35.2 [INFO] [stderr] Checking clap_builder v4.4.7 [INFO] [stderr] Compiling clap_derive v4.4.7 [INFO] [stderr] Checking clap v4.4.7 [INFO] [stderr] Checking cassowary-gb v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `Memory` is imported redundantly [INFO] [stdout] --> src/console/ppu.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::console::Memory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 2 | use crate::console::*; [INFO] [stdout] | ----------------- the item `Memory` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `IF` is imported redundantly [INFO] [stdout] --> src/console/ppu.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::console::*; [INFO] [stdout] | ----------------- the item `IF` is already imported here [INFO] [stdout] 3 | use super::regids::IF; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::pixels::Color` [INFO] [stdout] --> src/console/ppu.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use sdl2::pixels::Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Canvas` [INFO] [stdout] --> src/console/ppu.rs:6:29 [INFO] [stdout] | [INFO] [stdout] 6 | use sdl2::render::{Texture, Canvas}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Texture` is imported redundantly [INFO] [stdout] --> src/console/ppu.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::console::*; [INFO] [stdout] | ----------------- the item `Texture` is already imported here [INFO] [stdout] ... [INFO] [stdout] 6 | use sdl2::render::{Texture, Canvas}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::surface::Surface` [INFO] [stdout] --> src/console/ppu.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use sdl2::surface::Surface; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::video::Window` [INFO] [stdout] --> src/console/ppu.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use sdl2::video::Window; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::rect::Point` [INFO] [stdout] --> src/console/ppu.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use sdl2::rect::Point; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::regids::*` [INFO] [stdout] --> src/console/apu.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::regids::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AudioSpecDesired` [INFO] [stdout] --> src/console/apu.rs:5:34 [INFO] [stdout] | [INFO] [stdout] 5 | use sdl2::audio::{AudioCallback, AudioSpecDesired}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AudioCallback` is imported redundantly [INFO] [stdout] --> src/console/apu.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{bytes::u8_to_u16, console::*}; [INFO] [stdout] | ---------- the item `AudioCallback` is already imported here [INFO] [stdout] 4 | use super::regids::*; [INFO] [stdout] 5 | use sdl2::audio::{AudioCallback, AudioSpecDesired}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/console.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `max` [INFO] [stdout] --> src/console.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | use std::cmp::{min, max}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::audio::AudioCallback` [INFO] [stdout] --> src/console.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use sdl2::audio::AudioCallback; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Canvas`, `Texture` [INFO] [stdout] --> src/console.rs:29:20 [INFO] [stdout] | [INFO] [stdout] 29 | use sdl2::render::{Canvas, Texture}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::video::Window` [INFO] [stdout] --> src/console.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use sdl2::video::Window; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Memory` is imported redundantly [INFO] [stdout] --> src/console/ppu.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::console::Memory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 2 | use crate::console::*; [INFO] [stdout] | ----------------- the item `Memory` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `IF` is imported redundantly [INFO] [stdout] --> src/console/ppu.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::console::*; [INFO] [stdout] | ----------------- the item `IF` is already imported here [INFO] [stdout] 3 | use super::regids::IF; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::pixels::Color` [INFO] [stdout] --> src/console/ppu.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use sdl2::pixels::Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Canvas` [INFO] [stdout] --> src/console/ppu.rs:6:29 [INFO] [stdout] | [INFO] [stdout] 6 | use sdl2::render::{Texture, Canvas}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Texture` is imported redundantly [INFO] [stdout] --> src/console/ppu.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::console::*; [INFO] [stdout] | ----------------- the item `Texture` is already imported here [INFO] [stdout] ... [INFO] [stdout] 6 | use sdl2::render::{Texture, Canvas}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::surface::Surface` [INFO] [stdout] --> src/console/ppu.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use sdl2::surface::Surface; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::video::Window` [INFO] [stdout] --> src/console/ppu.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use sdl2::video::Window; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::rect::Point` [INFO] [stdout] --> src/console/ppu.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use sdl2::rect::Point; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::regids::*` [INFO] [stdout] --> src/console/apu.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::regids::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AudioSpecDesired` [INFO] [stdout] --> src/console/apu.rs:5:34 [INFO] [stdout] | [INFO] [stdout] 5 | use sdl2::audio::{AudioCallback, AudioSpecDesired}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AudioCallback` is imported redundantly [INFO] [stdout] --> src/console/apu.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{bytes::u8_to_u16, console::*}; [INFO] [stdout] | ---------- the item `AudioCallback` is already imported here [INFO] [stdout] 4 | use super::regids::*; [INFO] [stdout] 5 | use sdl2::audio::{AudioCallback, AudioSpecDesired}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/console.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `max` [INFO] [stdout] --> src/console.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | use std::cmp::{min, max}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::audio::AudioCallback` [INFO] [stdout] --> src/console.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use sdl2::audio::AudioCallback; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Canvas`, `Texture` [INFO] [stdout] --> src/console.rs:29:20 [INFO] [stdout] | [INFO] [stdout] 29 | use sdl2::render::{Canvas, Texture}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::video::Window` [INFO] [stdout] --> src/console.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use sdl2::video::Window; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pace` [INFO] [stdout] --> src/console/apu.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let pace = nr10 & 0b01110000 >> 4; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pace` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env_dir` [INFO] [stdout] --> src/console/apu.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let env_dir = nr12 & 0b00001000 >> 3; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_env_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sweep_pace` [INFO] [stdout] --> src/console/apu.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let sweep_pace = nr12 & 0b00000111; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sweep_pace` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `trigger` [INFO] [stdout] --> src/console/apu.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let trigger = nr14 & 0b10000000 >> 7; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_trigger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length_en` [INFO] [stdout] --> src/console/apu.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let length_en = nr14 & 0b01000000 >> 6; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_length_en` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `log_timer` [INFO] [stdout] --> src/console.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | let mut log_timer = Instant::now(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_log_timer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `breakpoints` [INFO] [stdout] --> src/console.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | let breakpoints = [ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_breakpoints` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pace` [INFO] [stdout] --> src/console/apu.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let pace = nr10 & 0b01110000 >> 4; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pace` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env_dir` [INFO] [stdout] --> src/console/apu.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let env_dir = nr12 & 0b00001000 >> 3; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_env_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sweep_pace` [INFO] [stdout] --> src/console/apu.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let sweep_pace = nr12 & 0b00000111; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sweep_pace` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `trigger` [INFO] [stdout] --> src/console/apu.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let trigger = nr14 & 0b10000000 >> 7; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_trigger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length_en` [INFO] [stdout] --> src/console/apu.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let length_en = nr14 & 0b01000000 >> 6; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_length_en` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spec` [INFO] [stdout] --> src/console.rs:115:78 [INFO] [stdout] | [INFO] [stdout] 115 | let mut device = audio_subsystem.open_playback(None, &desired_spec, |spec| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_spec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `log_timer` [INFO] [stdout] --> src/console.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | let mut log_timer = Instant::now(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_log_timer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `breakpoints` [INFO] [stdout] --> src/console.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | let breakpoints = [ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_breakpoints` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/console.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | let mut log_timer = Instant::now(); [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/console.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | let mut run_time = Instant::now(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> src/console.rs:338:17 [INFO] [stdout] | [INFO] [stdout] 338 | Err(error) => match read(BOOT_ROM_PATH) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spec` [INFO] [stdout] --> src/console.rs:115:78 [INFO] [stdout] | [INFO] [stdout] 115 | let mut device = audio_subsystem.open_playback(None, &desired_spec, |spec| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_spec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `reset` is never read [INFO] [stdout] --> src/console.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct GameBoy { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 45 | reset: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_carry_flags` is never used [INFO] [stdout] --> src/console/cpu.rs:635:8 [INFO] [stdout] | [INFO] [stdout] 41 | impl SharpSM83 { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 635 | fn set_carry_flags(&mut self, carry: bool, half_carry: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DMA` is never used [INFO] [stdout] --> src/console/ppu.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | const DMA: u16 = 0xFF46; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WIN_EN` is never used [INFO] [stdout] --> src/console/ppu.rs:39:7 [INFO] [stdout] | [INFO] [stdout] 39 | const WIN_EN: u8 = 1 << 5; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BGWIN_TILES` is never used [INFO] [stdout] --> src/console/ppu.rs:40:7 [INFO] [stdout] | [INFO] [stdout] 40 | const BGWIN_TILES: u8 = 1 << 4; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OBJ_EN` is never used [INFO] [stdout] --> src/console/ppu.rs:43:7 [INFO] [stdout] | [INFO] [stdout] 43 | const OBJ_EN: u8 = 1 << 1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LYC_INT_SEL` is never used [INFO] [stdout] --> src/console/ppu.rs:47:7 [INFO] [stdout] | [INFO] [stdout] 47 | const LYC_INT_SEL: u8 = 1 << 6; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `M2_INT_SEL` is never used [INFO] [stdout] --> src/console/ppu.rs:48:7 [INFO] [stdout] | [INFO] [stdout] 48 | const M2_INT_SEL: u8 = 1 << 5; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `M1_INT_SEL` is never used [INFO] [stdout] --> src/console/ppu.rs:49:7 [INFO] [stdout] | [INFO] [stdout] 49 | const M1_INT_SEL: u8 = 1 << 4; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `M0_INT_SEL` is never used [INFO] [stdout] --> src/console/ppu.rs:50:7 [INFO] [stdout] | [INFO] [stdout] 50 | const M0_INT_SEL: u8 = 1 << 3; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LYC_EQ_LY` is never used [INFO] [stdout] --> src/console/ppu.rs:51:7 [INFO] [stdout] | [INFO] [stdout] 51 | const LYC_EQ_LY: u8 = 1 << 2; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PPU_MODE` is never used [INFO] [stdout] --> src/console/ppu.rs:52:7 [INFO] [stdout] | [INFO] [stdout] 52 | const PPU_MODE: u8 = 0b11; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `palette` and `sprite_prio` are never read [INFO] [stdout] --> src/console/ppu.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 78 | struct Pixel { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 79 | pub color: u8, [INFO] [stdout] 80 | pub palette: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 81 | pub sprite_prio: u8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Pixel` 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 `dots` is never read [INFO] [stdout] --> src/console/ppu.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct PPU { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 97 | dots: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clear` is never used [INFO] [stdout] --> src/console/ppu.rs:398:8 [INFO] [stdout] | [INFO] [stdout] 123 | impl PPU { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 398 | fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `channel3_pos` is never read [INFO] [stdout] --> src/console/apu.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Apu { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 37 | channel3_pos: 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: variable does not need to be mutable [INFO] [stdout] --> src/console.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | let mut log_timer = Instant::now(); [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/console.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | let mut run_time = Instant::now(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> src/console.rs:338:17 [INFO] [stdout] | [INFO] [stdout] 338 | Err(error) => match read(BOOT_ROM_PATH) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `reset` is never read [INFO] [stdout] --> src/console.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct GameBoy { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 45 | reset: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_carry_flags` is never used [INFO] [stdout] --> src/console/cpu.rs:635:8 [INFO] [stdout] | [INFO] [stdout] 41 | impl SharpSM83 { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 635 | fn set_carry_flags(&mut self, carry: bool, half_carry: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DMA` is never used [INFO] [stdout] --> src/console/ppu.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | const DMA: u16 = 0xFF46; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WIN_EN` is never used [INFO] [stdout] --> src/console/ppu.rs:39:7 [INFO] [stdout] | [INFO] [stdout] 39 | const WIN_EN: u8 = 1 << 5; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BGWIN_TILES` is never used [INFO] [stdout] --> src/console/ppu.rs:40:7 [INFO] [stdout] | [INFO] [stdout] 40 | const BGWIN_TILES: u8 = 1 << 4; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OBJ_EN` is never used [INFO] [stdout] --> src/console/ppu.rs:43:7 [INFO] [stdout] | [INFO] [stdout] 43 | const OBJ_EN: u8 = 1 << 1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LYC_INT_SEL` is never used [INFO] [stdout] --> src/console/ppu.rs:47:7 [INFO] [stdout] | [INFO] [stdout] 47 | const LYC_INT_SEL: u8 = 1 << 6; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `M2_INT_SEL` is never used [INFO] [stdout] --> src/console/ppu.rs:48:7 [INFO] [stdout] | [INFO] [stdout] 48 | const M2_INT_SEL: u8 = 1 << 5; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `M1_INT_SEL` is never used [INFO] [stdout] --> src/console/ppu.rs:49:7 [INFO] [stdout] | [INFO] [stdout] 49 | const M1_INT_SEL: u8 = 1 << 4; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `M0_INT_SEL` is never used [INFO] [stdout] --> src/console/ppu.rs:50:7 [INFO] [stdout] | [INFO] [stdout] 50 | const M0_INT_SEL: u8 = 1 << 3; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LYC_EQ_LY` is never used [INFO] [stdout] --> src/console/ppu.rs:51:7 [INFO] [stdout] | [INFO] [stdout] 51 | const LYC_EQ_LY: u8 = 1 << 2; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PPU_MODE` is never used [INFO] [stdout] --> src/console/ppu.rs:52:7 [INFO] [stdout] | [INFO] [stdout] 52 | const PPU_MODE: u8 = 0b11; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `palette` and `sprite_prio` are never read [INFO] [stdout] --> src/console/ppu.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 78 | struct Pixel { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 79 | pub color: u8, [INFO] [stdout] 80 | pub palette: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 81 | pub sprite_prio: u8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Pixel` 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 `dots` is never read [INFO] [stdout] --> src/console/ppu.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct PPU { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 97 | dots: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clear` is never used [INFO] [stdout] --> src/console/ppu.rs:398:8 [INFO] [stdout] | [INFO] [stdout] 123 | impl PPU { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 398 | fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `channel3_pos` is never read [INFO] [stdout] --> src/console/apu.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Apu { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 37 | channel3_pos: 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: 43 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 43 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Memory` is imported redundantly [INFO] [stdout] --> src/console/ppu.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::console::Memory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 2 | use crate::console::*; [INFO] [stdout] | ----------------- the item `Memory` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `IF` is imported redundantly [INFO] [stdout] --> src/console/ppu.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::console::*; [INFO] [stdout] | ----------------- the item `IF` is already imported here [INFO] [stdout] 3 | use super::regids::IF; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::pixels::Color` [INFO] [stdout] --> src/console/ppu.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use sdl2::pixels::Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Canvas` [INFO] [stdout] --> src/console/ppu.rs:6:29 [INFO] [stdout] | [INFO] [stdout] 6 | use sdl2::render::{Texture, Canvas}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Texture` is imported redundantly [INFO] [stdout] --> src/console/ppu.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::console::*; [INFO] [stdout] | ----------------- the item `Texture` is already imported here [INFO] [stdout] ... [INFO] [stdout] 6 | use sdl2::render::{Texture, Canvas}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::surface::Surface` [INFO] [stdout] --> src/console/ppu.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use sdl2::surface::Surface; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::video::Window` [INFO] [stdout] --> src/console/ppu.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use sdl2::video::Window; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::rect::Point` [INFO] [stdout] --> src/console/ppu.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use sdl2::rect::Point; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::regids::*` [INFO] [stdout] --> src/console/apu.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::regids::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AudioSpecDesired` [INFO] [stdout] --> src/console/apu.rs:5:34 [INFO] [stdout] | [INFO] [stdout] 5 | use sdl2::audio::{AudioCallback, AudioSpecDesired}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AudioCallback` is imported redundantly [INFO] [stdout] --> src/console/apu.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{bytes::u8_to_u16, console::*}; [INFO] [stdout] | ---------- the item `AudioCallback` is already imported here [INFO] [stdout] 4 | use super::regids::*; [INFO] [stdout] 5 | use sdl2::audio::{AudioCallback, AudioSpecDesired}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/console.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `max` [INFO] [stdout] --> src/console.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | use std::cmp::{min, max}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::audio::AudioCallback` [INFO] [stdout] --> src/console.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use sdl2::audio::AudioCallback; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Canvas`, `Texture` [INFO] [stdout] --> src/console.rs:29:20 [INFO] [stdout] | [INFO] [stdout] 29 | use sdl2::render::{Canvas, Texture}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::video::Window` [INFO] [stdout] --> src/console.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use sdl2::video::Window; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Memory` is imported redundantly [INFO] [stdout] --> src/console/ppu.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::console::Memory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 2 | use crate::console::*; [INFO] [stdout] | ----------------- the item `Memory` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `IF` is imported redundantly [INFO] [stdout] --> src/console/ppu.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::console::*; [INFO] [stdout] | ----------------- the item `IF` is already imported here [INFO] [stdout] 3 | use super::regids::IF; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::pixels::Color` [INFO] [stdout] --> src/console/ppu.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use sdl2::pixels::Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Canvas` [INFO] [stdout] --> src/console/ppu.rs:6:29 [INFO] [stdout] | [INFO] [stdout] 6 | use sdl2::render::{Texture, Canvas}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Texture` is imported redundantly [INFO] [stdout] --> src/console/ppu.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::console::*; [INFO] [stdout] | ----------------- the item `Texture` is already imported here [INFO] [stdout] ... [INFO] [stdout] 6 | use sdl2::render::{Texture, Canvas}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::surface::Surface` [INFO] [stdout] --> src/console/ppu.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use sdl2::surface::Surface; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::video::Window` [INFO] [stdout] --> src/console/ppu.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use sdl2::video::Window; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::rect::Point` [INFO] [stdout] --> src/console/ppu.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use sdl2::rect::Point; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::regids::*` [INFO] [stdout] --> src/console/apu.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::regids::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AudioSpecDesired` [INFO] [stdout] --> src/console/apu.rs:5:34 [INFO] [stdout] | [INFO] [stdout] 5 | use sdl2::audio::{AudioCallback, AudioSpecDesired}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AudioCallback` is imported redundantly [INFO] [stdout] --> src/console/apu.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{bytes::u8_to_u16, console::*}; [INFO] [stdout] | ---------- the item `AudioCallback` is already imported here [INFO] [stdout] 4 | use super::regids::*; [INFO] [stdout] 5 | use sdl2::audio::{AudioCallback, AudioSpecDesired}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/console.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `max` [INFO] [stdout] --> src/console.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | use std::cmp::{min, max}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::audio::AudioCallback` [INFO] [stdout] --> src/console.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use sdl2::audio::AudioCallback; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Canvas`, `Texture` [INFO] [stdout] --> src/console.rs:29:20 [INFO] [stdout] | [INFO] [stdout] 29 | use sdl2::render::{Canvas, Texture}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::video::Window` [INFO] [stdout] --> src/console.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use sdl2::video::Window; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pc_ret` [INFO] [stdout] --> tests/cpu_test.rs:300:13 [INFO] [stdout] | [INFO] [stdout] 300 | let pc_ret = cpu.pc; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pc_ret` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pace` [INFO] [stdout] --> src/console/apu.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let pace = nr10 & 0b01110000 >> 4; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pace` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env_dir` [INFO] [stdout] --> src/console/apu.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let env_dir = nr12 & 0b00001000 >> 3; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_env_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sweep_pace` [INFO] [stdout] --> src/console/apu.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let sweep_pace = nr12 & 0b00000111; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sweep_pace` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `trigger` [INFO] [stdout] --> src/console/apu.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let trigger = nr14 & 0b10000000 >> 7; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_trigger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length_en` [INFO] [stdout] --> src/console/apu.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let length_en = nr14 & 0b01000000 >> 6; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_length_en` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `log_timer` [INFO] [stdout] --> src/console.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | let mut log_timer = Instant::now(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_log_timer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `breakpoints` [INFO] [stdout] --> src/console.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | let breakpoints = [ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_breakpoints` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spec` [INFO] [stdout] --> src/console.rs:115:78 [INFO] [stdout] | [INFO] [stdout] 115 | let mut device = audio_subsystem.open_playback(None, &desired_spec, |spec| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_spec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/console.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | let mut log_timer = Instant::now(); [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/console.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | let mut run_time = Instant::now(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> src/console.rs:338:17 [INFO] [stdout] | [INFO] [stdout] 338 | Err(error) => match read(BOOT_ROM_PATH) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `reset` is never read [INFO] [stdout] --> src/console.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct GameBoy { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 45 | reset: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_carry_flags` is never used [INFO] [stdout] --> src/console/cpu.rs:635:8 [INFO] [stdout] | [INFO] [stdout] 41 | impl SharpSM83 { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 635 | fn set_carry_flags(&mut self, carry: bool, half_carry: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DMA` is never used [INFO] [stdout] --> src/console/ppu.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | const DMA: u16 = 0xFF46; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WIN_EN` is never used [INFO] [stdout] --> src/console/ppu.rs:39:7 [INFO] [stdout] | [INFO] [stdout] 39 | const WIN_EN: u8 = 1 << 5; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BGWIN_TILES` is never used [INFO] [stdout] --> src/console/ppu.rs:40:7 [INFO] [stdout] | [INFO] [stdout] 40 | const BGWIN_TILES: u8 = 1 << 4; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OBJ_EN` is never used [INFO] [stdout] --> src/console/ppu.rs:43:7 [INFO] [stdout] | [INFO] [stdout] 43 | const OBJ_EN: u8 = 1 << 1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LYC_INT_SEL` is never used [INFO] [stdout] --> src/console/ppu.rs:47:7 [INFO] [stdout] | [INFO] [stdout] 47 | const LYC_INT_SEL: u8 = 1 << 6; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `M2_INT_SEL` is never used [INFO] [stdout] --> src/console/ppu.rs:48:7 [INFO] [stdout] | [INFO] [stdout] 48 | const M2_INT_SEL: u8 = 1 << 5; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `M1_INT_SEL` is never used [INFO] [stdout] --> src/console/ppu.rs:49:7 [INFO] [stdout] | [INFO] [stdout] 49 | const M1_INT_SEL: u8 = 1 << 4; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `M0_INT_SEL` is never used [INFO] [stdout] --> src/console/ppu.rs:50:7 [INFO] [stdout] | [INFO] [stdout] 50 | const M0_INT_SEL: u8 = 1 << 3; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LYC_EQ_LY` is never used [INFO] [stdout] --> src/console/ppu.rs:51:7 [INFO] [stdout] | [INFO] [stdout] 51 | const LYC_EQ_LY: u8 = 1 << 2; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PPU_MODE` is never used [INFO] [stdout] --> src/console/ppu.rs:52:7 [INFO] [stdout] | [INFO] [stdout] 52 | const PPU_MODE: u8 = 0b11; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `palette` and `sprite_prio` are never read [INFO] [stdout] --> src/console/ppu.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 78 | struct Pixel { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 79 | pub color: u8, [INFO] [stdout] 80 | pub palette: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 81 | pub sprite_prio: u8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Pixel` 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 `dots` is never read [INFO] [stdout] --> src/console/ppu.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct PPU { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 97 | dots: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clear` is never used [INFO] [stdout] --> src/console/ppu.rs:398:8 [INFO] [stdout] | [INFO] [stdout] 123 | impl PPU { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 398 | fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `channel3_pos` is never read [INFO] [stdout] --> src/console/apu.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Apu { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 37 | channel3_pos: 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: 43 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pace` [INFO] [stdout] --> src/console/apu.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let pace = nr10 & 0b01110000 >> 4; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pace` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env_dir` [INFO] [stdout] --> src/console/apu.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let env_dir = nr12 & 0b00001000 >> 3; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_env_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sweep_pace` [INFO] [stdout] --> src/console/apu.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let sweep_pace = nr12 & 0b00000111; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sweep_pace` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `trigger` [INFO] [stdout] --> src/console/apu.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let trigger = nr14 & 0b10000000 >> 7; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_trigger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length_en` [INFO] [stdout] --> src/console/apu.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let length_en = nr14 & 0b01000000 >> 6; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_length_en` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `log_timer` [INFO] [stdout] --> src/console.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | let mut log_timer = Instant::now(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_log_timer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `breakpoints` [INFO] [stdout] --> src/console.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | let breakpoints = [ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_breakpoints` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spec` [INFO] [stdout] --> src/console.rs:115:78 [INFO] [stdout] | [INFO] [stdout] 115 | let mut device = audio_subsystem.open_playback(None, &desired_spec, |spec| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_spec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/console.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | let mut log_timer = Instant::now(); [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/console.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | let mut run_time = Instant::now(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> src/console.rs:338:17 [INFO] [stdout] | [INFO] [stdout] 338 | Err(error) => match read(BOOT_ROM_PATH) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `reset` is never read [INFO] [stdout] --> src/console.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct GameBoy { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 45 | reset: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_carry_flags` is never used [INFO] [stdout] --> src/console/cpu.rs:635:8 [INFO] [stdout] | [INFO] [stdout] 41 | impl SharpSM83 { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 635 | fn set_carry_flags(&mut self, carry: bool, half_carry: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DMA` is never used [INFO] [stdout] --> src/console/ppu.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | const DMA: u16 = 0xFF46; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WIN_EN` is never used [INFO] [stdout] --> src/console/ppu.rs:39:7 [INFO] [stdout] | [INFO] [stdout] 39 | const WIN_EN: u8 = 1 << 5; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BGWIN_TILES` is never used [INFO] [stdout] --> src/console/ppu.rs:40:7 [INFO] [stdout] | [INFO] [stdout] 40 | const BGWIN_TILES: u8 = 1 << 4; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OBJ_EN` is never used [INFO] [stdout] --> src/console/ppu.rs:43:7 [INFO] [stdout] | [INFO] [stdout] 43 | const OBJ_EN: u8 = 1 << 1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LYC_INT_SEL` is never used [INFO] [stdout] --> src/console/ppu.rs:47:7 [INFO] [stdout] | [INFO] [stdout] 47 | const LYC_INT_SEL: u8 = 1 << 6; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `M2_INT_SEL` is never used [INFO] [stdout] --> src/console/ppu.rs:48:7 [INFO] [stdout] | [INFO] [stdout] 48 | const M2_INT_SEL: u8 = 1 << 5; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `M1_INT_SEL` is never used [INFO] [stdout] --> src/console/ppu.rs:49:7 [INFO] [stdout] | [INFO] [stdout] 49 | const M1_INT_SEL: u8 = 1 << 4; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `M0_INT_SEL` is never used [INFO] [stdout] --> src/console/ppu.rs:50:7 [INFO] [stdout] | [INFO] [stdout] 50 | const M0_INT_SEL: u8 = 1 << 3; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LYC_EQ_LY` is never used [INFO] [stdout] --> src/console/ppu.rs:51:7 [INFO] [stdout] | [INFO] [stdout] 51 | const LYC_EQ_LY: u8 = 1 << 2; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PPU_MODE` is never used [INFO] [stdout] --> src/console/ppu.rs:52:7 [INFO] [stdout] | [INFO] [stdout] 52 | const PPU_MODE: u8 = 0b11; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `palette` and `sprite_prio` are never read [INFO] [stdout] --> src/console/ppu.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 78 | struct Pixel { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 79 | pub color: u8, [INFO] [stdout] 80 | pub palette: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 81 | pub sprite_prio: u8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Pixel` 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 `dots` is never read [INFO] [stdout] --> src/console/ppu.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct PPU { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 97 | dots: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clear` is never used [INFO] [stdout] --> src/console/ppu.rs:398:8 [INFO] [stdout] | [INFO] [stdout] 123 | impl PPU { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 398 | fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `channel3_pos` is never read [INFO] [stdout] --> src/console/apu.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Apu { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 37 | channel3_pos: 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: 43 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [optimized + debuginfo] target(s) in 6.02s [INFO] running `Command { std: "docker" "inspect" "1323c9b29923ee57f2d7578171989002e1c19d7893f837fa2542bb4b4611acae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1323c9b29923ee57f2d7578171989002e1c19d7893f837fa2542bb4b4611acae", kill_on_drop: false }` [INFO] [stdout] 1323c9b29923ee57f2d7578171989002e1c19d7893f837fa2542bb4b4611acae