[INFO] cloning repository https://github.com/simon-whitehead/chemboy
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/simon-whitehead/chemboy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsimon-whitehead%2Fchemboy", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsimon-whitehead%2Fchemboy'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] e811a9e6fc616d610367907b30a5aaaefd2f88a9
[INFO] testing simon-whitehead/chemboy against try#0abe69e6c16114311cc2700e972492e64d69c28f for pr-154065-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsimon-whitehead%2Fchemboy" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/simon-whitehead/chemboy
[INFO] finished tweaking git repo https://github.com/simon-whitehead/chemboy
[INFO] tweaked toml for git repo https://github.com/simon-whitehead/chemboy written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/simon-whitehead/chemboy on toolchain 0abe69e6c16114311cc2700e972492e64d69c28f
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/simon-whitehead/chemboy 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" "+0abe69e6c16114311cc2700e972492e64d69c28f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 7af6bdd8335072d309b21d3e40d257776c50c520b4bffed75094839e3bc61f04
[INFO] running `Command { std: "docker" "start" "-a" "7af6bdd8335072d309b21d3e40d257776c50c520b4bffed75094839e3bc61f04", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "7af6bdd8335072d309b21d3e40d257776c50c520b4bffed75094839e3bc61f04", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7af6bdd8335072d309b21d3e40d257776c50c520b4bffed75094839e3bc61f04", kill_on_drop: false }`
[INFO] [stdout] 7af6bdd8335072d309b21d3e40d257776c50c520b4bffed75094839e3bc61f04
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] a5b728c702afeef307c5d589b92ea1db9a7478523cc4c3d28a0cf27ef2c05522
[INFO] running `Command { std: "docker" "start" "-a" "a5b728c702afeef307c5d589b92ea1db9a7478523cc4c3d28a0cf27ef2c05522", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.178
[INFO] [stderr]    Compiling log v0.4.29
[INFO] [stderr]    Compiling xml-rs v0.8.28
[INFO] [stderr]    Compiling xml-rs v0.7.0
[INFO] [stderr]    Compiling proc-macro2 v0.4.30
[INFO] [stderr]    Compiling khronos_api v3.1.0
[INFO] [stderr]    Compiling syn v2.0.111
[INFO] [stderr]    Compiling piston-float v1.0.1
[INFO] [stderr]    Compiling piston-viewport v1.0.2
[INFO] [stderr]    Compiling cfg-if v0.1.3
[INFO] [stderr]    Compiling find-msvc-tools v0.1.5
[INFO] [stderr]    Compiling flate2 v1.1.5
[INFO] [stderr]    Compiling cc v1.2.50
[INFO] [stderr]    Compiling zerocopy v0.8.31
[INFO] [stderr]    Compiling fdeflate v0.3.7
[INFO] [stderr]    Compiling wayland-scanner v0.29.5
[INFO] [stderr]    Compiling quote v0.6.13
[INFO] [stderr]    Compiling memoffset v0.5.6
[INFO] [stderr]    Compiling crossbeam-utils v0.7.2
[INFO] [stderr]    Compiling gl_generator v0.14.0
[INFO] [stderr]    Compiling serde v1.0.66
[INFO] [stderr]    Compiling bytemuck v1.24.0
[INFO] [stderr]    Compiling syn v0.14.2
[INFO] [stderr]    Compiling wayland-scanner v0.23.6
[INFO] [stderr]    Compiling crossbeam-epoch v0.8.2
[INFO] [stderr]    Compiling either v1.5.0
[INFO] [stderr]    Compiling anyhow v1.0.100
[INFO] [stderr]    Compiling nix v0.24.3
[INFO] [stderr]    Compiling libloading v0.5.0
[INFO] [stderr]    Compiling wayland-client v0.29.5
[INFO] [stderr]    Compiling num-bigint v0.4.6
[INFO] [stderr]    Compiling piston-graphics_api_version v1.0.1
[INFO] [stderr]    Compiling as-slice v0.2.1
[INFO] [stderr]    Compiling slotmap v1.1.1
[INFO] [stderr]    Compiling dlib v0.4.1
[INFO] [stderr]    Compiling rayon v1.11.0
[INFO] [stderr]    Compiling built v0.8.0
[INFO] [stderr]    Compiling av-scenechange v0.14.1
[INFO] [stderr]    Compiling stb_truetype v0.3.1
[INFO] [stderr]    Compiling serde_derive v1.0.66
[INFO] [stderr]    Compiling wayland-commons v0.29.5
[INFO] [stderr]    Compiling num-rational v0.4.2
[INFO] [stderr]    Compiling rav1e v0.8.1
[INFO] [stderr]    Compiling wayland-client v0.23.6
[INFO] [stderr]    Compiling nix v0.14.1
[INFO] [stderr]    Compiling wayland-sys v0.23.6
[INFO] [stderr]    Compiling crossbeam-deque v0.7.4
[INFO] [stderr]    Compiling aligned v0.4.3
[INFO] [stderr]    Compiling wayland-protocols v0.29.5
[INFO] [stderr]    Compiling num_cpus v1.8.0
[INFO] [stderr]    Compiling core2 v0.4.0
[INFO] [stderr]    Compiling nom v8.0.0
[INFO] [stderr]    Compiling approx v0.3.2
[INFO] [stderr]    Compiling ordered-float v1.1.1
[INFO] [stderr]    Compiling quick-error v2.0.1
[INFO] [stderr]    Compiling pastey v0.1.1
[INFO] [stderr]    Compiling linked-hash-map v0.5.1
[INFO] [stderr]    Compiling y4m v0.8.0
[INFO] [stderr]    Compiling rusttype v0.8.3
[INFO] [stderr]    Compiling quick-xml v0.22.0
[INFO] [stderr]    Compiling equator-macro v0.4.2
[INFO] [stderr]    Compiling zerocopy-derive v0.8.31
[INFO] [stderr]    Compiling thiserror-impl v2.0.17
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling equator v0.4.2
[INFO] [stderr]    Compiling aligned-vec v0.6.4
[INFO] [stderr]    Compiling v_frame v0.3.9
[INFO] [stderr]    Compiling profiling-procmacros v1.0.17
[INFO] [stderr]    Compiling arg_enum_proc_macro v0.3.4
[INFO] [stderr]    Compiling profiling v1.0.17
[INFO] [stderr]    Compiling thiserror v2.0.17
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling wayland-commons v0.23.6
[INFO] [stderr]    Compiling maybe-rayon v0.1.1
[INFO] [stderr]    Compiling num-derive v0.4.2
[INFO] [stderr]    Compiling pistoncore-input v1.0.1
[INFO] [stderr]    Compiling fax_derive v0.2.0
[INFO] [stderr]    Compiling bitstream-io v4.9.0
[INFO] [stderr]    Compiling av1-grain v0.2.5
[INFO] [stderr]    Compiling wayland-protocols v0.23.6
[INFO] [stderr]    Compiling nix v0.25.1
[INFO] [stderr]    Compiling itertools v0.14.0
[INFO] [stderr]    Compiling vecmath v1.0.0
[INFO] [stderr]    Compiling simd_helpers v0.1.0
[INFO] [stderr]    Compiling num-traits v0.1.43
[INFO] [stderr]    Compiling read_color v1.0.0
[INFO] [stderr]    Compiling zune-core v0.4.12
[INFO] [stderr]    Compiling weezl v0.1.12
[INFO] [stderr]    Compiling half v2.7.1
[INFO] [stderr]    Compiling ttf-parser v0.15.2
[INFO] [stderr]    Compiling new_debug_unreachable v1.0.6
[INFO] [stderr]    Compiling imgref v1.12.0
[INFO] [stderr]    Compiling noop_proc_macro v0.3.0
[INFO] [stderr]    Compiling tiny-skia-path v0.8.4
[INFO] [stderr]    Compiling loop9 v0.1.5
[INFO] [stderr]    Compiling xcb v0.10.1
[INFO] [stderr]    Compiling wayland-cursor v0.29.5
[INFO] [stderr]    Compiling zune-jpeg v0.4.21
[INFO] [stderr]    Compiling line_drawing v0.7.0
[INFO] [stderr]    Compiling calloop v0.10.6
[INFO] [stderr]    Compiling pistoncore-window v1.0.0
[INFO] [stderr]    Compiling fax v0.2.6
[INFO] [stderr]    Compiling x11-dl v2.21.0
[INFO] [stderr]    Compiling rusttype v0.7.9
[INFO] [stderr]    Compiling memmap2 v0.5.10
[INFO] [stderr]    Compiling glutin_egl_sys v0.5.1
[INFO] [stderr]    Compiling owned_ttf_parser v0.15.2
[INFO] [stderr]    Compiling glutin_glx_sys v0.4.0
[INFO] [stderr]    Compiling png v0.17.16
[INFO] [stderr]    Compiling avif-serialize v0.8.6
[INFO] [stderr]    Compiling zune-inflate v0.2.54
[INFO] [stderr]    Compiling wayland-sys v0.30.1
[INFO] [stderr]    Compiling pxfm v0.1.27
[INFO] [stderr]    Compiling draw_state v0.8.0
[INFO] [stderr]    Compiling num-bigint v0.3.3
[INFO] [stderr]    Compiling xdg v2.5.2
[INFO] [stderr]    Compiling rgb v0.8.52
[INFO] [stderr]    Compiling zune-core v0.5.0
[INFO] [stderr]    Compiling piston-texture v0.9.0
[INFO] [stderr]    Compiling bit_field v0.10.3
[INFO] [stderr]    Compiling lebe v0.5.3
[INFO] [stderr]    Compiling byteorder-lite v0.1.0
[INFO] [stderr]    Compiling exr v1.74.0
[INFO] [stderr]    Compiling image-webp v0.2.4
[INFO] [stderr]    Compiling tiny-skia v0.8.4
[INFO] [stderr]    Compiling zune-jpeg v0.5.7
[INFO] [stderr]    Compiling moxcms v0.7.11
[INFO] [stderr]    Compiling ravif v0.12.0
[INFO] [stderr]    Compiling andrew v0.2.1
[INFO] [stderr]    Compiling png v0.18.0
[INFO] [stderr]    Compiling gif v0.14.1
[INFO] [stderr]    Compiling gfx_core v0.9.2
[INFO] [stderr]    Compiling rusttype v0.9.3
[INFO] [stderr]    Compiling tiff v0.10.3
[INFO] [stderr]    Compiling winit v0.28.7
[INFO] [stderr]    Compiling memmap v0.7.0
[INFO] [stderr]    Compiling glutin v0.30.10
[INFO] [stderr]    Compiling qoi v0.4.1
[INFO] [stderr]    Compiling gl_generator v0.13.1
[INFO] [stderr]    Compiling num-rational v0.3.2
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling spin_sleep v1.3.3
[INFO] [stderr]    Compiling interpolation v0.3.0
[INFO] [stderr]    Compiling gl v0.13.0
[INFO] [stderr]    Compiling shader_version v0.7.0
[INFO] [stderr]    Compiling mio v0.8.11
[INFO] [stderr]    Compiling glutin-winit v0.3.0
[INFO] [stderr]    Compiling gfx_gl v0.6.1
[INFO] [stderr]    Compiling petgraph v0.4.12
[INFO] [stderr]    Compiling image v0.25.9
[INFO] [stderr]    Compiling smithay-client-toolkit v0.6.6
[INFO] [stderr]    Compiling x11-clipboard v0.5.3
[INFO] [stderr]    Compiling smithay-client-toolkit v0.16.1
[INFO] [stderr]    Compiling smithay-clipboard v0.4.0
[INFO] [stderr]    Compiling sctk-adwaita v0.5.4
[INFO] [stderr]    Compiling gfx v0.18.3
[INFO] [stderr]    Compiling getrandom v0.2.16
[INFO] [stderr]    Compiling gl v0.14.0
[INFO] [stderr]    Compiling num-iter v0.1.45
[INFO] [stderr]    Compiling num-complex v0.3.1
[INFO] [stderr]    Compiling piston-shaders_graphics2d v0.4.0
[INFO] [stderr]    Compiling num v0.3.1
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling piston-gfx_texture v0.45.0
[INFO] [stderr]    Compiling copypasta v0.6.3
[INFO] [stderr]    Compiling daggy v0.5.0
[INFO] [stderr]    Compiling piston2d-graphics v0.44.0
[INFO] [stderr]    Compiling pistoncore-event_loop v1.0.0
[INFO] [stderr]    Compiling ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling interpolation v0.2.0
[INFO] [stderr]    Compiling piston-texture v0.8.0
[INFO] [stderr]    Compiling piston2d-graphics v0.40.0
[INFO] [stderr]    Compiling piston2d-gfx_graphics v0.81.0
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling textwrap v0.9.0
[INFO] [stderr]    Compiling piston v1.0.0
[INFO] [stderr]    Compiling pistoncore-glutin_window v0.72.0
[INFO] [stderr]    Compiling gfx_device_gl v0.16.2
[INFO] [stderr]    Compiling conrod_derive v0.76.1
[INFO] [stderr]    Compiling piston2d-graphics v0.45.0
[INFO] [stderr]    Compiling pistoncore-event_loop v0.55.0
[INFO] [stderr]    Compiling conrod_core v0.76.1
[INFO] [stderr]    Compiling atty v0.2.10
[INFO] [stderr]    Compiling strsim v0.7.0
[INFO] [stderr]    Compiling piston2d-opengl_graphics v0.89.0
[INFO] [stderr]    Compiling clap v2.31.2
[INFO] [stderr]    Compiling piston v0.55.0
[INFO] [stderr]    Compiling piston_window v0.132.0
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling find_folder v0.3.0
[INFO] [stderr]    Compiling conrod_piston v0.76.1
[INFO] [stderr]    Compiling chemboy v0.0.1 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused `#[macro_use]` import
[INFO] [stdout]  --> src/lib.rs:4:1
[INFO] [stdout]   |
[INFO] [stdout] 4 | #[macro_use]
[INFO] [stdout]   | ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self::disassembled_line::DisassembledLine`
[INFO] [stdout]  --> src/gameboy/disassembler/mod.rs:4:9
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub use self::disassembled_line::DisassembledLine;
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std`
[INFO] [stdout]  --> src/gameboy/gfx/gpu.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std;
[INFO] [stdout]   |     ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Interconnect`
[INFO] [stdout]  --> src/gameboy/gfx/gpu.rs:6:15
[INFO] [stdout]   |
[INFO] [stdout] 6 | use gameboy::{Interconnect, Interrupt, Irq, Memory};
[INFO] [stdout]   |               ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `TileRenderOptions` and `TileRenderType`
[INFO] [stdout]   --> src/gameboy/gfx/mod.rs:17:33
[INFO] [stdout]    |
[INFO] [stdout] 17 | use self::tile_render_options::{TileRenderOptions, TileRenderType};
[INFO] [stdout]    |                                 ^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Range`
[INFO] [stdout]  --> src/gameboy/mbc/mbc.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::ops::Range;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Range`
[INFO] [stdout]  --> src/gameboy/mbc/mbc0.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::ops::Range;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around match arm expression
[INFO] [stdout]    --> src/gameboy/memory_map.rs:107:30
[INFO] [stdout]     |
[INFO] [stdout] 107 |         IO_START..=IO_END => (virtual_address - IO_START),
[INFO] [stdout]     |                              ^                          ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 107 -         IO_START..=IO_END => (virtual_address - IO_START),
[INFO] [stdout] 107 +         IO_START..=IO_END => virtual_address - IO_START ,
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around match arm expression
[INFO] [stdout]    --> src/gameboy/memory_map.rs:108:34
[INFO] [stdout]     |
[INFO] [stdout] 108 |         ZRAM_START..=ZRAM_END => (virtual_address - ZRAM_START),
[INFO] [stdout]     |                                  ^                            ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 108 -         ZRAM_START..=ZRAM_END => (virtual_address - ZRAM_START),
[INFO] [stdout] 108 +         ZRAM_START..=ZRAM_END => virtual_address - ZRAM_START ,
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary trailing semicolon
[INFO] [stdout]   --> src/gameboy/registers.rs:88:47
[INFO] [stdout]    |
[INFO] [stdout] 88 |         println!("DE: {:02X}", self.get_de());;
[INFO] [stdout]    |                                               ^ help: remove this semicolon
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary trailing semicolon
[INFO] [stdout]   --> src/gameboy/registers.rs:89:47
[INFO] [stdout]    |
[INFO] [stdout] 89 |         println!("HL: {:02X}", self.get_hl());;
[INFO] [stdout]    |                                               ^ help: remove this semicolon
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Interconnect`
[INFO] [stdout]  --> src/gameboy/timer.rs:2:31
[INFO] [stdout]   |
[INFO] [stdout] 2 | use gameboy::{MAX_CPU_CYCLES, Interconnect, Irq, Interrupt};
[INFO] [stdout]   |                               ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self::macros::*`
[INFO] [stdout]   --> src/gameboy/mod.rs:34:9
[INFO] [stdout]    |
[INFO] [stdout] 34 | pub use self::macros::*;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/gameboy/interconnect.rs:224:9
[INFO] [stdout]     |
[INFO] [stdout] 223 |         panic!("CALLED, APPARENTLY");
[INFO] [stdout]     |         ---------------------------- any code following this expression is unreachable
[INFO] [stdout] 224 |         let cart = self.cart.as_ref().expect("Cartridge is empty");
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]    --> src/gameboy/cpu.rs:732:17
[INFO] [stdout]     |
[INFO] [stdout] 732 |                 _ => {
[INFO] [stdout]     |                 ^ no value can reach this
[INFO] [stdout]     |
[INFO] [stdout] note: multiple earlier patterns match some of the same values
[INFO] [stdout]    --> src/gameboy/cpu.rs:732:17
[INFO] [stdout]     |
[INFO] [stdout] 474 |                 0x00 => self.rlc_b(),
[INFO] [stdout]     |                 ---- matches some of the same values
[INFO] [stdout] 475 |                 0x01 => self.rlc_c(),
[INFO] [stdout]     |                 ---- matches some of the same values
[INFO] [stdout] 476 |                 0x02 => self.rlc_d(),
[INFO] [stdout]     |                 ---- matches some of the same values
[INFO] [stdout] 477 |                 0x03 => self.rlc_e(),
[INFO] [stdout]     |                 ---- matches some of the same values
[INFO] [stdout] ...
[INFO] [stdout] 732 |                 _ => {
[INFO] [stdout]     |                 ^ ...and 252 other patterns collectively make this unreachable
[INFO] [stdout]     = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `operand`
[INFO] [stdout]    --> src/gameboy/cpu.rs:468:17
[INFO] [stdout]     |
[INFO] [stdout] 468 |             let operand = self.get_operand_from_opcode(interconnect, &opcode);
[INFO] [stdout]     |                 ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_operand`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `above_background`
[INFO] [stdout]    --> src/gameboy/gfx/gpu.rs:234:21
[INFO] [stdout]     |
[INFO] [stdout] 234 |                 let above_background = attributes & 0x80 == 0x00;
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_above_background`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple ranges are one apart
[INFO] [stdout]    --> src/gameboy/interconnect.rs:153:21
[INFO] [stdout]     |
[INFO] [stdout] 153 |                     0x40..0x46 => self.gpu.write_u8(a, byte),
[INFO] [stdout]     |                     ^^^^^^^^^^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     this range doesn't match `70_u16` because `..` is an exclusive range
[INFO] [stdout]     |                     help: use an inclusive range instead: `64_u16..=70_u16`
[INFO] [stdout] 154 |                     0x47..0x4A => self.gpu.write_u8(a, byte),
[INFO] [stdout]     |                     ---------- this could appear to continue range `64_u16..70_u16`, but `70_u16` isn't matched by either of them
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_contiguous_range_endpoints)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `a`
[INFO] [stdout]    --> src/gameboy/interconnect.rs:168:46
[INFO] [stdout]     |
[INFO] [stdout] 168 |             Address::InterruptEnableRegister(a) => self.irq.enable_flag = byte,
[INFO] [stdout]     |                                              ^ help: if this is intentional, prefix it with an underscore: `_a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple ranges are one apart
[INFO] [stdout]    --> src/gameboy/interconnect.rs:210:21
[INFO] [stdout]     |
[INFO] [stdout] 210 |                     0x40..0x46 => self.gpu.read_u8(a),
[INFO] [stdout]     |                     ^^^^^^^^^^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     this range doesn't match `70_u16` because `..` is an exclusive range
[INFO] [stdout]     |                     help: use an inclusive range instead: `64_u16..=70_u16`
[INFO] [stdout] 211 |                     0x47..0x4A => self.gpu.read_u8(a),
[INFO] [stdout]     |                     ---------- this could appear to continue range `64_u16..70_u16`, but `70_u16` isn't matched by either of them
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `a`
[INFO] [stdout]    --> src/gameboy/interconnect.rs:217:46
[INFO] [stdout]     |
[INFO] [stdout] 217 |             Address::InterruptEnableRegister(a) => self.irq.enable_flag,
[INFO] [stdout]     |                                              ^ help: if this is intentional, prefix it with an underscore: `_a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `r`
[INFO] [stdout]    --> src/gameboy/interconnect.rs:222:30
[INFO] [stdout]     |
[INFO] [stdout] 222 |     pub fn read_bytes(&self, r: Range<u16>) -> &[u8] {
[INFO] [stdout]     |                              ^ help: if this is intentional, prefix it with an underscore: `_r`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `bytes`
[INFO] [stdout]    --> src/gameboy/interconnect.rs:248:46
[INFO] [stdout]     |
[INFO] [stdout] 248 |     pub fn write_bytes(&mut self, addr: u16, bytes: &[u8]) {
[INFO] [stdout]     |                                              ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `cart`
[INFO] [stdout]    --> src/gameboy/interconnect.rs:249:13
[INFO] [stdout]     |
[INFO] [stdout] 249 |         let cart = self.cart.as_mut().expect("Cartridge is empty");
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_cart`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addr`
[INFO] [stdout]   --> src/gameboy/mbc/mbc0.rs:45:32
[INFO] [stdout]    |
[INFO] [stdout] 45 |     fn write_ram_u8(&mut self, addr: u16, b: u8) {
[INFO] [stdout]    |                                ^^^^ help: if this is intentional, prefix it with an underscore: `_addr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `b`
[INFO] [stdout]   --> src/gameboy/mbc/mbc0.rs:45:43
[INFO] [stdout]    |
[INFO] [stdout] 45 |     fn write_ram_u8(&mut self, addr: u16, b: u8) {
[INFO] [stdout]    |                                           ^ help: if this is intentional, prefix it with an underscore: `_b`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addr`
[INFO] [stdout]   --> src/gameboy/mbc/mbc0.rs:49:32
[INFO] [stdout]    |
[INFO] [stdout] 49 |     fn write_rom_u8(&mut self, addr: u16, b: u8) {
[INFO] [stdout]    |                                ^^^^ help: if this is intentional, prefix it with an underscore: `_addr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `b`
[INFO] [stdout]   --> src/gameboy/mbc/mbc0.rs:49:43
[INFO] [stdout]    |
[INFO] [stdout] 49 |     fn write_rom_u8(&mut self, addr: u16, b: u8) {
[INFO] [stdout]    |                                           ^ help: if this is intentional, prefix it with an underscore: `_b`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/gameboy/memory_map.rs:96:9
[INFO] [stdout]    |
[INFO] [stdout] 96 |         _ => panic!("Address {:#X} outside valid memory.", virtual_address),
[INFO] [stdout]    |         ^ no value can reach this
[INFO] [stdout]    |
[INFO] [stdout] note: multiple earlier patterns match some of the same values
[INFO] [stdout]   --> src/gameboy/memory_map.rs:96:9
[INFO] [stdout]    |
[INFO] [stdout] 80 |         CART_ROM_START..=CART_ROM_END => Address::CartRom(virtual_address - CART_ROM_START),
[INFO] [stdout]    |         ----------------------------- matches some of the same values
[INFO] [stdout] 81 |         CART_RAM_START..=CART_RAM_END => Address::CartRam(virtual_address - CART_RAM_START),
[INFO] [stdout]    |         ----------------------------- matches some of the same values
[INFO] [stdout] 82 |         GFX_RAM_START..=GFX_RAM_END => Address::Gfx(virtual_address - GFX_RAM_START),
[INFO] [stdout]    |         --------------------------- matches some of the same values
[INFO] [stdout] 83 |         RAM_START..=RAM_END => Address::Ram(virtual_address - RAM_START),
[INFO] [stdout]    |         ------------------- matches some of the same values
[INFO] [stdout] ...
[INFO] [stdout] 96 |         _ => panic!("Address {:#X} outside valid memory.", virtual_address),
[INFO] [stdout]    |         ^ ...and 6 other patterns collectively make this unreachable
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]    --> src/gameboy/memory_map.rs:112:9
[INFO] [stdout]     |
[INFO] [stdout] 112 |         _ => panic!("Address {:#X} outside valid memory.", virtual_address),
[INFO] [stdout]     |         ^ no value can reach this
[INFO] [stdout]     |
[INFO] [stdout] note: multiple earlier patterns match some of the same values
[INFO] [stdout]    --> src/gameboy/memory_map.rs:112:9
[INFO] [stdout]     |
[INFO] [stdout] 102 |         CART_RAM_START..=CART_RAM_END => virtual_address - CART_RAM_START,
[INFO] [stdout]     |         ----------------------------- matches some of the same values
[INFO] [stdout] 103 |         CART_ROM_START..=CART_ROM_END => virtual_address - CART_ROM_START,
[INFO] [stdout]     |         ----------------------------- matches some of the same values
[INFO] [stdout] 104 |         GFX_RAM_START..=GFX_RAM_END => virtual_address - GFX_RAM_START,
[INFO] [stdout]     |         --------------------------- matches some of the same values
[INFO] [stdout] 105 |         RAM_START..=RAM_END => virtual_address - RAM_START,
[INFO] [stdout]     |         ------------------- matches some of the same values
[INFO] [stdout] ...
[INFO] [stdout] 112 |         _ => panic!("Address {:#X} outside valid memory.", virtual_address),
[INFO] [stdout]     |         ^ ...and 6 other patterns collectively make this unreachable
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CART_MEM_SIZE` is never used
[INFO] [stdout]  --> src/gameboy/cartridge.rs:5:7
[INFO] [stdout]   |
[INFO] [stdout] 5 | const CART_MEM_SIZE: usize = 0x200000;
[INFO] [stdout]   |       ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CART_RAM_SIZE` is never used
[INFO] [stdout]  --> src/gameboy/cartridge.rs:6:7
[INFO] [stdout]   |
[INFO] [stdout] 6 | const CART_RAM_SIZE: usize = 0x8000;
[INFO] [stdout]   |       ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `rom_code_size` is never read
[INFO] [stdout]   --> src/gameboy/cartridge.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub struct Cartridge {
[INFO] [stdout]    |            --------- field in this struct
[INFO] [stdout] 14 |     rom_code_size: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `any_interrupt_pending` is never used
[INFO] [stdout]    --> src/gameboy/cpu.rs:169:8
[INFO] [stdout]     |
[INFO] [stdout]  20 | impl Cpu {
[INFO] [stdout]     | -------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 169 |     fn any_interrupt_pending(interconnect: &Interconnect) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DisassembledLine` is never constructed
[INFO] [stdout]  --> src/gameboy/disassembler/disassembled_line.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct DisassembledLine {
[INFO] [stdout]   |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `counter` is never read
[INFO] [stdout]   --> src/gameboy/gfx/gpu.rs:35:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct Gpu {
[INFO] [stdout]    |            --- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 35 |     counter: u8,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `BIOS_START` is never used
[INFO] [stdout]  --> src/gameboy/memory_map.rs:6:7
[INFO] [stdout]   |
[INFO] [stdout] 6 | const BIOS_START: u16 = 0x0000;
[INFO] [stdout]   |       ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `BIOS_END` is never used
[INFO] [stdout]  --> src/gameboy/memory_map.rs:7:7
[INFO] [stdout]   |
[INFO] [stdout] 7 | const BIOS_END: u16 = 0x00FF;
[INFO] [stdout]   |       ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CART_HEADER_START` is never used
[INFO] [stdout]  --> src/gameboy/memory_map.rs:9:7
[INFO] [stdout]   |
[INFO] [stdout] 9 | const CART_HEADER_START: u16 = 0x0100;
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CART_HEADER_END` is never used
[INFO] [stdout]   --> src/gameboy/memory_map.rs:10:7
[INFO] [stdout]    |
[INFO] [stdout] 10 | const CART_HEADER_END: u16 = 0x014F;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Bios`, `CartHeader`, `CartRomOtherBank`, and `ExternalRam` are never constructed
[INFO] [stdout]   --> src/gameboy/memory_map.rs:39:5
[INFO] [stdout]    |
[INFO] [stdout] 38 | pub enum Address {
[INFO] [stdout]    |          ------- variants in this enum
[INFO] [stdout] 39 |     Bios(u8),
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 40 |     CartRom(u16),
[INFO] [stdout] 41 |     CartHeader(u16),
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 42 |     CartRam(u16),
[INFO] [stdout] 43 |     CartRomOtherBank(u16),
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 44 |     Gfx(u16),
[INFO] [stdout] 45 |     ExternalRam(u16),
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `map_address_unwrap` is never used
[INFO] [stdout]    --> src/gameboy/memory_map.rs:100:8
[INFO] [stdout]     |
[INFO] [stdout] 100 | pub fn map_address_unwrap(virtual_address: u16) -> u16 {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `OAM_interrupt_enabled` should have a snake case name
[INFO] [stdout]  --> src/gameboy/gfx/stat.rs:6:9
[INFO] [stdout]   |
[INFO] [stdout] 6 |     pub OAM_interrupt_enabled: bool,
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `oam_interrupt_enabled`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `VBlank_interrupt_enabled` should have a snake case name
[INFO] [stdout]  --> src/gameboy/gfx/stat.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 7 |     pub VBlank_interrupt_enabled: bool,
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `vblank_interrupt_enabled`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `HBlank_interrupt_enabled` should have a snake case name
[INFO] [stdout]  --> src/gameboy/gfx/stat.rs:8:9
[INFO] [stdout]   |
[INFO] [stdout] 8 |     pub HBlank_interrupt_enabled: bool,
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `hblank_interrupt_enabled`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `core::num::<impl u8>::wrapping_add` that must be used
[INFO] [stdout]   --> src/gameboy/timer.rs:79:17
[INFO] [stdout]    |
[INFO] [stdout] 79 |                 self.tima.wrapping_add(0x01);
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this returns the result of the operation, without modifying the original
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 79 |                 let _ = self.tima.wrapping_add(0x01);
[INFO] [stdout]    |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `#[macro_use]` import
[INFO] [stdout]  --> src/main.rs:3:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | #[macro_use]
[INFO] [stdout]   | ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `piston_window::OpenGL`
[INFO] [stdout]   --> src/main.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | use piston_window::OpenGL;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self::disassembled_line::DisassembledLine`
[INFO] [stdout]  --> src/gameboy/disassembler/mod.rs:4:9
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub use self::disassembled_line::DisassembledLine;
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std`
[INFO] [stdout]  --> src/gameboy/gfx/gpu.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std;
[INFO] [stdout]   |     ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Interconnect`
[INFO] [stdout]  --> src/gameboy/gfx/gpu.rs:6:15
[INFO] [stdout]   |
[INFO] [stdout] 6 | use gameboy::{Interconnect, Interrupt, Irq, Memory};
[INFO] [stdout]   |               ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `TileRenderOptions` and `TileRenderType`
[INFO] [stdout]   --> src/gameboy/gfx/mod.rs:17:33
[INFO] [stdout]    |
[INFO] [stdout] 17 | use self::tile_render_options::{TileRenderOptions, TileRenderType};
[INFO] [stdout]    |                                 ^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Range`
[INFO] [stdout]  --> src/gameboy/mbc/mbc.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::ops::Range;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Range`
[INFO] [stdout]  --> src/gameboy/mbc/mbc0.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::ops::Range;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around match arm expression
[INFO] [stdout]    --> src/gameboy/memory_map.rs:107:30
[INFO] [stdout]     |
[INFO] [stdout] 107 |         IO_START..=IO_END => (virtual_address - IO_START),
[INFO] [stdout]     |                              ^                          ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 107 -         IO_START..=IO_END => (virtual_address - IO_START),
[INFO] [stdout] 107 +         IO_START..=IO_END => virtual_address - IO_START ,
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around match arm expression
[INFO] [stdout]    --> src/gameboy/memory_map.rs:108:34
[INFO] [stdout]     |
[INFO] [stdout] 108 |         ZRAM_START..=ZRAM_END => (virtual_address - ZRAM_START),
[INFO] [stdout]     |                                  ^                            ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 108 -         ZRAM_START..=ZRAM_END => (virtual_address - ZRAM_START),
[INFO] [stdout] 108 +         ZRAM_START..=ZRAM_END => virtual_address - ZRAM_START ,
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary trailing semicolon
[INFO] [stdout]   --> src/gameboy/registers.rs:88:47
[INFO] [stdout]    |
[INFO] [stdout] 88 |         println!("DE: {:02X}", self.get_de());;
[INFO] [stdout]    |                                               ^ help: remove this semicolon
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary trailing semicolon
[INFO] [stdout]   --> src/gameboy/registers.rs:89:47
[INFO] [stdout]    |
[INFO] [stdout] 89 |         println!("HL: {:02X}", self.get_hl());;
[INFO] [stdout]    |                                               ^ help: remove this semicolon
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Interconnect`
[INFO] [stdout]  --> src/gameboy/timer.rs:2:31
[INFO] [stdout]   |
[INFO] [stdout] 2 | use gameboy::{MAX_CPU_CYCLES, Interconnect, Irq, Interrupt};
[INFO] [stdout]   |                               ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self::macros::*`
[INFO] [stdout]   --> src/gameboy/mod.rs:34:9
[INFO] [stdout]    |
[INFO] [stdout] 34 | pub use self::macros::*;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused label
[INFO] [stdout]   --> src/main.rs:86:5
[INFO] [stdout]    |
[INFO] [stdout] 86 |     'start: while let Some(e) = window.next() {
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_labels)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/gameboy/interconnect.rs:224:9
[INFO] [stdout]     |
[INFO] [stdout] 223 |         panic!("CALLED, APPARENTLY");
[INFO] [stdout]     |         ---------------------------- any code following this expression is unreachable
[INFO] [stdout] 224 |         let cart = self.cart.as_ref().expect("Cartridge is empty");
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]    --> src/gameboy/cpu.rs:732:17
[INFO] [stdout]     |
[INFO] [stdout] 732 |                 _ => {
[INFO] [stdout]     |                 ^ no value can reach this
[INFO] [stdout]     |
[INFO] [stdout] note: multiple earlier patterns match some of the same values
[INFO] [stdout]    --> src/gameboy/cpu.rs:732:17
[INFO] [stdout]     |
[INFO] [stdout] 474 |                 0x00 => self.rlc_b(),
[INFO] [stdout]     |                 ---- matches some of the same values
[INFO] [stdout] 475 |                 0x01 => self.rlc_c(),
[INFO] [stdout]     |                 ---- matches some of the same values
[INFO] [stdout] 476 |                 0x02 => self.rlc_d(),
[INFO] [stdout]     |                 ---- matches some of the same values
[INFO] [stdout] 477 |                 0x03 => self.rlc_e(),
[INFO] [stdout]     |                 ---- matches some of the same values
[INFO] [stdout] ...
[INFO] [stdout] 732 |                 _ => {
[INFO] [stdout]     |                 ^ ...and 252 other patterns collectively make this unreachable
[INFO] [stdout]     = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `operand`
[INFO] [stdout]    --> src/gameboy/cpu.rs:468:17
[INFO] [stdout]     |
[INFO] [stdout] 468 |             let operand = self.get_operand_from_opcode(interconnect, &opcode);
[INFO] [stdout]     |                 ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_operand`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `above_background`
[INFO] [stdout]    --> src/gameboy/gfx/gpu.rs:234:21
[INFO] [stdout]     |
[INFO] [stdout] 234 |                 let above_background = attributes & 0x80 == 0x00;
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_above_background`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple ranges are one apart
[INFO] [stdout]    --> src/gameboy/interconnect.rs:153:21
[INFO] [stdout]     |
[INFO] [stdout] 153 |                     0x40..0x46 => self.gpu.write_u8(a, byte),
[INFO] [stdout]     |                     ^^^^^^^^^^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     this range doesn't match `70_u16` because `..` is an exclusive range
[INFO] [stdout]     |                     help: use an inclusive range instead: `64_u16..=70_u16`
[INFO] [stdout] 154 |                     0x47..0x4A => self.gpu.write_u8(a, byte),
[INFO] [stdout]     |                     ---------- this could appear to continue range `64_u16..70_u16`, but `70_u16` isn't matched by either of them
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_contiguous_range_endpoints)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `a`
[INFO] [stdout]    --> src/gameboy/interconnect.rs:168:46
[INFO] [stdout]     |
[INFO] [stdout] 168 |             Address::InterruptEnableRegister(a) => self.irq.enable_flag = byte,
[INFO] [stdout]     |                                              ^ help: if this is intentional, prefix it with an underscore: `_a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple ranges are one apart
[INFO] [stdout]    --> src/gameboy/interconnect.rs:210:21
[INFO] [stdout]     |
[INFO] [stdout] 210 |                     0x40..0x46 => self.gpu.read_u8(a),
[INFO] [stdout]     |                     ^^^^^^^^^^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     this range doesn't match `70_u16` because `..` is an exclusive range
[INFO] [stdout]     |                     help: use an inclusive range instead: `64_u16..=70_u16`
[INFO] [stdout] 211 |                     0x47..0x4A => self.gpu.read_u8(a),
[INFO] [stdout]     |                     ---------- this could appear to continue range `64_u16..70_u16`, but `70_u16` isn't matched by either of them
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `a`
[INFO] [stdout]    --> src/gameboy/interconnect.rs:217:46
[INFO] [stdout]     |
[INFO] [stdout] 217 |             Address::InterruptEnableRegister(a) => self.irq.enable_flag,
[INFO] [stdout]     |                                              ^ help: if this is intentional, prefix it with an underscore: `_a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `r`
[INFO] [stdout]    --> src/gameboy/interconnect.rs:222:30
[INFO] [stdout]     |
[INFO] [stdout] 222 |     pub fn read_bytes(&self, r: Range<u16>) -> &[u8] {
[INFO] [stdout]     |                              ^ help: if this is intentional, prefix it with an underscore: `_r`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `bytes`
[INFO] [stdout]    --> src/gameboy/interconnect.rs:248:46
[INFO] [stdout]     |
[INFO] [stdout] 248 |     pub fn write_bytes(&mut self, addr: u16, bytes: &[u8]) {
[INFO] [stdout]     |                                              ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `cart`
[INFO] [stdout]    --> src/gameboy/interconnect.rs:249:13
[INFO] [stdout]     |
[INFO] [stdout] 249 |         let cart = self.cart.as_mut().expect("Cartridge is empty");
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_cart`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addr`
[INFO] [stdout]   --> src/gameboy/mbc/mbc0.rs:45:32
[INFO] [stdout]    |
[INFO] [stdout] 45 |     fn write_ram_u8(&mut self, addr: u16, b: u8) {
[INFO] [stdout]    |                                ^^^^ help: if this is intentional, prefix it with an underscore: `_addr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `b`
[INFO] [stdout]   --> src/gameboy/mbc/mbc0.rs:45:43
[INFO] [stdout]    |
[INFO] [stdout] 45 |     fn write_ram_u8(&mut self, addr: u16, b: u8) {
[INFO] [stdout]    |                                           ^ help: if this is intentional, prefix it with an underscore: `_b`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addr`
[INFO] [stdout]   --> src/gameboy/mbc/mbc0.rs:49:32
[INFO] [stdout]    |
[INFO] [stdout] 49 |     fn write_rom_u8(&mut self, addr: u16, b: u8) {
[INFO] [stdout]    |                                ^^^^ help: if this is intentional, prefix it with an underscore: `_addr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `b`
[INFO] [stdout]   --> src/gameboy/mbc/mbc0.rs:49:43
[INFO] [stdout]    |
[INFO] [stdout] 49 |     fn write_rom_u8(&mut self, addr: u16, b: u8) {
[INFO] [stdout]    |                                           ^ help: if this is intentional, prefix it with an underscore: `_b`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/gameboy/memory_map.rs:96:9
[INFO] [stdout]    |
[INFO] [stdout] 96 |         _ => panic!("Address {:#X} outside valid memory.", virtual_address),
[INFO] [stdout]    |         ^ no value can reach this
[INFO] [stdout]    |
[INFO] [stdout] note: multiple earlier patterns match some of the same values
[INFO] [stdout]   --> src/gameboy/memory_map.rs:96:9
[INFO] [stdout]    |
[INFO] [stdout] 80 |         CART_ROM_START..=CART_ROM_END => Address::CartRom(virtual_address - CART_ROM_START),
[INFO] [stdout]    |         ----------------------------- matches some of the same values
[INFO] [stdout] 81 |         CART_RAM_START..=CART_RAM_END => Address::CartRam(virtual_address - CART_RAM_START),
[INFO] [stdout]    |         ----------------------------- matches some of the same values
[INFO] [stdout] 82 |         GFX_RAM_START..=GFX_RAM_END => Address::Gfx(virtual_address - GFX_RAM_START),
[INFO] [stdout]    |         --------------------------- matches some of the same values
[INFO] [stdout] 83 |         RAM_START..=RAM_END => Address::Ram(virtual_address - RAM_START),
[INFO] [stdout]    |         ------------------- matches some of the same values
[INFO] [stdout] ...
[INFO] [stdout] 96 |         _ => panic!("Address {:#X} outside valid memory.", virtual_address),
[INFO] [stdout]    |         ^ ...and 6 other patterns collectively make this unreachable
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]    --> src/gameboy/memory_map.rs:112:9
[INFO] [stdout]     |
[INFO] [stdout] 112 |         _ => panic!("Address {:#X} outside valid memory.", virtual_address),
[INFO] [stdout]     |         ^ no value can reach this
[INFO] [stdout]     |
[INFO] [stdout] note: multiple earlier patterns match some of the same values
[INFO] [stdout]    --> src/gameboy/memory_map.rs:112:9
[INFO] [stdout]     |
[INFO] [stdout] 102 |         CART_RAM_START..=CART_RAM_END => virtual_address - CART_RAM_START,
[INFO] [stdout]     |         ----------------------------- matches some of the same values
[INFO] [stdout] 103 |         CART_ROM_START..=CART_ROM_END => virtual_address - CART_ROM_START,
[INFO] [stdout]     |         ----------------------------- matches some of the same values
[INFO] [stdout] 104 |         GFX_RAM_START..=GFX_RAM_END => virtual_address - GFX_RAM_START,
[INFO] [stdout]     |         --------------------------- matches some of the same values
[INFO] [stdout] 105 |         RAM_START..=RAM_END => virtual_address - RAM_START,
[INFO] [stdout]     |         ------------------- matches some of the same values
[INFO] [stdout] ...
[INFO] [stdout] 112 |         _ => panic!("Address {:#X} outside valid memory.", virtual_address),
[INFO] [stdout]     |         ^ ...and 6 other patterns collectively make this unreachable
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:70:9
[INFO] [stdout]    |
[INFO] [stdout] 70 |     let mut factory = window.factory.clone();
[INFO] [stdout]    |         ----^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `factory`
[INFO] [stdout]   --> src/main.rs:70:9
[INFO] [stdout]    |
[INFO] [stdout] 70 |     let mut factory = window.factory.clone();
[INFO] [stdout]    |         ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_factory`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `debugger_enabled`
[INFO] [stdout]    --> src/main.rs:154:31
[INFO] [stdout]     |
[INFO] [stdout] 154 | fn create_window<S>(title: S, debugger_enabled: bool) -> PistonWindow
[INFO] [stdout]     |                               ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_debugger_enabled`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CART_MEM_SIZE` is never used
[INFO] [stdout]  --> src/gameboy/cartridge.rs:5:7
[INFO] [stdout]   |
[INFO] [stdout] 5 | const CART_MEM_SIZE: usize = 0x200000;
[INFO] [stdout]   |       ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CART_RAM_SIZE` is never used
[INFO] [stdout]  --> src/gameboy/cartridge.rs:6:7
[INFO] [stdout]   |
[INFO] [stdout] 6 | const CART_RAM_SIZE: usize = 0x8000;
[INFO] [stdout]   |       ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `rom_code_size` is never read
[INFO] [stdout]   --> src/gameboy/cartridge.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub struct Cartridge {
[INFO] [stdout]    |            --------- field in this struct
[INFO] [stdout] 14 |     rom_code_size: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `any_interrupt_pending` is never used
[INFO] [stdout]    --> src/gameboy/cpu.rs:169:8
[INFO] [stdout]     |
[INFO] [stdout]  20 | impl Cpu {
[INFO] [stdout]     | -------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 169 |     fn any_interrupt_pending(interconnect: &Interconnect) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DisassembledLine` is never constructed
[INFO] [stdout]  --> src/gameboy/disassembler/disassembled_line.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct DisassembledLine {
[INFO] [stdout]   |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `counter` is never read
[INFO] [stdout]   --> src/gameboy/gfx/gpu.rs:35:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct Gpu {
[INFO] [stdout]    |            --- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 35 |     counter: u8,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `BIOS_START` is never used
[INFO] [stdout]  --> src/gameboy/memory_map.rs:6:7
[INFO] [stdout]   |
[INFO] [stdout] 6 | const BIOS_START: u16 = 0x0000;
[INFO] [stdout]   |       ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `BIOS_END` is never used
[INFO] [stdout]  --> src/gameboy/memory_map.rs:7:7
[INFO] [stdout]   |
[INFO] [stdout] 7 | const BIOS_END: u16 = 0x00FF;
[INFO] [stdout]   |       ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CART_HEADER_START` is never used
[INFO] [stdout]  --> src/gameboy/memory_map.rs:9:7
[INFO] [stdout]   |
[INFO] [stdout] 9 | const CART_HEADER_START: u16 = 0x0100;
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CART_HEADER_END` is never used
[INFO] [stdout]   --> src/gameboy/memory_map.rs:10:7
[INFO] [stdout]    |
[INFO] [stdout] 10 | const CART_HEADER_END: u16 = 0x014F;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Bios`, `CartHeader`, `CartRomOtherBank`, and `ExternalRam` are never constructed
[INFO] [stdout]   --> src/gameboy/memory_map.rs:39:5
[INFO] [stdout]    |
[INFO] [stdout] 38 | pub enum Address {
[INFO] [stdout]    |          ------- variants in this enum
[INFO] [stdout] 39 |     Bios(u8),
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 40 |     CartRom(u16),
[INFO] [stdout] 41 |     CartHeader(u16),
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 42 |     CartRam(u16),
[INFO] [stdout] 43 |     CartRomOtherBank(u16),
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 44 |     Gfx(u16),
[INFO] [stdout] 45 |     ExternalRam(u16),
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `map_address_unwrap` is never used
[INFO] [stdout]    --> src/gameboy/memory_map.rs:100:8
[INFO] [stdout]     |
[INFO] [stdout] 100 | pub fn map_address_unwrap(virtual_address: u16) -> u16 {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:128:13
[INFO] [stdout]     |
[INFO] [stdout] 128 |             gameboy.run();
[INFO] [stdout]     |             ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 128 |             let _ = gameboy.run();
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:130:13
[INFO] [stdout]     |
[INFO] [stdout] 130 |             texture.update(&mut texture_context, &imgbuf);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 130 |             let _ = texture.update(&mut texture_context, &imgbuf);
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `OAM_interrupt_enabled` should have a snake case name
[INFO] [stdout]  --> src/gameboy/gfx/stat.rs:6:9
[INFO] [stdout]   |
[INFO] [stdout] 6 |     pub OAM_interrupt_enabled: bool,
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `oam_interrupt_enabled`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `VBlank_interrupt_enabled` should have a snake case name
[INFO] [stdout]  --> src/gameboy/gfx/stat.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 7 |     pub VBlank_interrupt_enabled: bool,
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `vblank_interrupt_enabled`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `HBlank_interrupt_enabled` should have a snake case name
[INFO] [stdout]  --> src/gameboy/gfx/stat.rs:8:9
[INFO] [stdout]   |
[INFO] [stdout] 8 |     pub HBlank_interrupt_enabled: bool,
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `hblank_interrupt_enabled`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `core::num::<impl u8>::wrapping_add` that must be used
[INFO] [stdout]   --> src/gameboy/timer.rs:79:17
[INFO] [stdout]    |
[INFO] [stdout] 79 |                 self.tima.wrapping_add(0x01);
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this returns the result of the operation, without modifying the original
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 79 |                 let _ = self.tima.wrapping_add(0x01);
[INFO] [stdout]    |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 54s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: quick-xml v0.22.0, syn v0.14.2
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2`
[INFO] running `Command { std: "docker" "inspect" "a5b728c702afeef307c5d589b92ea1db9a7478523cc4c3d28a0cf27ef2c05522", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a5b728c702afeef307c5d589b92ea1db9a7478523cc4c3d28a0cf27ef2c05522", kill_on_drop: false }`
[INFO] [stdout] a5b728c702afeef307c5d589b92ea1db9a7478523cc4c3d28a0cf27ef2c05522
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 93c94f054952f192af78eaaaa1ae3d0e6e7a9d0e1b9a8f2fe388b28ae0024b92
[INFO] running `Command { std: "docker" "start" "-a" "93c94f054952f192af78eaaaa1ae3d0e6e7a9d0e1b9a8f2fe388b28ae0024b92", kill_on_drop: false }`
[INFO] [stdout] warning: unused `#[macro_use]` import
[INFO] [stdout]  --> src/lib.rs:4:1
[INFO] [stdout]   |
[INFO] [stdout] 4 | #[macro_use]
[INFO] [stdout]   | ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self::disassembled_line::DisassembledLine`
[INFO] [stdout]  --> src/gameboy/disassembler/mod.rs:4:9
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub use self::disassembled_line::DisassembledLine;
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std`
[INFO] [stdout]  --> src/gameboy/gfx/gpu.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std;
[INFO] [stdout]   |     ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Interconnect`
[INFO] [stdout]  --> src/gameboy/gfx/gpu.rs:6:15
[INFO] [stdout]   |
[INFO] [stdout] 6 | use gameboy::{Interconnect, Interrupt, Irq, Memory};
[INFO] [stdout]   |               ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `TileRenderOptions` and `TileRenderType`
[INFO] [stdout]   --> src/gameboy/gfx/mod.rs:17:33
[INFO] [stdout]    |
[INFO] [stdout] 17 | use self::tile_render_options::{TileRenderOptions, TileRenderType};
[INFO] [stdout]    |                                 ^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Range`
[INFO] [stdout]  --> src/gameboy/mbc/mbc.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::ops::Range;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Range`
[INFO] [stdout]  --> src/gameboy/mbc/mbc0.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::ops::Range;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around match arm expression
[INFO] [stdout]    --> src/gameboy/memory_map.rs:107:30
[INFO] [stdout]     |
[INFO] [stdout] 107 |         IO_START..=IO_END => (virtual_address - IO_START),
[INFO] [stdout]     |                              ^                          ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 107 -         IO_START..=IO_END => (virtual_address - IO_START),
[INFO] [stdout] 107 +         IO_START..=IO_END => virtual_address - IO_START ,
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around match arm expression
[INFO] [stdout]    --> src/gameboy/memory_map.rs:108:34
[INFO] [stdout]     |
[INFO] [stdout] 108 |         ZRAM_START..=ZRAM_END => (virtual_address - ZRAM_START),
[INFO] [stdout]     |                                  ^                            ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 108 -         ZRAM_START..=ZRAM_END => (virtual_address - ZRAM_START),
[INFO] [stdout] 108 +         ZRAM_START..=ZRAM_END => virtual_address - ZRAM_START ,
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary trailing semicolon
[INFO] [stdout]   --> src/gameboy/registers.rs:88:47
[INFO] [stdout]    |
[INFO] [stdout] 88 |         println!("DE: {:02X}", self.get_de());;
[INFO] [stdout]    |                                               ^ help: remove this semicolon
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary trailing semicolon
[INFO] [stdout]   --> src/gameboy/registers.rs:89:47
[INFO] [stdout]    |
[INFO] [stdout] 89 |         println!("HL: {:02X}", self.get_hl());;
[INFO] [stdout]    |                                               ^ help: remove this semicolon
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Interconnect`
[INFO] [stdout]  --> src/gameboy/timer.rs:2:31
[INFO] [stdout]   |
[INFO] [stdout] 2 | use gameboy::{MAX_CPU_CYCLES, Interconnect, Irq, Interrupt};
[INFO] [stdout]   |                               ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self::macros::*`
[INFO] [stdout]   --> src/gameboy/mod.rs:34:9
[INFO] [stdout]    |
[INFO] [stdout] 34 | pub use self::macros::*;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/gameboy/interconnect.rs:224:9
[INFO] [stdout]     |
[INFO] [stdout] 223 |         panic!("CALLED, APPARENTLY");
[INFO] [stdout]     |         ---------------------------- any code following this expression is unreachable
[INFO] [stdout] 224 |         let cart = self.cart.as_ref().expect("Cartridge is empty");
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]    --> src/gameboy/cpu.rs:732:17
[INFO] [stdout]     |
[INFO] [stdout] 732 |                 _ => {
[INFO] [stdout]     |                 ^ no value can reach this
[INFO] [stdout]     |
[INFO] [stdout] note: multiple earlier patterns match some of the same values
[INFO] [stdout]    --> src/gameboy/cpu.rs:732:17
[INFO] [stdout]     |
[INFO] [stdout] 474 |                 0x00 => self.rlc_b(),
[INFO] [stdout]     |                 ---- matches some of the same values
[INFO] [stdout] 475 |                 0x01 => self.rlc_c(),
[INFO] [stdout]     |                 ---- matches some of the same values
[INFO] [stdout] 476 |                 0x02 => self.rlc_d(),
[INFO] [stdout]     |                 ---- matches some of the same values
[INFO] [stdout] 477 |                 0x03 => self.rlc_e(),
[INFO] [stdout]     |                 ---- matches some of the same values
[INFO] [stdout] ...
[INFO] [stdout] 732 |                 _ => {
[INFO] [stdout]     |                 ^ ...and 252 other patterns collectively make this unreachable
[INFO] [stdout]     = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `operand`
[INFO] [stdout]    --> src/gameboy/cpu.rs:468:17
[INFO] [stdout]     |
[INFO] [stdout] 468 |             let operand = self.get_operand_from_opcode(interconnect, &opcode);
[INFO] [stdout]     |                 ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_operand`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `above_background`
[INFO] [stdout]    --> src/gameboy/gfx/gpu.rs:234:21
[INFO] [stdout]     |
[INFO] [stdout] 234 |                 let above_background = attributes & 0x80 == 0x00;
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_above_background`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple ranges are one apart
[INFO] [stdout]    --> src/gameboy/interconnect.rs:153:21
[INFO] [stdout]     |
[INFO] [stdout] 153 |                     0x40..0x46 => self.gpu.write_u8(a, byte),
[INFO] [stdout]     |                     ^^^^^^^^^^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     this range doesn't match `70_u16` because `..` is an exclusive range
[INFO] [stdout]     |                     help: use an inclusive range instead: `64_u16..=70_u16`
[INFO] [stdout] 154 |                     0x47..0x4A => self.gpu.write_u8(a, byte),
[INFO] [stdout]     |                     ---------- this could appear to continue range `64_u16..70_u16`, but `70_u16` isn't matched by either of them
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_contiguous_range_endpoints)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `a`
[INFO] [stdout]    --> src/gameboy/interconnect.rs:168:46
[INFO] [stdout]     |
[INFO] [stdout] 168 |             Address::InterruptEnableRegister(a) => self.irq.enable_flag = byte,
[INFO] [stdout]     |                                              ^ help: if this is intentional, prefix it with an underscore: `_a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple ranges are one apart
[INFO] [stdout]    --> src/gameboy/interconnect.rs:210:21
[INFO] [stdout]     |
[INFO] [stdout] 210 |                     0x40..0x46 => self.gpu.read_u8(a),
[INFO] [stdout]     |                     ^^^^^^^^^^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     this range doesn't match `70_u16` because `..` is an exclusive range
[INFO] [stdout]     |                     help: use an inclusive range instead: `64_u16..=70_u16`
[INFO] [stdout] 211 |                     0x47..0x4A => self.gpu.read_u8(a),
[INFO] [stdout]     |                     ---------- this could appear to continue range `64_u16..70_u16`, but `70_u16` isn't matched by either of them
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `a`
[INFO] [stdout]    --> src/gameboy/interconnect.rs:217:46
[INFO] [stdout]     |
[INFO] [stdout] 217 |             Address::InterruptEnableRegister(a) => self.irq.enable_flag,
[INFO] [stdout]     |                                              ^ help: if this is intentional, prefix it with an underscore: `_a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `r`
[INFO] [stdout]    --> src/gameboy/interconnect.rs:222:30
[INFO] [stdout]     |
[INFO] [stdout] 222 |     pub fn read_bytes(&self, r: Range<u16>) -> &[u8] {
[INFO] [stdout]     |                              ^ help: if this is intentional, prefix it with an underscore: `_r`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `bytes`
[INFO] [stdout]    --> src/gameboy/interconnect.rs:248:46
[INFO] [stdout]     |
[INFO] [stdout] 248 |     pub fn write_bytes(&mut self, addr: u16, bytes: &[u8]) {
[INFO] [stdout]     |                                              ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `cart`
[INFO] [stdout]    --> src/gameboy/interconnect.rs:249:13
[INFO] [stdout]     |
[INFO] [stdout] 249 |         let cart = self.cart.as_mut().expect("Cartridge is empty");
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_cart`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addr`
[INFO] [stdout]   --> src/gameboy/mbc/mbc0.rs:45:32
[INFO] [stdout]    |
[INFO] [stdout] 45 |     fn write_ram_u8(&mut self, addr: u16, b: u8) {
[INFO] [stdout]    |                                ^^^^ help: if this is intentional, prefix it with an underscore: `_addr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `b`
[INFO] [stdout]   --> src/gameboy/mbc/mbc0.rs:45:43
[INFO] [stdout]    |
[INFO] [stdout] 45 |     fn write_ram_u8(&mut self, addr: u16, b: u8) {
[INFO] [stdout]    |                                           ^ help: if this is intentional, prefix it with an underscore: `_b`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addr`
[INFO] [stdout]   --> src/gameboy/mbc/mbc0.rs:49:32
[INFO] [stdout]    |
[INFO] [stdout] 49 |     fn write_rom_u8(&mut self, addr: u16, b: u8) {
[INFO] [stdout]    |                                ^^^^ help: if this is intentional, prefix it with an underscore: `_addr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `b`
[INFO] [stdout]   --> src/gameboy/mbc/mbc0.rs:49:43
[INFO] [stdout]    |
[INFO] [stdout] 49 |     fn write_rom_u8(&mut self, addr: u16, b: u8) {
[INFO] [stdout]    |                                           ^ help: if this is intentional, prefix it with an underscore: `_b`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/gameboy/memory_map.rs:96:9
[INFO] [stdout]    |
[INFO] [stdout] 96 |         _ => panic!("Address {:#X} outside valid memory.", virtual_address),
[INFO] [stdout]    |         ^ no value can reach this
[INFO] [stdout]    |
[INFO] [stdout] note: multiple earlier patterns match some of the same values
[INFO] [stdout]   --> src/gameboy/memory_map.rs:96:9
[INFO] [stdout]    |
[INFO] [stdout] 80 |         CART_ROM_START..=CART_ROM_END => Address::CartRom(virtual_address - CART_ROM_START),
[INFO] [stdout]    |         ----------------------------- matches some of the same values
[INFO] [stdout] 81 |         CART_RAM_START..=CART_RAM_END => Address::CartRam(virtual_address - CART_RAM_START),
[INFO] [stdout]    |         ----------------------------- matches some of the same values
[INFO] [stdout] 82 |         GFX_RAM_START..=GFX_RAM_END => Address::Gfx(virtual_address - GFX_RAM_START),
[INFO] [stdout]    |         --------------------------- matches some of the same values
[INFO] [stdout] 83 |         RAM_START..=RAM_END => Address::Ram(virtual_address - RAM_START),
[INFO] [stdout]    |         ------------------- matches some of the same values
[INFO] [stdout] ...
[INFO] [stdout] 96 |         _ => panic!("Address {:#X} outside valid memory.", virtual_address),
[INFO] [stdout]    |         ^ ...and 6 other patterns collectively make this unreachable
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]    --> src/gameboy/memory_map.rs:112:9
[INFO] [stdout]     |
[INFO] [stdout] 112 |         _ => panic!("Address {:#X} outside valid memory.", virtual_address),
[INFO] [stdout]     |         ^ no value can reach this
[INFO] [stdout]     |
[INFO] [stdout] note: multiple earlier patterns match some of the same values
[INFO] [stdout]    --> src/gameboy/memory_map.rs:112:9
[INFO] [stdout]     |
[INFO] [stdout] 102 |         CART_RAM_START..=CART_RAM_END => virtual_address - CART_RAM_START,
[INFO] [stdout]     |         ----------------------------- matches some of the same values
[INFO] [stdout] 103 |         CART_ROM_START..=CART_ROM_END => virtual_address - CART_ROM_START,
[INFO] [stdout]     |         ----------------------------- matches some of the same values
[INFO] [stdout] 104 |         GFX_RAM_START..=GFX_RAM_END => virtual_address - GFX_RAM_START,
[INFO] [stdout]     |         --------------------------- matches some of the same values
[INFO] [stdout] 105 |         RAM_START..=RAM_END => virtual_address - RAM_START,
[INFO] [stdout]     |         ------------------- matches some of the same values
[INFO] [stdout] ...
[INFO] [stdout] 112 |         _ => panic!("Address {:#X} outside valid memory.", virtual_address),
[INFO] [stdout]     |         ^ ...and 6 other patterns collectively make this unreachable
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CART_MEM_SIZE` is never used
[INFO] [stdout]  --> src/gameboy/cartridge.rs:5:7
[INFO] [stdout]   |
[INFO] [stdout] 5 | const CART_MEM_SIZE: usize = 0x200000;
[INFO] [stdout]   |       ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CART_RAM_SIZE` is never used
[INFO] [stdout]  --> src/gameboy/cartridge.rs:6:7
[INFO] [stdout]   |
[INFO] [stdout] 6 | const CART_RAM_SIZE: usize = 0x8000;
[INFO] [stdout]   |       ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `rom_code_size` is never read
[INFO] [stdout]   --> src/gameboy/cartridge.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub struct Cartridge {
[INFO] [stdout]    |            --------- field in this struct
[INFO] [stdout] 14 |     rom_code_size: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `any_interrupt_pending` is never used
[INFO] [stdout]    --> src/gameboy/cpu.rs:169:8
[INFO] [stdout]     |
[INFO] [stdout]  20 | impl Cpu {
[INFO] [stdout]     | -------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 169 |     fn any_interrupt_pending(interconnect: &Interconnect) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DisassembledLine` is never constructed
[INFO] [stdout]  --> src/gameboy/disassembler/disassembled_line.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct DisassembledLine {
[INFO] [stdout]   |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `counter` is never read
[INFO] [stdout]   --> src/gameboy/gfx/gpu.rs:35:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct Gpu {
[INFO] [stdout]    |            --- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 35 |     counter: u8,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `BIOS_START` is never used
[INFO] [stdout]  --> src/gameboy/memory_map.rs:6:7
[INFO] [stdout]   |
[INFO] [stdout] 6 | const BIOS_START: u16 = 0x0000;
[INFO] [stdout]   |       ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `BIOS_END` is never used
[INFO] [stdout]  --> src/gameboy/memory_map.rs:7:7
[INFO] [stdout]   |
[INFO] [stdout] 7 | const BIOS_END: u16 = 0x00FF;
[INFO] [stdout]   |       ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CART_HEADER_START` is never used
[INFO] [stdout]  --> src/gameboy/memory_map.rs:9:7
[INFO] [stdout]   |
[INFO] [stdout] 9 | const CART_HEADER_START: u16 = 0x0100;
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CART_HEADER_END` is never used
[INFO] [stdout]   --> src/gameboy/memory_map.rs:10:7
[INFO] [stdout]    |
[INFO] [stdout] 10 | const CART_HEADER_END: u16 = 0x014F;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Bios`, `CartHeader`, `CartRomOtherBank`, and `ExternalRam` are never constructed
[INFO] [stdout]   --> src/gameboy/memory_map.rs:39:5
[INFO] [stdout]    |
[INFO] [stdout] 38 | pub enum Address {
[INFO] [stdout]    |          ------- variants in this enum
[INFO] [stdout] 39 |     Bios(u8),
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 40 |     CartRom(u16),
[INFO] [stdout] 41 |     CartHeader(u16),
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 42 |     CartRam(u16),
[INFO] [stdout] 43 |     CartRomOtherBank(u16),
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 44 |     Gfx(u16),
[INFO] [stdout] 45 |     ExternalRam(u16),
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `map_address_unwrap` is never used
[INFO] [stdout]    --> src/gameboy/memory_map.rs:100:8
[INFO] [stdout]     |
[INFO] [stdout] 100 | pub fn map_address_unwrap(virtual_address: u16) -> u16 {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `OAM_interrupt_enabled` should have a snake case name
[INFO] [stdout]  --> src/gameboy/gfx/stat.rs:6:9
[INFO] [stdout]   |
[INFO] [stdout] 6 |     pub OAM_interrupt_enabled: bool,
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `oam_interrupt_enabled`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `VBlank_interrupt_enabled` should have a snake case name
[INFO] [stdout]  --> src/gameboy/gfx/stat.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 7 |     pub VBlank_interrupt_enabled: bool,
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `vblank_interrupt_enabled`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `HBlank_interrupt_enabled` should have a snake case name
[INFO] [stdout]  --> src/gameboy/gfx/stat.rs:8:9
[INFO] [stdout]   |
[INFO] [stdout] 8 |     pub HBlank_interrupt_enabled: bool,
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `hblank_interrupt_enabled`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `core::num::<impl u8>::wrapping_add` that must be used
[INFO] [stdout]   --> src/gameboy/timer.rs:79:17
[INFO] [stdout]    |
[INFO] [stdout] 79 |                 self.tima.wrapping_add(0x01);
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this returns the result of the operation, without modifying the original
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 79 |                 let _ = self.tima.wrapping_add(0x01);
[INFO] [stdout]    |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling chemboy v0.0.1 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused `#[macro_use]` import
[INFO] [stdout]  --> src/main.rs:3:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | #[macro_use]
[INFO] [stdout]   | ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `piston_window::OpenGL`
[INFO] [stdout]   --> src/main.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | use piston_window::OpenGL;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self::disassembled_line::DisassembledLine`
[INFO] [stdout]  --> src/gameboy/disassembler/mod.rs:4:9
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub use self::disassembled_line::DisassembledLine;
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std`
[INFO] [stdout]  --> src/gameboy/gfx/gpu.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std;
[INFO] [stdout]   |     ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Interconnect`
[INFO] [stdout]  --> src/gameboy/gfx/gpu.rs:6:15
[INFO] [stdout]   |
[INFO] [stdout] 6 | use gameboy::{Interconnect, Interrupt, Irq, Memory};
[INFO] [stdout]   |               ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `TileRenderOptions` and `TileRenderType`
[INFO] [stdout]   --> src/gameboy/gfx/mod.rs:17:33
[INFO] [stdout]    |
[INFO] [stdout] 17 | use self::tile_render_options::{TileRenderOptions, TileRenderType};
[INFO] [stdout]    |                                 ^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Range`
[INFO] [stdout]  --> src/gameboy/mbc/mbc.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::ops::Range;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Range`
[INFO] [stdout]  --> src/gameboy/mbc/mbc0.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::ops::Range;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around match arm expression
[INFO] [stdout]    --> src/gameboy/memory_map.rs:107:30
[INFO] [stdout]     |
[INFO] [stdout] 107 |         IO_START..=IO_END => (virtual_address - IO_START),
[INFO] [stdout]     |                              ^                          ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 107 -         IO_START..=IO_END => (virtual_address - IO_START),
[INFO] [stdout] 107 +         IO_START..=IO_END => virtual_address - IO_START ,
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around match arm expression
[INFO] [stdout]    --> src/gameboy/memory_map.rs:108:34
[INFO] [stdout]     |
[INFO] [stdout] 108 |         ZRAM_START..=ZRAM_END => (virtual_address - ZRAM_START),
[INFO] [stdout]     |                                  ^                            ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 108 -         ZRAM_START..=ZRAM_END => (virtual_address - ZRAM_START),
[INFO] [stdout] 108 +         ZRAM_START..=ZRAM_END => virtual_address - ZRAM_START ,
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary trailing semicolon
[INFO] [stdout]   --> src/gameboy/registers.rs:88:47
[INFO] [stdout]    |
[INFO] [stdout] 88 |         println!("DE: {:02X}", self.get_de());;
[INFO] [stdout]    |                                               ^ help: remove this semicolon
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary trailing semicolon
[INFO] [stdout]   --> src/gameboy/registers.rs:89:47
[INFO] [stdout]    |
[INFO] [stdout] 89 |         println!("HL: {:02X}", self.get_hl());;
[INFO] [stdout]    |                                               ^ help: remove this semicolon
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Interconnect`
[INFO] [stdout]  --> src/gameboy/timer.rs:2:31
[INFO] [stdout]   |
[INFO] [stdout] 2 | use gameboy::{MAX_CPU_CYCLES, Interconnect, Irq, Interrupt};
[INFO] [stdout]   |                               ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self::macros::*`
[INFO] [stdout]   --> src/gameboy/mod.rs:34:9
[INFO] [stdout]    |
[INFO] [stdout] 34 | pub use self::macros::*;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused label
[INFO] [stdout]   --> src/main.rs:86:5
[INFO] [stdout]    |
[INFO] [stdout] 86 |     'start: while let Some(e) = window.next() {
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_labels)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `#[macro_use]` import
[INFO] [stdout]  --> src/lib.rs:4:1
[INFO] [stdout]   |
[INFO] [stdout] 4 | #[macro_use]
[INFO] [stdout]   | ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self::disassembled_line::DisassembledLine`
[INFO] [stdout]  --> src/gameboy/disassembler/mod.rs:4:9
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub use self::disassembled_line::DisassembledLine;
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std`
[INFO] [stdout]  --> src/gameboy/gfx/gpu.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std;
[INFO] [stdout]   |     ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Interconnect`
[INFO] [stdout]  --> src/gameboy/gfx/gpu.rs:6:15
[INFO] [stdout]   |
[INFO] [stdout] 6 | use gameboy::{Interconnect, Interrupt, Irq, Memory};
[INFO] [stdout]   |               ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `TileRenderOptions` and `TileRenderType`
[INFO] [stdout]   --> src/gameboy/gfx/mod.rs:17:33
[INFO] [stdout]    |
[INFO] [stdout] 17 | use self::tile_render_options::{TileRenderOptions, TileRenderType};
[INFO] [stdout]    |                                 ^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Range`
[INFO] [stdout]  --> src/gameboy/mbc/mbc.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::ops::Range;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Range`
[INFO] [stdout]  --> src/gameboy/mbc/mbc0.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::ops::Range;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around match arm expression
[INFO] [stdout]    --> src/gameboy/memory_map.rs:107:30
[INFO] [stdout]     |
[INFO] [stdout] 107 |         IO_START..=IO_END => (virtual_address - IO_START),
[INFO] [stdout]     |                              ^                          ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 107 -         IO_START..=IO_END => (virtual_address - IO_START),
[INFO] [stdout] 107 +         IO_START..=IO_END => virtual_address - IO_START ,
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around match arm expression
[INFO] [stdout]    --> src/gameboy/memory_map.rs:108:34
[INFO] [stdout]     |
[INFO] [stdout] 108 |         ZRAM_START..=ZRAM_END => (virtual_address - ZRAM_START),
[INFO] [stdout]     |                                  ^                            ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 108 -         ZRAM_START..=ZRAM_END => (virtual_address - ZRAM_START),
[INFO] [stdout] 108 +         ZRAM_START..=ZRAM_END => virtual_address - ZRAM_START ,
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary trailing semicolon
[INFO] [stdout]   --> src/gameboy/registers.rs:88:47
[INFO] [stdout]    |
[INFO] [stdout] 88 |         println!("DE: {:02X}", self.get_de());;
[INFO] [stdout]    |                                               ^ help: remove this semicolon
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary trailing semicolon
[INFO] [stdout]   --> src/gameboy/registers.rs:89:47
[INFO] [stdout]    |
[INFO] [stdout] 89 |         println!("HL: {:02X}", self.get_hl());;
[INFO] [stdout]    |                                               ^ help: remove this semicolon
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Interconnect`
[INFO] [stdout]  --> src/gameboy/timer.rs:2:31
[INFO] [stdout]   |
[INFO] [stdout] 2 | use gameboy::{MAX_CPU_CYCLES, Interconnect, Irq, Interrupt};
[INFO] [stdout]   |                               ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self::macros::*`
[INFO] [stdout]   --> src/gameboy/mod.rs:34:9
[INFO] [stdout]    |
[INFO] [stdout] 34 | pub use self::macros::*;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/gameboy/interconnect.rs:224:9
[INFO] [stdout]     |
[INFO] [stdout] 223 |         panic!("CALLED, APPARENTLY");
[INFO] [stdout]     |         ---------------------------- any code following this expression is unreachable
[INFO] [stdout] 224 |         let cart = self.cart.as_ref().expect("Cartridge is empty");
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/gameboy/interconnect.rs:224:9
[INFO] [stdout]     |
[INFO] [stdout] 223 |         panic!("CALLED, APPARENTLY");
[INFO] [stdout]     |         ---------------------------- any code following this expression is unreachable
[INFO] [stdout] 224 |         let cart = self.cart.as_ref().expect("Cartridge is empty");
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]    --> src/gameboy/cpu.rs:732:17
[INFO] [stdout]     |
[INFO] [stdout] 732 |                 _ => {
[INFO] [stdout]     |                 ^ no value can reach this
[INFO] [stdout]     |
[INFO] [stdout] note: multiple earlier patterns match some of the same values
[INFO] [stdout]    --> src/gameboy/cpu.rs:732:17
[INFO] [stdout]     |
[INFO] [stdout] 474 |                 0x00 => self.rlc_b(),
[INFO] [stdout]     |                 ---- matches some of the same values
[INFO] [stdout] 475 |                 0x01 => self.rlc_c(),
[INFO] [stdout]     |                 ---- matches some of the same values
[INFO] [stdout] 476 |                 0x02 => self.rlc_d(),
[INFO] [stdout]     |                 ---- matches some of the same values
[INFO] [stdout] 477 |                 0x03 => self.rlc_e(),
[INFO] [stdout]     |                 ---- matches some of the same values
[INFO] [stdout] ...
[INFO] [stdout] 732 |                 _ => {
[INFO] [stdout]     |                 ^ ...and 252 other patterns collectively make this unreachable
[INFO] [stdout]     = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]    --> src/gameboy/cpu.rs:732:17
[INFO] [stdout]     |
[INFO] [stdout] 732 |                 _ => {
[INFO] [stdout]     |                 ^ no value can reach this
[INFO] [stdout]     |
[INFO] [stdout] note: multiple earlier patterns match some of the same values
[INFO] [stdout]    --> src/gameboy/cpu.rs:732:17
[INFO] [stdout]     |
[INFO] [stdout] 474 |                 0x00 => self.rlc_b(),
[INFO] [stdout]     |                 ---- matches some of the same values
[INFO] [stdout] 475 |                 0x01 => self.rlc_c(),
[INFO] [stdout]     |                 ---- matches some of the same values
[INFO] [stdout] 476 |                 0x02 => self.rlc_d(),
[INFO] [stdout]     |                 ---- matches some of the same values
[INFO] [stdout] 477 |                 0x03 => self.rlc_e(),
[INFO] [stdout]     |                 ---- matches some of the same values
[INFO] [stdout] ...
[INFO] [stdout] 732 |                 _ => {
[INFO] [stdout]     |                 ^ ...and 252 other patterns collectively make this unreachable
[INFO] [stdout]     = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `operand`
[INFO] [stdout]    --> src/gameboy/cpu.rs:468:17
[INFO] [stdout]     |
[INFO] [stdout] 468 |             let operand = self.get_operand_from_opcode(interconnect, &opcode);
[INFO] [stdout]     |                 ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_operand`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `operand`
[INFO] [stdout]    --> src/gameboy/cpu.rs:468:17
[INFO] [stdout]     |
[INFO] [stdout] 468 |             let operand = self.get_operand_from_opcode(interconnect, &opcode);
[INFO] [stdout]     |                 ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_operand`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `above_background`
[INFO] [stdout]    --> src/gameboy/gfx/gpu.rs:234:21
[INFO] [stdout]     |
[INFO] [stdout] 234 |                 let above_background = attributes & 0x80 == 0x00;
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_above_background`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple ranges are one apart
[INFO] [stdout]    --> src/gameboy/interconnect.rs:153:21
[INFO] [stdout]     |
[INFO] [stdout] 153 |                     0x40..0x46 => self.gpu.write_u8(a, byte),
[INFO] [stdout]     |                     ^^^^^^^^^^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     this range doesn't match `70_u16` because `..` is an exclusive range
[INFO] [stdout]     |                     help: use an inclusive range instead: `64_u16..=70_u16`
[INFO] [stdout] 154 |                     0x47..0x4A => self.gpu.write_u8(a, byte),
[INFO] [stdout]     |                     ---------- this could appear to continue range `64_u16..70_u16`, but `70_u16` isn't matched by either of them
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_contiguous_range_endpoints)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `a`
[INFO] [stdout]    --> src/gameboy/interconnect.rs:168:46
[INFO] [stdout]     |
[INFO] [stdout] 168 |             Address::InterruptEnableRegister(a) => self.irq.enable_flag = byte,
[INFO] [stdout]     |                                              ^ help: if this is intentional, prefix it with an underscore: `_a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple ranges are one apart
[INFO] [stdout]    --> src/gameboy/interconnect.rs:210:21
[INFO] [stdout]     |
[INFO] [stdout] 210 |                     0x40..0x46 => self.gpu.read_u8(a),
[INFO] [stdout]     |                     ^^^^^^^^^^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     this range doesn't match `70_u16` because `..` is an exclusive range
[INFO] [stdout]     |                     help: use an inclusive range instead: `64_u16..=70_u16`
[INFO] [stdout] 211 |                     0x47..0x4A => self.gpu.read_u8(a),
[INFO] [stdout]     |                     ---------- this could appear to continue range `64_u16..70_u16`, but `70_u16` isn't matched by either of them
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `a`
[INFO] [stdout]    --> src/gameboy/interconnect.rs:217:46
[INFO] [stdout]     |
[INFO] [stdout] 217 |             Address::InterruptEnableRegister(a) => self.irq.enable_flag,
[INFO] [stdout]     |                                              ^ help: if this is intentional, prefix it with an underscore: `_a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `r`
[INFO] [stdout]    --> src/gameboy/interconnect.rs:222:30
[INFO] [stdout]     |
[INFO] [stdout] 222 |     pub fn read_bytes(&self, r: Range<u16>) -> &[u8] {
[INFO] [stdout]     |                              ^ help: if this is intentional, prefix it with an underscore: `_r`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `bytes`
[INFO] [stdout]    --> src/gameboy/interconnect.rs:248:46
[INFO] [stdout]     |
[INFO] [stdout] 248 |     pub fn write_bytes(&mut self, addr: u16, bytes: &[u8]) {
[INFO] [stdout]     |                                              ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `cart`
[INFO] [stdout]    --> src/gameboy/interconnect.rs:249:13
[INFO] [stdout]     |
[INFO] [stdout] 249 |         let cart = self.cart.as_mut().expect("Cartridge is empty");
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_cart`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addr`
[INFO] [stdout]   --> src/gameboy/mbc/mbc0.rs:45:32
[INFO] [stdout]    |
[INFO] [stdout] 45 |     fn write_ram_u8(&mut self, addr: u16, b: u8) {
[INFO] [stdout]    |                                ^^^^ help: if this is intentional, prefix it with an underscore: `_addr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `b`
[INFO] [stdout]   --> src/gameboy/mbc/mbc0.rs:45:43
[INFO] [stdout]    |
[INFO] [stdout] 45 |     fn write_ram_u8(&mut self, addr: u16, b: u8) {
[INFO] [stdout]    |                                           ^ help: if this is intentional, prefix it with an underscore: `_b`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addr`
[INFO] [stdout]   --> src/gameboy/mbc/mbc0.rs:49:32
[INFO] [stdout]    |
[INFO] [stdout] 49 |     fn write_rom_u8(&mut self, addr: u16, b: u8) {
[INFO] [stdout]    |                                ^^^^ help: if this is intentional, prefix it with an underscore: `_addr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `b`
[INFO] [stdout]   --> src/gameboy/mbc/mbc0.rs:49:43
[INFO] [stdout]    |
[INFO] [stdout] 49 |     fn write_rom_u8(&mut self, addr: u16, b: u8) {
[INFO] [stdout]    |                                           ^ help: if this is intentional, prefix it with an underscore: `_b`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `above_background`
[INFO] [stdout]    --> src/gameboy/gfx/gpu.rs:234:21
[INFO] [stdout]     |
[INFO] [stdout] 234 |                 let above_background = attributes & 0x80 == 0x00;
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_above_background`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/gameboy/memory_map.rs:96:9
[INFO] [stdout]    |
[INFO] [stdout] 96 |         _ => panic!("Address {:#X} outside valid memory.", virtual_address),
[INFO] [stdout]    |         ^ no value can reach this
[INFO] [stdout]    |
[INFO] [stdout] note: multiple earlier patterns match some of the same values
[INFO] [stdout]   --> src/gameboy/memory_map.rs:96:9
[INFO] [stdout]    |
[INFO] [stdout] 80 |         CART_ROM_START..=CART_ROM_END => Address::CartRom(virtual_address - CART_ROM_START),
[INFO] [stdout]    |         ----------------------------- matches some of the same values
[INFO] [stdout] 81 |         CART_RAM_START..=CART_RAM_END => Address::CartRam(virtual_address - CART_RAM_START),
[INFO] [stdout]    |         ----------------------------- matches some of the same values
[INFO] [stdout] 82 |         GFX_RAM_START..=GFX_RAM_END => Address::Gfx(virtual_address - GFX_RAM_START),
[INFO] [stdout]    |         --------------------------- matches some of the same values
[INFO] [stdout] 83 |         RAM_START..=RAM_END => Address::Ram(virtual_address - RAM_START),
[INFO] [stdout]    |         ------------------- matches some of the same values
[INFO] [stdout] ...
[INFO] [stdout] 96 |         _ => panic!("Address {:#X} outside valid memory.", virtual_address),
[INFO] [stdout]    |         ^ ...and 6 other patterns collectively make this unreachable
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]    --> src/gameboy/memory_map.rs:112:9
[INFO] [stdout]     |
[INFO] [stdout] 112 |         _ => panic!("Address {:#X} outside valid memory.", virtual_address),
[INFO] [stdout]     |         ^ no value can reach this
[INFO] [stdout]     |
[INFO] [stdout] note: multiple earlier patterns match some of the same values
[INFO] [stdout]    --> src/gameboy/memory_map.rs:112:9
[INFO] [stdout]     |
[INFO] [stdout] 102 |         CART_RAM_START..=CART_RAM_END => virtual_address - CART_RAM_START,
[INFO] [stdout]     |         ----------------------------- matches some of the same values
[INFO] [stdout] 103 |         CART_ROM_START..=CART_ROM_END => virtual_address - CART_ROM_START,
[INFO] [stdout]     |         ----------------------------- matches some of the same values
[INFO] [stdout] 104 |         GFX_RAM_START..=GFX_RAM_END => virtual_address - GFX_RAM_START,
[INFO] [stdout]     |         --------------------------- matches some of the same values
[INFO] [stdout] 105 |         RAM_START..=RAM_END => virtual_address - RAM_START,
[INFO] [stdout]     |         ------------------- matches some of the same values
[INFO] [stdout] ...
[INFO] [stdout] 112 |         _ => panic!("Address {:#X} outside valid memory.", virtual_address),
[INFO] [stdout]     |         ^ ...and 6 other patterns collectively make this unreachable
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple ranges are one apart
[INFO] [stdout]    --> src/gameboy/interconnect.rs:153:21
[INFO] [stdout]     |
[INFO] [stdout] 153 |                     0x40..0x46 => self.gpu.write_u8(a, byte),
[INFO] [stdout]     |                     ^^^^^^^^^^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     this range doesn't match `70_u16` because `..` is an exclusive range
[INFO] [stdout]     |                     help: use an inclusive range instead: `64_u16..=70_u16`
[INFO] [stdout] 154 |                     0x47..0x4A => self.gpu.write_u8(a, byte),
[INFO] [stdout]     |                     ---------- this could appear to continue range `64_u16..70_u16`, but `70_u16` isn't matched by either of them
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_contiguous_range_endpoints)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `a`
[INFO] [stdout]    --> src/gameboy/interconnect.rs:168:46
[INFO] [stdout]     |
[INFO] [stdout] 168 |             Address::InterruptEnableRegister(a) => self.irq.enable_flag = byte,
[INFO] [stdout]     |                                              ^ help: if this is intentional, prefix it with an underscore: `_a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple ranges are one apart
[INFO] [stdout]    --> src/gameboy/interconnect.rs:210:21
[INFO] [stdout]     |
[INFO] [stdout] 210 |                     0x40..0x46 => self.gpu.read_u8(a),
[INFO] [stdout]     |                     ^^^^^^^^^^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     this range doesn't match `70_u16` because `..` is an exclusive range
[INFO] [stdout]     |                     help: use an inclusive range instead: `64_u16..=70_u16`
[INFO] [stdout] 211 |                     0x47..0x4A => self.gpu.read_u8(a),
[INFO] [stdout]     |                     ---------- this could appear to continue range `64_u16..70_u16`, but `70_u16` isn't matched by either of them
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `a`
[INFO] [stdout]    --> src/gameboy/interconnect.rs:217:46
[INFO] [stdout]     |
[INFO] [stdout] 217 |             Address::InterruptEnableRegister(a) => self.irq.enable_flag,
[INFO] [stdout]     |                                              ^ help: if this is intentional, prefix it with an underscore: `_a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `r`
[INFO] [stdout]    --> src/gameboy/interconnect.rs:222:30
[INFO] [stdout]     |
[INFO] [stdout] 222 |     pub fn read_bytes(&self, r: Range<u16>) -> &[u8] {
[INFO] [stdout]     |                              ^ help: if this is intentional, prefix it with an underscore: `_r`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `bytes`
[INFO] [stdout]    --> src/gameboy/interconnect.rs:248:46
[INFO] [stdout]     |
[INFO] [stdout] 248 |     pub fn write_bytes(&mut self, addr: u16, bytes: &[u8]) {
[INFO] [stdout]     |                                              ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `cart`
[INFO] [stdout]    --> src/gameboy/interconnect.rs:249:13
[INFO] [stdout]     |
[INFO] [stdout] 249 |         let cart = self.cart.as_mut().expect("Cartridge is empty");
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_cart`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addr`
[INFO] [stdout]   --> src/gameboy/mbc/mbc0.rs:45:32
[INFO] [stdout]    |
[INFO] [stdout] 45 |     fn write_ram_u8(&mut self, addr: u16, b: u8) {
[INFO] [stdout]    |                                ^^^^ help: if this is intentional, prefix it with an underscore: `_addr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `b`
[INFO] [stdout]   --> src/gameboy/mbc/mbc0.rs:45:43
[INFO] [stdout]    |
[INFO] [stdout] 45 |     fn write_ram_u8(&mut self, addr: u16, b: u8) {
[INFO] [stdout]    |                                           ^ help: if this is intentional, prefix it with an underscore: `_b`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addr`
[INFO] [stdout]   --> src/gameboy/mbc/mbc0.rs:49:32
[INFO] [stdout]    |
[INFO] [stdout] 49 |     fn write_rom_u8(&mut self, addr: u16, b: u8) {
[INFO] [stdout]    |                                ^^^^ help: if this is intentional, prefix it with an underscore: `_addr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `b`
[INFO] [stdout]   --> src/gameboy/mbc/mbc0.rs:49:43
[INFO] [stdout]    |
[INFO] [stdout] 49 |     fn write_rom_u8(&mut self, addr: u16, b: u8) {
[INFO] [stdout]    |                                           ^ help: if this is intentional, prefix it with an underscore: `_b`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CART_MEM_SIZE` is never used
[INFO] [stdout]  --> src/gameboy/cartridge.rs:5:7
[INFO] [stdout]   |
[INFO] [stdout] 5 | const CART_MEM_SIZE: usize = 0x200000;
[INFO] [stdout]   |       ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CART_RAM_SIZE` is never used
[INFO] [stdout]  --> src/gameboy/cartridge.rs:6:7
[INFO] [stdout]   |
[INFO] [stdout] 6 | const CART_RAM_SIZE: usize = 0x8000;
[INFO] [stdout]   |       ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `rom_code_size` is never read
[INFO] [stdout]   --> src/gameboy/cartridge.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub struct Cartridge {
[INFO] [stdout]    |            --------- field in this struct
[INFO] [stdout] 14 |     rom_code_size: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `any_interrupt_pending` is never used
[INFO] [stdout]    --> src/gameboy/cpu.rs:169:8
[INFO] [stdout]     |
[INFO] [stdout]  20 | impl Cpu {
[INFO] [stdout]     | -------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 169 |     fn any_interrupt_pending(interconnect: &Interconnect) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DisassembledLine` is never constructed
[INFO] [stdout]  --> src/gameboy/disassembler/disassembled_line.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct DisassembledLine {
[INFO] [stdout]   |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `counter` is never read
[INFO] [stdout]   --> src/gameboy/gfx/gpu.rs:35:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct Gpu {
[INFO] [stdout]    |            --- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 35 |     counter: u8,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `BIOS_START` is never used
[INFO] [stdout]  --> src/gameboy/memory_map.rs:6:7
[INFO] [stdout]   |
[INFO] [stdout] 6 | const BIOS_START: u16 = 0x0000;
[INFO] [stdout]   |       ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `BIOS_END` is never used
[INFO] [stdout]  --> src/gameboy/memory_map.rs:7:7
[INFO] [stdout]   |
[INFO] [stdout] 7 | const BIOS_END: u16 = 0x00FF;
[INFO] [stdout]   |       ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CART_HEADER_START` is never used
[INFO] [stdout]  --> src/gameboy/memory_map.rs:9:7
[INFO] [stdout]   |
[INFO] [stdout] 9 | const CART_HEADER_START: u16 = 0x0100;
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CART_HEADER_END` is never used
[INFO] [stdout]   --> src/gameboy/memory_map.rs:10:7
[INFO] [stdout]    |
[INFO] [stdout] 10 | const CART_HEADER_END: u16 = 0x014F;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Bios`, `CartHeader`, `CartRomOtherBank`, and `ExternalRam` are never constructed
[INFO] [stdout]   --> src/gameboy/memory_map.rs:39:5
[INFO] [stdout]    |
[INFO] [stdout] 38 | pub enum Address {
[INFO] [stdout]    |          ------- variants in this enum
[INFO] [stdout] 39 |     Bios(u8),
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 40 |     CartRom(u16),
[INFO] [stdout] 41 |     CartHeader(u16),
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 42 |     CartRam(u16),
[INFO] [stdout] 43 |     CartRomOtherBank(u16),
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 44 |     Gfx(u16),
[INFO] [stdout] 45 |     ExternalRam(u16),
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `map_address_unwrap` is never used
[INFO] [stdout]    --> src/gameboy/memory_map.rs:100:8
[INFO] [stdout]     |
[INFO] [stdout] 100 | pub fn map_address_unwrap(virtual_address: u16) -> u16 {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `OAM_interrupt_enabled` should have a snake case name
[INFO] [stdout]  --> src/gameboy/gfx/stat.rs:6:9
[INFO] [stdout]   |
[INFO] [stdout] 6 |     pub OAM_interrupt_enabled: bool,
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `oam_interrupt_enabled`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `VBlank_interrupt_enabled` should have a snake case name
[INFO] [stdout]  --> src/gameboy/gfx/stat.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 7 |     pub VBlank_interrupt_enabled: bool,
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `vblank_interrupt_enabled`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `HBlank_interrupt_enabled` should have a snake case name
[INFO] [stdout]  --> src/gameboy/gfx/stat.rs:8:9
[INFO] [stdout]   |
[INFO] [stdout] 8 |     pub HBlank_interrupt_enabled: bool,
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `hblank_interrupt_enabled`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/gameboy/memory_map.rs:96:9
[INFO] [stdout]    |
[INFO] [stdout] 96 |         _ => panic!("Address {:#X} outside valid memory.", virtual_address),
[INFO] [stdout]    |         ^ no value can reach this
[INFO] [stdout]    |
[INFO] [stdout] note: multiple earlier patterns match some of the same values
[INFO] [stdout]   --> src/gameboy/memory_map.rs:96:9
[INFO] [stdout]    |
[INFO] [stdout] 80 |         CART_ROM_START..=CART_ROM_END => Address::CartRom(virtual_address - CART_ROM_START),
[INFO] [stdout]    |         ----------------------------- matches some of the same values
[INFO] [stdout] 81 |         CART_RAM_START..=CART_RAM_END => Address::CartRam(virtual_address - CART_RAM_START),
[INFO] [stdout]    |         ----------------------------- matches some of the same values
[INFO] [stdout] 82 |         GFX_RAM_START..=GFX_RAM_END => Address::Gfx(virtual_address - GFX_RAM_START),
[INFO] [stdout]    |         --------------------------- matches some of the same values
[INFO] [stdout] 83 |         RAM_START..=RAM_END => Address::Ram(virtual_address - RAM_START),
[INFO] [stdout]    |         ------------------- matches some of the same values
[INFO] [stdout] ...
[INFO] [stdout] 96 |         _ => panic!("Address {:#X} outside valid memory.", virtual_address),
[INFO] [stdout]    |         ^ ...and 6 other patterns collectively make this unreachable
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]    --> src/gameboy/memory_map.rs:112:9
[INFO] [stdout]     |
[INFO] [stdout] 112 |         _ => panic!("Address {:#X} outside valid memory.", virtual_address),
[INFO] [stdout]     |         ^ no value can reach this
[INFO] [stdout]     |
[INFO] [stdout] note: multiple earlier patterns match some of the same values
[INFO] [stdout]    --> src/gameboy/memory_map.rs:112:9
[INFO] [stdout]     |
[INFO] [stdout] 102 |         CART_RAM_START..=CART_RAM_END => virtual_address - CART_RAM_START,
[INFO] [stdout]     |         ----------------------------- matches some of the same values
[INFO] [stdout] 103 |         CART_ROM_START..=CART_ROM_END => virtual_address - CART_ROM_START,
[INFO] [stdout]     |         ----------------------------- matches some of the same values
[INFO] [stdout] 104 |         GFX_RAM_START..=GFX_RAM_END => virtual_address - GFX_RAM_START,
[INFO] [stdout]     |         --------------------------- matches some of the same values
[INFO] [stdout] 105 |         RAM_START..=RAM_END => virtual_address - RAM_START,
[INFO] [stdout]     |         ------------------- matches some of the same values
[INFO] [stdout] ...
[INFO] [stdout] 112 |         _ => panic!("Address {:#X} outside valid memory.", virtual_address),
[INFO] [stdout]     |         ^ ...and 6 other patterns collectively make this unreachable
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `core::num::<impl u8>::wrapping_add` that must be used
[INFO] [stdout]   --> src/gameboy/timer.rs:79:17
[INFO] [stdout]    |
[INFO] [stdout] 79 |                 self.tima.wrapping_add(0x01);
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this returns the result of the operation, without modifying the original
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 79 |                 let _ = self.tima.wrapping_add(0x01);
[INFO] [stdout]    |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:70:9
[INFO] [stdout]    |
[INFO] [stdout] 70 |     let mut factory = window.factory.clone();
[INFO] [stdout]    |         ----^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `factory`
[INFO] [stdout]   --> src/main.rs:70:9
[INFO] [stdout]    |
[INFO] [stdout] 70 |     let mut factory = window.factory.clone();
[INFO] [stdout]    |         ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_factory`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `debugger_enabled`
[INFO] [stdout]    --> src/main.rs:154:31
[INFO] [stdout]     |
[INFO] [stdout] 154 | fn create_window<S>(title: S, debugger_enabled: bool) -> PistonWindow
[INFO] [stdout]     |                               ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_debugger_enabled`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CART_MEM_SIZE` is never used
[INFO] [stdout]  --> src/gameboy/cartridge.rs:5:7
[INFO] [stdout]   |
[INFO] [stdout] 5 | const CART_MEM_SIZE: usize = 0x200000;
[INFO] [stdout]   |       ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CART_RAM_SIZE` is never used
[INFO] [stdout]  --> src/gameboy/cartridge.rs:6:7
[INFO] [stdout]   |
[INFO] [stdout] 6 | const CART_RAM_SIZE: usize = 0x8000;
[INFO] [stdout]   |       ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `rom_code_size` is never read
[INFO] [stdout]   --> src/gameboy/cartridge.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub struct Cartridge {
[INFO] [stdout]    |            --------- field in this struct
[INFO] [stdout] 14 |     rom_code_size: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `any_interrupt_pending` is never used
[INFO] [stdout]    --> src/gameboy/cpu.rs:169:8
[INFO] [stdout]     |
[INFO] [stdout]  20 | impl Cpu {
[INFO] [stdout]     | -------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 169 |     fn any_interrupt_pending(interconnect: &Interconnect) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DisassembledLine` is never constructed
[INFO] [stdout]  --> src/gameboy/disassembler/disassembled_line.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct DisassembledLine {
[INFO] [stdout]   |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `counter` is never read
[INFO] [stdout]   --> src/gameboy/gfx/gpu.rs:35:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct Gpu {
[INFO] [stdout]    |            --- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 35 |     counter: u8,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `BIOS_START` is never used
[INFO] [stdout]  --> src/gameboy/memory_map.rs:6:7
[INFO] [stdout]   |
[INFO] [stdout] 6 | const BIOS_START: u16 = 0x0000;
[INFO] [stdout]   |       ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `BIOS_END` is never used
[INFO] [stdout]  --> src/gameboy/memory_map.rs:7:7
[INFO] [stdout]   |
[INFO] [stdout] 7 | const BIOS_END: u16 = 0x00FF;
[INFO] [stdout]   |       ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CART_HEADER_START` is never used
[INFO] [stdout]  --> src/gameboy/memory_map.rs:9:7
[INFO] [stdout]   |
[INFO] [stdout] 9 | const CART_HEADER_START: u16 = 0x0100;
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CART_HEADER_END` is never used
[INFO] [stdout]   --> src/gameboy/memory_map.rs:10:7
[INFO] [stdout]    |
[INFO] [stdout] 10 | const CART_HEADER_END: u16 = 0x014F;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Bios`, `CartHeader`, `CartRomOtherBank`, and `ExternalRam` are never constructed
[INFO] [stdout]   --> src/gameboy/memory_map.rs:39:5
[INFO] [stdout]    |
[INFO] [stdout] 38 | pub enum Address {
[INFO] [stdout]    |          ------- variants in this enum
[INFO] [stdout] 39 |     Bios(u8),
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 40 |     CartRom(u16),
[INFO] [stdout] 41 |     CartHeader(u16),
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 42 |     CartRam(u16),
[INFO] [stdout] 43 |     CartRomOtherBank(u16),
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 44 |     Gfx(u16),
[INFO] [stdout] 45 |     ExternalRam(u16),
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `map_address_unwrap` is never used
[INFO] [stdout]    --> src/gameboy/memory_map.rs:100:8
[INFO] [stdout]     |
[INFO] [stdout] 100 | pub fn map_address_unwrap(virtual_address: u16) -> u16 {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:128:13
[INFO] [stdout]     |
[INFO] [stdout] 128 |             gameboy.run();
[INFO] [stdout]     |             ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 128 |             let _ = gameboy.run();
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:130:13
[INFO] [stdout]     |
[INFO] [stdout] 130 |             texture.update(&mut texture_context, &imgbuf);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 130 |             let _ = texture.update(&mut texture_context, &imgbuf);
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `OAM_interrupt_enabled` should have a snake case name
[INFO] [stdout]  --> src/gameboy/gfx/stat.rs:6:9
[INFO] [stdout]   |
[INFO] [stdout] 6 |     pub OAM_interrupt_enabled: bool,
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `oam_interrupt_enabled`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `VBlank_interrupt_enabled` should have a snake case name
[INFO] [stdout]  --> src/gameboy/gfx/stat.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 7 |     pub VBlank_interrupt_enabled: bool,
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `vblank_interrupt_enabled`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `HBlank_interrupt_enabled` should have a snake case name
[INFO] [stdout]  --> src/gameboy/gfx/stat.rs:8:9
[INFO] [stdout]   |
[INFO] [stdout] 8 |     pub HBlank_interrupt_enabled: bool,
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `hblank_interrupt_enabled`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `core::num::<impl u8>::wrapping_add` that must be used
[INFO] [stdout]   --> src/gameboy/timer.rs:79:17
[INFO] [stdout]    |
[INFO] [stdout] 79 |                 self.tima.wrapping_add(0x01);
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this returns the result of the operation, without modifying the original
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 79 |                 let _ = self.tima.wrapping_add(0x01);
[INFO] [stdout]    |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 2.14s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: quick-xml v0.22.0, syn v0.14.2
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2`
[INFO] running `Command { std: "docker" "inspect" "93c94f054952f192af78eaaaa1ae3d0e6e7a9d0e1b9a8f2fe388b28ae0024b92", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "93c94f054952f192af78eaaaa1ae3d0e6e7a9d0e1b9a8f2fe388b28ae0024b92", kill_on_drop: false }`
[INFO] [stdout] 93c94f054952f192af78eaaaa1ae3d0e6e7a9d0e1b9a8f2fe388b28ae0024b92
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 0940d6b5664d6fcb78cb7113da926c24a9f10cdd987463347df165af260aa1ed
[INFO] running `Command { std: "docker" "start" "-a" "0940d6b5664d6fcb78cb7113da926c24a9f10cdd987463347df165af260aa1ed", kill_on_drop: false }`
[INFO] [stderr] warning: unused `#[macro_use]` import
[INFO] [stderr]  --> src/lib.rs:4:1
[INFO] [stderr]   |
[INFO] [stderr] 4 | #[macro_use]
[INFO] [stderr]   | ^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `self::disassembled_line::DisassembledLine`
[INFO] [stderr]  --> src/gameboy/disassembler/mod.rs:4:9
[INFO] [stderr]   |
[INFO] [stderr] 4 | pub use self::disassembled_line::DisassembledLine;
[INFO] [stderr]   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `std`
[INFO] [stderr]  --> src/gameboy/gfx/gpu.rs:3:5
[INFO] [stderr]   |
[INFO] [stderr] 3 | use std;
[INFO] [stderr]   |     ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `Interconnect`
[INFO] [stderr]  --> src/gameboy/gfx/gpu.rs:6:15
[INFO] [stderr]   |
[INFO] [stderr] 6 | use gameboy::{Interconnect, Interrupt, Irq, Memory};
[INFO] [stderr]   |               ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `TileRenderOptions` and `TileRenderType`
[INFO] [stderr]   --> src/gameboy/gfx/mod.rs:17:33
[INFO] [stderr]    |
[INFO] [stderr] 17 | use self::tile_render_options::{TileRenderOptions, TileRenderType};
[INFO] [stderr]    |                                 ^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `std::ops::Range`
[INFO] [stderr]  --> src/gameboy/mbc/mbc.rs:1:5
[INFO] [stderr]   |
[INFO] [stderr] 1 | use std::ops::Range;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `std::ops::Range`
[INFO] [stderr]  --> src/gameboy/mbc/mbc0.rs:4:5
[INFO] [stderr]   |
[INFO] [stderr] 4 | use std::ops::Range;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around match arm expression
[INFO] [stderr]    --> src/gameboy/memory_map.rs:107:30
[INFO] [stderr]     |
[INFO] [stderr] 107 |         IO_START..=IO_END => (virtual_address - IO_START),
[INFO] [stderr]     |                              ^                          ^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]     |
[INFO] [stderr] 107 -         IO_START..=IO_END => (virtual_address - IO_START),
[INFO] [stderr] 107 +         IO_START..=IO_END => virtual_address - IO_START ,
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around match arm expression
[INFO] [stderr]    --> src/gameboy/memory_map.rs:108:34
[INFO] [stderr]     |
[INFO] [stderr] 108 |         ZRAM_START..=ZRAM_END => (virtual_address - ZRAM_START),
[INFO] [stderr]     |                                  ^                            ^
[INFO] [stderr]     |
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]     |
[INFO] [stderr] 108 -         ZRAM_START..=ZRAM_END => (virtual_address - ZRAM_START),
[INFO] [stderr] 108 +         ZRAM_START..=ZRAM_END => virtual_address - ZRAM_START ,
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary trailing semicolon
[INFO] [stderr]   --> src/gameboy/registers.rs:88:47
[INFO] [stderr]    |
[INFO] [stderr] 88 |         println!("DE: {:02X}", self.get_de());;
[INFO] [stderr]    |                                               ^ help: remove this semicolon
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary trailing semicolon
[INFO] [stderr]   --> src/gameboy/registers.rs:89:47
[INFO] [stderr]    |
[INFO] [stderr] 89 |         println!("HL: {:02X}", self.get_hl());;
[INFO] [stderr]    |                                               ^ help: remove this semicolon
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `Interconnect`
[INFO] [stderr]  --> src/gameboy/timer.rs:2:31
[INFO] [stderr]   |
[INFO] [stderr] 2 | use gameboy::{MAX_CPU_CYCLES, Interconnect, Irq, Interrupt};
[INFO] [stderr]   |                               ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `self::macros::*`
[INFO] [stderr]   --> src/gameboy/mod.rs:34:9
[INFO] [stderr]    |
[INFO] [stderr] 34 | pub use self::macros::*;
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unreachable statement
[INFO] [stderr]    --> src/gameboy/interconnect.rs:224:9
[INFO] [stderr]     |
[INFO] [stderr] 223 |         panic!("CALLED, APPARENTLY");
[INFO] [stderr]     |         ---------------------------- any code following this expression is unreachable
[INFO] [stderr] 224 |         let cart = self.cart.as_ref().expect("Cartridge is empty");
[INFO] [stderr]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unreachable pattern
[INFO] [stderr]    --> src/gameboy/cpu.rs:732:17
[INFO] [stderr]     |
[INFO] [stderr] 732 |                 _ => {
[INFO] [stderr]     |                 ^ no value can reach this
[INFO] [stderr]     |
[INFO] [stderr] note: multiple earlier patterns match some of the same values
[INFO] [stderr]    --> src/gameboy/cpu.rs:732:17
[INFO] [stderr]     |
[INFO] [stderr] 474 |                 0x00 => self.rlc_b(),
[INFO] [stderr]     |                 ---- matches some of the same values
[INFO] [stderr] 475 |                 0x01 => self.rlc_c(),
[INFO] [stderr]     |                 ---- matches some of the same values
[INFO] [stderr] 476 |                 0x02 => self.rlc_d(),
[INFO] [stderr]     |                 ---- matches some of the same values
[INFO] [stderr] 477 |                 0x03 => self.rlc_e(),
[INFO] [stderr]     |                 ---- matches some of the same values
[INFO] [stderr] ...
[INFO] [stderr] 732 |                 _ => {
[INFO] [stderr]     |                 ^ ...and 252 other patterns collectively make this unreachable
[INFO] [stderr]     = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `operand`
[INFO] [stderr]    --> src/gameboy/cpu.rs:468:17
[INFO] [stderr]     |
[INFO] [stderr] 468 |             let operand = self.get_operand_from_opcode(interconnect, &opcode);
[INFO] [stderr]     |                 ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_operand`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `above_background`
[INFO] [stderr]    --> src/gameboy/gfx/gpu.rs:234:21
[INFO] [stderr]     |
[INFO] [stderr] 234 |                 let above_background = attributes & 0x80 == 0x00;
[INFO] [stderr]     |                     ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_above_background`
[INFO] [stderr] 
[INFO] [stderr] warning: multiple ranges are one apart
[INFO] [stderr]    --> src/gameboy/interconnect.rs:153:21
[INFO] [stderr]     |
[INFO] [stderr] 153 |                     0x40..0x46 => self.gpu.write_u8(a, byte),
[INFO] [stderr]     |                     ^^^^^^^^^^
[INFO] [stderr]     |                     |
[INFO] [stderr]     |                     this range doesn't match `70_u16` because `..` is an exclusive range
[INFO] [stderr]     |                     help: use an inclusive range instead: `64_u16..=70_u16`
[INFO] [stderr] 154 |                     0x47..0x4A => self.gpu.write_u8(a, byte),
[INFO] [stderr]     |                     ---------- this could appear to continue range `64_u16..70_u16`, but `70_u16` isn't matched by either of them
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(non_contiguous_range_endpoints)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `a`
[INFO] [stderr]    --> src/gameboy/interconnect.rs:168:46
[INFO] [stderr]     |
[INFO] [stderr] 168 |             Address::InterruptEnableRegister(a) => self.irq.enable_flag = byte,
[INFO] [stderr]     |                                              ^ help: if this is intentional, prefix it with an underscore: `_a`
[INFO] [stderr] 
[INFO] [stderr] warning: multiple ranges are one apart
[INFO] [stderr]    --> src/gameboy/interconnect.rs:210:21
[INFO] [stderr]     |
[INFO] [stderr] 210 |                     0x40..0x46 => self.gpu.read_u8(a),
[INFO] [stderr]     |                     ^^^^^^^^^^
[INFO] [stderr]     |                     |
[INFO] [stderr]     |                     this range doesn't match `70_u16` because `..` is an exclusive range
[INFO] [stderr]     |                     help: use an inclusive range instead: `64_u16..=70_u16`
[INFO] [stderr] 211 |                     0x47..0x4A => self.gpu.read_u8(a),
[INFO] [stderr]     |                     ---------- this could appear to continue range `64_u16..70_u16`, but `70_u16` isn't matched by either of them
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `a`
[INFO] [stderr]    --> src/gameboy/interconnect.rs:217:46
[INFO] [stderr]     |
[INFO] [stderr] 217 |             Address::InterruptEnableRegister(a) => self.irq.enable_flag,
[INFO] [stderr]     |                                              ^ help: if this is intentional, prefix it with an underscore: `_a`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `r`
[INFO] [stderr]    --> src/gameboy/interconnect.rs:222:30
[INFO] [stderr]     |
[INFO] [stderr] 222 |     pub fn read_bytes(&self, r: Range<u16>) -> &[u8] {
[INFO] [stderr]     |                              ^ help: if this is intentional, prefix it with an underscore: `_r`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `bytes`
[INFO] [stderr]    --> src/gameboy/interconnect.rs:248:46
[INFO] [stderr]     |
[INFO] [stderr] 248 |     pub fn write_bytes(&mut self, addr: u16, bytes: &[u8]) {
[INFO] [stderr]     |                                              ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `cart`
[INFO] [stderr]    --> src/gameboy/interconnect.rs:249:13
[INFO] [stderr]     |
[INFO] [stderr] 249 |         let cart = self.cart.as_mut().expect("Cartridge is empty");
[INFO] [stderr]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_cart`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `addr`
[INFO] [stderr]   --> src/gameboy/mbc/mbc0.rs:45:32
[INFO] [stderr]    |
[INFO] [stderr] 45 |     fn write_ram_u8(&mut self, addr: u16, b: u8) {
[INFO] [stderr]    |                                ^^^^ help: if this is intentional, prefix it with an underscore: `_addr`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `b`
[INFO] [stderr]   --> src/gameboy/mbc/mbc0.rs:45:43
[INFO] [stderr]    |
[INFO] [stderr] 45 |     fn write_ram_u8(&mut self, addr: u16, b: u8) {
[INFO] [stderr]    |                                           ^ help: if this is intentional, prefix it with an underscore: `_b`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `addr`
[INFO] [stderr]   --> src/gameboy/mbc/mbc0.rs:49:32
[INFO] [stderr]    |
[INFO] [stderr] 49 |     fn write_rom_u8(&mut self, addr: u16, b: u8) {
[INFO] [stderr]    |                                ^^^^ help: if this is intentional, prefix it with an underscore: `_addr`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `b`
[INFO] [stderr]   --> src/gameboy/mbc/mbc0.rs:49:43
[INFO] [stderr]    |
[INFO] [stderr] 49 |     fn write_rom_u8(&mut self, addr: u16, b: u8) {
[INFO] [stderr]    |                                           ^ help: if this is intentional, prefix it with an underscore: `_b`
[INFO] [stderr] 
[INFO] [stderr] warning: unreachable pattern
[INFO] [stderr]   --> src/gameboy/memory_map.rs:96:9
[INFO] [stderr]    |
[INFO] [stderr] 96 |         _ => panic!("Address {:#X} outside valid memory.", virtual_address),
[INFO] [stderr]    |         ^ no value can reach this
[INFO] [stderr]    |
[INFO] [stderr] note: multiple earlier patterns match some of the same values
[INFO] [stderr]   --> src/gameboy/memory_map.rs:96:9
[INFO] [stderr]    |
[INFO] [stderr] 80 |         CART_ROM_START..=CART_ROM_END => Address::CartRom(virtual_address - CART_ROM_START),
[INFO] [stderr]    |         ----------------------------- matches some of the same values
[INFO] [stderr] 81 |         CART_RAM_START..=CART_RAM_END => Address::CartRam(virtual_address - CART_RAM_START),
[INFO] [stderr]    |         ----------------------------- matches some of the same values
[INFO] [stderr] 82 |         GFX_RAM_START..=GFX_RAM_END => Address::Gfx(virtual_address - GFX_RAM_START),
[INFO] [stderr]    |         --------------------------- matches some of the same values
[INFO] [stderr] 83 |         RAM_START..=RAM_END => Address::Ram(virtual_address - RAM_START),
[INFO] [stderr]    |         ------------------- matches some of the same values
[INFO] [stderr] ...
[INFO] [stderr] 96 |         _ => panic!("Address {:#X} outside valid memory.", virtual_address),
[INFO] [stderr]    |         ^ ...and 6 other patterns collectively make this unreachable
[INFO] [stderr] 
[INFO] [stderr] warning: unreachable pattern
[INFO] [stderr]    --> src/gameboy/memory_map.rs:112:9
[INFO] [stderr]     |
[INFO] [stderr] 112 |         _ => panic!("Address {:#X} outside valid memory.", virtual_address),
[INFO] [stderr]     |         ^ no value can reach this
[INFO] [stderr]     |
[INFO] [stderr] note: multiple earlier patterns match some of the same values
[INFO] [stderr]    --> src/gameboy/memory_map.rs:112:9
[INFO] [stderr]     |
[INFO] [stderr] 102 |         CART_RAM_START..=CART_RAM_END => virtual_address - CART_RAM_START,
[INFO] [stderr]     |         ----------------------------- matches some of the same values
[INFO] [stderr] 103 |         CART_ROM_START..=CART_ROM_END => virtual_address - CART_ROM_START,
[INFO] [stderr]     |         ----------------------------- matches some of the same values
[INFO] [stderr] 104 |         GFX_RAM_START..=GFX_RAM_END => virtual_address - GFX_RAM_START,
[INFO] [stderr]     |         --------------------------- matches some of the same values
[INFO] [stderr] 105 |         RAM_START..=RAM_END => virtual_address - RAM_START,
[INFO] [stderr]     |         ------------------- matches some of the same values
[INFO] [stderr] ...
[INFO] [stderr] 112 |         _ => panic!("Address {:#X} outside valid memory.", virtual_address),
[INFO] [stderr]     |         ^ ...and 6 other patterns collectively make this unreachable
[INFO] [stderr] 
[INFO] [stderr] warning: constant `CART_MEM_SIZE` is never used
[INFO] [stderr]  --> src/gameboy/cartridge.rs:5:7
[INFO] [stderr]   |
[INFO] [stderr] 5 | const CART_MEM_SIZE: usize = 0x200000;
[INFO] [stderr]   |       ^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: constant `CART_RAM_SIZE` is never used
[INFO] [stderr]  --> src/gameboy/cartridge.rs:6:7
[INFO] [stderr]   |
[INFO] [stderr] 6 | const CART_RAM_SIZE: usize = 0x8000;
[INFO] [stderr]   |       ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: field `rom_code_size` is never read
[INFO] [stderr]   --> src/gameboy/cartridge.rs:14:5
[INFO] [stderr]    |
[INFO] [stderr] 13 | pub struct Cartridge {
[INFO] [stderr]    |            --------- field in this struct
[INFO] [stderr] 14 |     rom_code_size: usize,
[INFO] [stderr]    |     ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated function `any_interrupt_pending` is never used
[INFO] [stderr]    --> src/gameboy/cpu.rs:169:8
[INFO] [stderr]     |
[INFO] [stderr]  20 | impl Cpu {
[INFO] [stderr]     | -------- associated function in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 169 |     fn any_interrupt_pending(interconnect: &Interconnect) -> bool {
[INFO] [stderr]     |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `DisassembledLine` is never constructed
[INFO] [stderr]  --> src/gameboy/disassembler/disassembled_line.rs:5:12
[INFO] [stderr]   |
[INFO] [stderr] 5 | pub struct DisassembledLine {
[INFO] [stderr]   |            ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: field `counter` is never read
[INFO] [stderr]   --> src/gameboy/gfx/gpu.rs:35:5
[INFO] [stderr]    |
[INFO] [stderr] 11 | pub struct Gpu {
[INFO] [stderr]    |            --- field in this struct
[INFO] [stderr] ...
[INFO] [stderr] 35 |     counter: u8,
[INFO] [stderr]    |     ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: constant `BIOS_START` is never used
[INFO] [stderr]  --> src/gameboy/memory_map.rs:6:7
[INFO] [stderr]   |
[INFO] [stderr] 6 | const BIOS_START: u16 = 0x0000;
[INFO] [stderr]   |       ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: constant `BIOS_END` is never used
[INFO] [stderr]  --> src/gameboy/memory_map.rs:7:7
[INFO] [stderr]   |
[INFO] [stderr] 7 | const BIOS_END: u16 = 0x00FF;
[INFO] [stderr]   |       ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: constant `CART_HEADER_START` is never used
[INFO] [stderr]  --> src/gameboy/memory_map.rs:9:7
[INFO] [stderr]   |
[INFO] [stderr] 9 | const CART_HEADER_START: u16 = 0x0100;
[INFO] [stderr]   |       ^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: constant `CART_HEADER_END` is never used
[INFO] [stderr]   --> src/gameboy/memory_map.rs:10:7
[INFO] [stderr]    |
[INFO] [stderr] 10 | const CART_HEADER_END: u16 = 0x014F;
[INFO] [stderr]    |       ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: variants `Bios`, `CartHeader`, `CartRomOtherBank`, and `ExternalRam` are never constructed
[INFO] [stderr]   --> src/gameboy/memory_map.rs:39:5
[INFO] [stderr]    |
[INFO] [stderr] 38 | pub enum Address {
[INFO] [stderr]    |          ------- variants in this enum
[INFO] [stderr] 39 |     Bios(u8),
[INFO] [stderr]    |     ^^^^
[INFO] [stderr] 40 |     CartRom(u16),
[INFO] [stderr] 41 |     CartHeader(u16),
[INFO] [stderr]    |     ^^^^^^^^^^
[INFO] [stderr] 42 |     CartRam(u16),
[INFO] [stderr] 43 |     CartRomOtherBank(u16),
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^
[INFO] [stderr] 44 |     Gfx(u16),
[INFO] [stderr] 45 |     ExternalRam(u16),
[INFO] [stderr]    |     ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `map_address_unwrap` is never used
[INFO] [stderr]    --> src/gameboy/memory_map.rs:100:8
[INFO] [stderr]     |
[INFO] [stderr] 100 | pub fn map_address_unwrap(virtual_address: u16) -> u16 {
[INFO] [stderr]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `OAM_interrupt_enabled` should have a snake case name
[INFO] [stderr]  --> src/gameboy/gfx/stat.rs:6:9
[INFO] [stderr]   |
[INFO] [stderr] 6 |     pub OAM_interrupt_enabled: bool,
[INFO] [stderr]   |         ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `oam_interrupt_enabled`
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `VBlank_interrupt_enabled` should have a snake case name
[INFO] [stderr]  --> src/gameboy/gfx/stat.rs:7:9
[INFO] [stderr]   |
[INFO] [stderr] 7 |     pub VBlank_interrupt_enabled: bool,
[INFO] [stderr]   |         ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `vblank_interrupt_enabled`
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `HBlank_interrupt_enabled` should have a snake case name
[INFO] [stderr]  --> src/gameboy/gfx/stat.rs:8:9
[INFO] [stderr]   |
[INFO] [stderr] 8 |     pub HBlank_interrupt_enabled: bool,
[INFO] [stderr]   |         ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `hblank_interrupt_enabled`
[INFO] [stderr] 
[INFO] [stderr] warning: unused return value of `core::num::<impl u8>::wrapping_add` that must be used
[INFO] [stderr]   --> src/gameboy/timer.rs:79:17
[INFO] [stderr]    |
[INFO] [stderr] 79 |                 self.tima.wrapping_add(0x01);
[INFO] [stderr]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: this returns the result of the operation, without modifying the original
[INFO] [stderr]    = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] help: use `let _ = ...` to ignore the resulting value
[INFO] [stderr]    |
[INFO] [stderr] 79 |                 let _ = self.tima.wrapping_add(0x01);
[INFO] [stderr]    |                 +++++++
[INFO] [stderr] 
[INFO] [stderr] warning: `chemboy` (lib) generated 46 warnings (run `cargo fix --lib -p chemboy` to apply 21 suggestions)
[INFO] [stderr] warning: `chemboy` (lib test) generated 46 warnings (46 duplicates)
[INFO] [stderr] warning: unused `#[macro_use]` import
[INFO] [stderr]  --> src/main.rs:3:1
[INFO] [stderr]   |
[INFO] [stderr] 3 | #[macro_use]
[INFO] [stderr]   | ^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `piston_window::OpenGL`
[INFO] [stderr]   --> src/main.rs:17:5
[INFO] [stderr]    |
[INFO] [stderr] 17 | use piston_window::OpenGL;
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused label
[INFO] [stderr]   --> src/main.rs:86:5
[INFO] [stderr]    |
[INFO] [stderr] 86 |     'start: while let Some(e) = window.next() {
[INFO] [stderr]    |     ^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_labels)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]   --> src/main.rs:70:9
[INFO] [stderr]    |
[INFO] [stderr] 70 |     let mut factory = window.factory.clone();
[INFO] [stderr]    |         ----^^^^^^^
[INFO] [stderr]    |         |
[INFO] [stderr]    |         help: remove this `mut`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `factory`
[INFO] [stderr]   --> src/main.rs:70:9
[INFO] [stderr]    |
[INFO] [stderr] 70 |     let mut factory = window.factory.clone();
[INFO] [stderr]    |         ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_factory`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `debugger_enabled`
[INFO] [stderr]    --> src/main.rs:154:31
[INFO] [stderr]     |
[INFO] [stderr] 154 | fn create_window<S>(title: S, debugger_enabled: bool) -> PistonWindow
[INFO] [stderr]     |                               ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_debugger_enabled`
[INFO] [stderr] 
[INFO] [stderr] warning: unused `Result` that must be used
[INFO] [stderr]    --> src/main.rs:128:13
[INFO] [stderr]     |
[INFO] [stderr] 128 |             gameboy.run();
[INFO] [stderr]     |             ^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stderr]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] help: use `let _ = ...` to ignore the resulting value
[INFO] [stderr]     |
[INFO] [stderr] 128 |             let _ = gameboy.run();
[INFO] [stderr]     |             +++++++
[INFO] [stderr] 
[INFO] [stderr] warning: unused `Result` that must be used
[INFO] [stderr]    --> src/main.rs:130:13
[INFO] [stderr]     |
[INFO] [stderr] 130 |             texture.update(&mut texture_context, &imgbuf);
[INFO] [stderr]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stderr] help: use `let _ = ...` to ignore the resulting value
[INFO] [stderr]     |
[INFO] [stderr] 130 |             let _ = texture.update(&mut texture_context, &imgbuf);
[INFO] [stderr]     |             +++++++
[INFO] [stderr] 
[INFO] [stderr] warning: unused return value of `core::num::<impl u8>::wrapping_add` that must be used
[INFO] [stderr]   --> src/gameboy/timer.rs:79:17
[INFO] [stderr]    |
[INFO] [stderr] 79 |                 self.tima.wrapping_add(0x01);
[INFO] [stderr]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: this returns the result of the operation, without modifying the original
[INFO] [stderr] help: use `let _ = ...` to ignore the resulting value
[INFO] [stderr]    |
[INFO] [stderr] 79 |                 let _ = self.tima.wrapping_add(0x01);
[INFO] [stderr]    |                 +++++++
[INFO] [stderr] 
[INFO] [stderr] warning: `chemboy` (bin "chemboy" test) generated 53 warnings (44 duplicates) (run `cargo fix --bin "chemboy" -p chemboy --tests` to apply 4 suggestions)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.30s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: quick-xml v0.22.0, syn v0.14.2
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2`
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/chemboy-0d424fa9463d056b)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/chemboy-25fbf78526ad37ed)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests chemboy
[INFO] [stderr] warning: unnecessary parentheses around match arm expression
[INFO] [stderr]    --> src/gameboy/memory_map.rs:107:30
[INFO] [stderr]     |
[INFO] [stderr] 107 |         IO_START..=IO_END => (virtual_address - IO_START),
[INFO] [stderr]     |                              ^                          ^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]     |
[INFO] [stderr] 107 -         IO_START..=IO_END => (virtual_address - IO_START),
[INFO] [stderr] 107 +         IO_START..=IO_END => virtual_address - IO_START ,
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around match arm expression
[INFO] [stderr]    --> src/gameboy/memory_map.rs:108:34
[INFO] [stderr]     |
[INFO] [stderr] 108 |         ZRAM_START..=ZRAM_END => (virtual_address - ZRAM_START),
[INFO] [stderr]     |                                  ^                            ^
[INFO] [stderr]     |
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]     |
[INFO] [stderr] 108 -         ZRAM_START..=ZRAM_END => (virtual_address - ZRAM_START),
[INFO] [stderr] 108 +         ZRAM_START..=ZRAM_END => virtual_address - ZRAM_START ,
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary trailing semicolon
[INFO] [stderr]   --> src/gameboy/registers.rs:88:47
[INFO] [stderr]    |
[INFO] [stderr] 88 |         println!("DE: {:02X}", self.get_de());;
[INFO] [stderr]    |                                               ^ help: remove this semicolon
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary trailing semicolon
[INFO] [stderr]   --> src/gameboy/registers.rs:89:47
[INFO] [stderr]    |
[INFO] [stderr] 89 |         println!("HL: {:02X}", self.get_hl());;
[INFO] [stderr]    |                                               ^ help: remove this semicolon
[INFO] [stderr] 
[INFO] [stderr] warning: 4 warnings emitted
[INFO] [stderr] 
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "0940d6b5664d6fcb78cb7113da926c24a9f10cdd987463347df165af260aa1ed", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0940d6b5664d6fcb78cb7113da926c24a9f10cdd987463347df165af260aa1ed", kill_on_drop: false }`
[INFO] [stdout] 0940d6b5664d6fcb78cb7113da926c24a9f10cdd987463347df165af260aa1ed
