[INFO] cloning repository https://github.com/Yottum/nes-emulator [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Yottum/nes-emulator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYottum%2Fnes-emulator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYottum%2Fnes-emulator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6c5acfabf06b2e19dc9854323ddacdc7fd39bb25 [INFO] building Yottum/nes-emulator against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYottum%2Fnes-emulator" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Yottum/nes-emulator [INFO] finished tweaking git repo https://github.com/Yottum/nes-emulator [INFO] tweaked toml for git repo https://github.com/Yottum/nes-emulator written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Yottum/nes-emulator on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Yottum/nes-emulator 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded thiserror v1.0.20 [INFO] [stderr] Downloaded thiserror-impl v1.0.20 [INFO] [stderr] Downloaded proc-macro2 v1.0.19 [INFO] [stderr] Downloaded hermit-abi v0.1.15 [INFO] [stderr] Downloaded gl v0.11.0 [INFO] [stderr] Downloaded libloading v0.6.2 [INFO] [stderr] Downloaded pistoncore-event_loop v0.51.0 [INFO] [stderr] Downloaded piston-graphics_api_version v0.2.0 [INFO] [stderr] Downloaded either v1.5.3 [INFO] [stderr] Downloaded piston2d-graphics v0.36.0 [INFO] [stderr] Downloaded piston-shaders_graphics2d v0.3.1 [INFO] [stderr] Downloaded memoffset v0.5.5 [INFO] [stderr] Downloaded shader_version v0.6.0 [INFO] [stderr] Downloaded piston v0.51.0 [INFO] [stderr] Downloaded tiff v0.5.0 [INFO] [stderr] Downloaded anyhow v1.0.32 [INFO] [stderr] Downloaded serde_derive v1.0.114 [INFO] [stderr] Downloaded bytemuck v1.3.1 [INFO] [stderr] Downloaded aho-corasick v0.7.13 [INFO] [stderr] Downloaded miniz_oxide v0.4.0 [INFO] [stderr] Downloaded num-rational v0.3.0 [INFO] [stderr] Downloaded glutin v0.21.2 [INFO] [stderr] Downloaded cc v1.0.58 [INFO] [stderr] Downloaded rayon-core v1.7.1 [INFO] [stderr] Downloaded pistoncore-glutin_window v0.65.0 [INFO] [stderr] Downloaded gl_generator v0.10.0 [INFO] [stderr] Downloaded backtrace v0.3.50 [INFO] [stderr] Downloaded serde v1.0.114 [INFO] [stderr] Downloaded pistoncore-window v0.46.0 [INFO] [stderr] Downloaded rayon v1.3.1 [INFO] [stderr] Downloaded syn v1.0.37 [INFO] [stderr] Downloaded image v0.23.8 [INFO] [stderr] Downloaded regex v1.3.9 [INFO] [stderr] Downloaded regex-syntax v0.6.18 [INFO] [stderr] Downloaded piston2d-gfx_graphics v0.68.0 [INFO] [stderr] Downloaded libc v0.2.74 [INFO] [stderr] Downloaded piston_window v0.110.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 25668e13d79c04056bb7a854f7e2069a0150bb1fcc016f36d1aa6c2b7c2a3454 [INFO] running `Command { std: "docker" "start" "-a" "25668e13d79c04056bb7a854f7e2069a0150bb1fcc016f36d1aa6c2b7c2a3454", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "25668e13d79c04056bb7a854f7e2069a0150bb1fcc016f36d1aa6c2b7c2a3454", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "25668e13d79c04056bb7a854f7e2069a0150bb1fcc016f36d1aa6c2b7c2a3454", kill_on_drop: false }` [INFO] [stdout] 25668e13d79c04056bb7a854f7e2069a0150bb1fcc016f36d1aa6c2b7c2a3454 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 89068f0636ff1fe6d77b65e880c2bce920bf4101665bee7bd757e237cf1d6b54 [INFO] running `Command { std: "docker" "start" "-a" "89068f0636ff1fe6d77b65e880c2bce920bf4101665bee7bd757e237cf1d6b54", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling libc v0.2.74 [INFO] [stderr] Compiling xml-rs v0.8.3 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling proc-macro2 v1.0.19 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling syn v1.0.37 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling libloading v0.6.2 [INFO] [stderr] Compiling piston-float v1.0.0 [INFO] [stderr] Compiling nix v0.14.1 [INFO] [stderr] Compiling rayon-core v1.7.1 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling serde_derive v1.0.114 [INFO] [stderr] Compiling pkg-config v0.3.18 [INFO] [stderr] Compiling serde v1.0.114 [INFO] [stderr] Compiling piston-graphics_api_version v0.2.0 [INFO] [stderr] Compiling piston-viewport v1.0.0 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling memoffset v0.5.5 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling dlib v0.4.2 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling wayland-sys v0.21.13 [INFO] [stderr] Compiling rayon v1.3.1 [INFO] [stderr] Compiling smallvec v0.6.13 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling stb_truetype v0.3.1 [INFO] [stderr] Compiling num-iter v0.1.41 [INFO] [stderr] Compiling num-rational v0.3.0 [INFO] [stderr] Compiling walkdir v2.3.1 [INFO] [stderr] Compiling miniz_oxide v0.3.7 [INFO] [stderr] Compiling draw_state v0.8.0 [INFO] [stderr] Compiling cc v1.0.58 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling gl_generator v0.13.1 [INFO] [stderr] Compiling x11-dl v2.18.5 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling lzw v0.10.0 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling ordered-float v1.1.0 [INFO] [stderr] Compiling approx v0.3.2 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling crossbeam-queue v0.2.3 [INFO] [stderr] Compiling rusttype v0.8.3 [INFO] [stderr] Compiling line_drawing v0.7.0 [INFO] [stderr] Compiling wayland-scanner v0.21.13 [INFO] [stderr] Compiling either v1.5.3 [INFO] [stderr] Compiling memmap v0.7.0 [INFO] [stderr] Compiling gfx_core v0.9.2 [INFO] [stderr] Compiling glutin_glx_sys v0.1.6 [INFO] [stderr] Compiling glutin_egl_sys v0.1.4 [INFO] [stderr] Compiling rusttype v0.7.9 [INFO] [stderr] Compiling andrew v0.2.1 [INFO] [stderr] Compiling crossbeam-deque v0.7.3 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Compiling gl_generator v0.10.0 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling deflate v0.8.6 [INFO] [stderr] Compiling lock_api v0.3.4 [INFO] [stderr] Compiling color_quant v1.0.1 [INFO] [stderr] Compiling gif v0.10.3 [INFO] [stderr] Compiling gl v0.11.0 [INFO] [stderr] Compiling png v0.16.7 [INFO] [stderr] Compiling gfx_gl v0.6.1 [INFO] [stderr] Compiling tiff v0.5.0 [INFO] [stderr] Compiling shared_library v0.1.9 [INFO] [stderr] Compiling raw-window-handle v0.3.3 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling scoped_threadpool v0.1.9 [INFO] [stderr] Compiling piston-texture v0.8.0 [INFO] [stderr] Compiling bytemuck v1.3.1 [INFO] [stderr] Compiling wayland-client v0.21.13 [INFO] [stderr] Compiling wayland-protocols v0.21.13 [INFO] [stderr] Compiling gfx v0.18.2 [INFO] [stderr] Compiling aho-corasick v0.7.13 [INFO] [stderr] Compiling osmesa-sys v0.1.2 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling shader_version v0.6.0 [INFO] [stderr] Compiling vecmath v1.0.0 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Compiling interpolation v0.2.0 [INFO] [stderr] Compiling regex-syntax v0.6.18 [INFO] [stderr] Compiling read_color v1.0.0 [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling termcolor v1.1.0 [INFO] [stderr] Compiling anyhow v1.0.32 [INFO] [stderr] Compiling piston-shaders_graphics2d v0.3.1 [INFO] [stderr] Compiling piston2d-graphics v0.36.0 [INFO] [stderr] Compiling wayland-commons v0.21.13 [INFO] [stderr] Compiling thiserror-impl v1.0.20 [INFO] [stderr] Compiling getset v0.1.1 [INFO] [stderr] Compiling jpeg-decoder v0.1.20 [INFO] [stderr] Compiling image v0.23.8 [INFO] [stderr] Compiling thiserror v1.0.20 [INFO] [stderr] Compiling gfx_device_gl v0.16.2 [INFO] [stderr] Compiling regex v1.3.9 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling pistoncore-input v1.0.0 [INFO] [stderr] Compiling pretty_env_logger v0.4.0 [INFO] [stderr] Compiling piston-gfx_texture v0.41.0 [INFO] [stderr] Compiling piston2d-gfx_graphics v0.68.0 [INFO] [stderr] Compiling pistoncore-window v0.46.0 [INFO] [stderr] Compiling pistoncore-event_loop v0.51.0 [INFO] [stderr] Compiling piston v0.51.0 [INFO] [stderr] Compiling smithay-client-toolkit v0.4.6 [INFO] [stderr] Compiling winit v0.19.5 [INFO] [stderr] Compiling glutin v0.21.2 [INFO] [stderr] Compiling pistoncore-glutin_window v0.65.0 [INFO] [stderr] Compiling piston_window v0.110.0 [INFO] [stderr] Compiling nes v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[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 `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/apu.rs:12:27 [INFO] [stdout] | [INFO] [stdout] 12 | fn device_read(&self, address: u16) -> u8 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 12 | fn device_read(&self, _address: u16) -> u8 { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `OAMDMA` [INFO] [stdout] | [INFO] [stdout] 12 - fn device_read(&self, address: u16) -> u8 { [INFO] [stdout] 12 + fn device_read(&self, constants::OAMDMA: u16) -> u8 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/apu.rs:18:32 [INFO] [stdout] | [INFO] [stdout] 18 | fn device_write(&mut self, address: u16, value: u8) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 18 | fn device_write(&mut self, _address: u16, value: u8) { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `OAMDMA` [INFO] [stdout] | [INFO] [stdout] 18 - fn device_write(&mut self, address: u16, value: u8) { [INFO] [stdout] 18 + fn device_write(&mut self, constants::OAMDMA: u16, value: u8) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/apu.rs:18:46 [INFO] [stdout] | [INFO] [stdout] 18 | fn device_write(&mut self, address: u16, value: u8) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/ppu.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | fn device_read(&self, address: u16) -> u8 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 22 | fn device_read(&self, _address: u16) -> u8 { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `OAMDMA` [INFO] [stdout] | [INFO] [stdout] 22 - fn device_read(&self, address: u16) -> u8 { [INFO] [stdout] 22 + fn device_read(&self, constants::OAMDMA: u16) -> u8 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/rom.rs:57:27 [INFO] [stdout] | [INFO] [stdout] 57 | fn device_read(&self, address: u16) -> u8 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 57 | fn device_read(&self, _address: u16) -> u8 { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `OAMDMA` [INFO] [stdout] | [INFO] [stdout] 57 - fn device_read(&self, address: u16) -> u8 { [INFO] [stdout] 57 + fn device_read(&self, constants::OAMDMA: u16) -> u8 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bus` [INFO] [stdout] --> src/lib.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let mut bus = Bus::new( [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let mut bus = Bus::new( [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: constant `PPUCTRL` is never used [INFO] [stdout] --> src/constants.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | PPUCTRL = 0x2000; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `addresses` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PPUMASK` is never used [INFO] [stdout] --> src/constants.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | PPUMASK = 0x2001; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `addresses` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PPUSTATUS` is never used [INFO] [stdout] --> src/constants.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | PPUSTATUS = 0x2002; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `addresses` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OAMADDR` is never used [INFO] [stdout] --> src/constants.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | OAMADDR = 0x2003; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `addresses` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OAMDATA` is never used [INFO] [stdout] --> src/constants.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | OAMDATA = 0x2004; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `addresses` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PPUSCROLL` is never used [INFO] [stdout] --> src/constants.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | PPUSCROLL = 0x2005; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `addresses` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PPUADDR` is never used [INFO] [stdout] --> src/constants.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | PPUADDR = 0x2006; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `addresses` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PPUDATA` is never used [INFO] [stdout] --> src/constants.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | PPUDATA = 0x2007; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `addresses` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OAMDMA` is never used [INFO] [stdout] --> src/constants.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | OAMDMA = 0x4014; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `addresses` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ppu`, `apu`, and `rom` are never read [INFO] [stdout] --> src/bus.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Bus { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 6 | ppu: Ppu, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | apu: Apu, [INFO] [stdout] | ^^^ [INFO] [stdout] 8 | rom: Rom, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `read`, `select_device`, `write`, and `select_device_mut` are never used [INFO] [stdout] --> src/bus.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Bus { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn read(&self, address: u16) -> u8 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn select_device(&self, address: u16) -> &dyn DeviceRead { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn write(&mut self, address: u16, value: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn select_device_mut(&mut self, address: u16) -> &mut dyn DeviceWrite { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `DeviceRead` is never used [INFO] [stdout] --> src/bus.rs:42:11 [INFO] [stdout] | [INFO] [stdout] 42 | pub trait DeviceRead { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `DeviceWrite` is never used [INFO] [stdout] --> src/bus.rs:46:11 [INFO] [stdout] | [INFO] [stdout] 46 | pub trait DeviceWrite { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `address_active` is never read [INFO] [stdout] --> src/ppu.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Ppu { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 5 | address_active: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `update_address_active` is never used [INFO] [stdout] --> src/ppu.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Ppu { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | fn update_address_active(&mut self, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `prg_size`, `chr_size`, and `bytes` are never read [INFO] [stdout] --> src/rom.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Rom { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 16 | prg_size: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 17 | chr_size: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 18 | bytes: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_bytes` is never used [INFO] [stdout] --> src/rom.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Rom { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn as_bytes(self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `BitRead` is never used [INFO] [stdout] --> src/types.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait BitRead: Sized + Shl { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 40s [INFO] running `Command { std: "docker" "inspect" "89068f0636ff1fe6d77b65e880c2bce920bf4101665bee7bd757e237cf1d6b54", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "89068f0636ff1fe6d77b65e880c2bce920bf4101665bee7bd757e237cf1d6b54", kill_on_drop: false }` [INFO] [stdout] 89068f0636ff1fe6d77b65e880c2bce920bf4101665bee7bd757e237cf1d6b54 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c06f03c83726e238673ef1035c2d89c8eaa9460c5191edc6e121666161527f5b [INFO] running `Command { std: "docker" "start" "-a" "c06f03c83726e238673ef1035c2d89c8eaa9460c5191edc6e121666161527f5b", kill_on_drop: false }` [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[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 `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/apu.rs:12:27 [INFO] [stdout] | [INFO] [stdout] 12 | fn device_read(&self, address: u16) -> u8 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 12 | fn device_read(&self, _address: u16) -> u8 { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `OAMDMA` [INFO] [stdout] | [INFO] [stdout] 12 - fn device_read(&self, address: u16) -> u8 { [INFO] [stdout] 12 + fn device_read(&self, constants::OAMDMA: u16) -> u8 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/apu.rs:18:32 [INFO] [stdout] | [INFO] [stdout] 18 | fn device_write(&mut self, address: u16, value: u8) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 18 | fn device_write(&mut self, _address: u16, value: u8) { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `OAMDMA` [INFO] [stdout] | [INFO] [stdout] 18 - fn device_write(&mut self, address: u16, value: u8) { [INFO] [stdout] 18 + fn device_write(&mut self, constants::OAMDMA: u16, value: u8) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/apu.rs:18:46 [INFO] [stdout] | [INFO] [stdout] 18 | fn device_write(&mut self, address: u16, value: u8) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/ppu.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | fn device_read(&self, address: u16) -> u8 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 22 | fn device_read(&self, _address: u16) -> u8 { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `OAMDMA` [INFO] [stdout] | [INFO] [stdout] 22 - fn device_read(&self, address: u16) -> u8 { [INFO] [stdout] 22 + fn device_read(&self, constants::OAMDMA: u16) -> u8 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/rom.rs:57:27 [INFO] [stdout] | [INFO] [stdout] 57 | fn device_read(&self, address: u16) -> u8 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 57 | fn device_read(&self, _address: u16) -> u8 { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `OAMDMA` [INFO] [stdout] | [INFO] [stdout] 57 - fn device_read(&self, address: u16) -> u8 { [INFO] [stdout] 57 + fn device_read(&self, constants::OAMDMA: u16) -> u8 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bus` [INFO] [stdout] --> src/lib.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let mut bus = Bus::new( [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let mut bus = Bus::new( [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: constant `PPUCTRL` is never used [INFO] [stdout] --> src/constants.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | PPUCTRL = 0x2000; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `addresses` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PPUMASK` is never used [INFO] [stdout] --> src/constants.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | PPUMASK = 0x2001; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `addresses` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PPUSTATUS` is never used [INFO] [stdout] --> src/constants.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | PPUSTATUS = 0x2002; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `addresses` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OAMADDR` is never used [INFO] [stdout] --> src/constants.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | OAMADDR = 0x2003; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `addresses` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OAMDATA` is never used [INFO] [stdout] --> src/constants.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | OAMDATA = 0x2004; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `addresses` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PPUSCROLL` is never used [INFO] [stdout] --> src/constants.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | PPUSCROLL = 0x2005; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `addresses` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PPUADDR` is never used [INFO] [stdout] --> src/constants.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | PPUADDR = 0x2006; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `addresses` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PPUDATA` is never used [INFO] [stdout] --> src/constants.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | PPUDATA = 0x2007; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `addresses` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OAMDMA` is never used [INFO] [stdout] --> src/constants.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | OAMDMA = 0x4014; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `addresses` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ppu`, `apu`, and `rom` are never read [INFO] [stdout] --> src/bus.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Bus { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 6 | ppu: Ppu, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | apu: Apu, [INFO] [stdout] | ^^^ [INFO] [stdout] 8 | rom: Rom, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `read`, `select_device`, `write`, and `select_device_mut` are never used [INFO] [stdout] --> src/bus.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Bus { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn read(&self, address: u16) -> u8 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn select_device(&self, address: u16) -> &dyn DeviceRead { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn write(&mut self, address: u16, value: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn select_device_mut(&mut self, address: u16) -> &mut dyn DeviceWrite { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `DeviceRead` is never used [INFO] [stdout] --> src/bus.rs:42:11 [INFO] [stdout] | [INFO] [stdout] 42 | pub trait DeviceRead { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `DeviceWrite` is never used [INFO] [stdout] --> src/bus.rs:46:11 [INFO] [stdout] | [INFO] [stdout] 46 | pub trait DeviceWrite { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `address_active` is never read [INFO] [stdout] --> src/ppu.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Ppu { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 5 | address_active: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `update_address_active` is never used [INFO] [stdout] --> src/ppu.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Ppu { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | fn update_address_active(&mut self, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `prg_size`, `chr_size`, and `bytes` are never read [INFO] [stdout] --> src/rom.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Rom { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 16 | prg_size: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 17 | chr_size: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 18 | bytes: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_bytes` is never used [INFO] [stdout] --> src/rom.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Rom { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn as_bytes(self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `BitRead` is never used [INFO] [stdout] --> src/types.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait BitRead: Sized + Shl { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling nes v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[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 `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/apu.rs:12:27 [INFO] [stdout] | [INFO] [stdout] 12 | fn device_read(&self, address: u16) -> u8 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 12 | fn device_read(&self, _address: u16) -> u8 { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `OAMDMA` [INFO] [stdout] | [INFO] [stdout] 12 - fn device_read(&self, address: u16) -> u8 { [INFO] [stdout] 12 + fn device_read(&self, constants::OAMDMA: u16) -> u8 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/apu.rs:18:32 [INFO] [stdout] | [INFO] [stdout] 18 | fn device_write(&mut self, address: u16, value: u8) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 18 | fn device_write(&mut self, _address: u16, value: u8) { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `OAMDMA` [INFO] [stdout] | [INFO] [stdout] 18 - fn device_write(&mut self, address: u16, value: u8) { [INFO] [stdout] 18 + fn device_write(&mut self, constants::OAMDMA: u16, value: u8) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/apu.rs:18:46 [INFO] [stdout] | [INFO] [stdout] 18 | fn device_write(&mut self, address: u16, value: u8) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/ppu.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | fn device_read(&self, address: u16) -> u8 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 22 | fn device_read(&self, _address: u16) -> u8 { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `OAMDMA` [INFO] [stdout] | [INFO] [stdout] 22 - fn device_read(&self, address: u16) -> u8 { [INFO] [stdout] 22 + fn device_read(&self, constants::OAMDMA: u16) -> u8 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/rom.rs:57:27 [INFO] [stdout] | [INFO] [stdout] 57 | fn device_read(&self, address: u16) -> u8 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 57 | fn device_read(&self, _address: u16) -> u8 { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `OAMDMA` [INFO] [stdout] | [INFO] [stdout] 57 - fn device_read(&self, address: u16) -> u8 { [INFO] [stdout] 57 + fn device_read(&self, constants::OAMDMA: u16) -> u8 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bus` [INFO] [stdout] --> src/lib.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let mut bus = Bus::new( [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let mut bus = Bus::new( [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: constant `PPUCTRL` is never used [INFO] [stdout] --> src/constants.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | PPUCTRL = 0x2000; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `addresses` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PPUMASK` is never used [INFO] [stdout] --> src/constants.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | PPUMASK = 0x2001; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `addresses` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PPUSTATUS` is never used [INFO] [stdout] --> src/constants.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | PPUSTATUS = 0x2002; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `addresses` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OAMADDR` is never used [INFO] [stdout] --> src/constants.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | OAMADDR = 0x2003; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `addresses` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OAMDATA` is never used [INFO] [stdout] --> src/constants.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | OAMDATA = 0x2004; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `addresses` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PPUSCROLL` is never used [INFO] [stdout] --> src/constants.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | PPUSCROLL = 0x2005; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `addresses` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PPUDATA` is never used [INFO] [stdout] --> src/constants.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | PPUDATA = 0x2007; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `addresses` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OAMDMA` is never used [INFO] [stdout] --> src/constants.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | OAMDMA = 0x4014; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `addresses` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ppu`, `apu`, and `rom` are never read [INFO] [stdout] --> src/bus.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Bus { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 6 | ppu: Ppu, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | apu: Apu, [INFO] [stdout] | ^^^ [INFO] [stdout] 8 | rom: Rom, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `read`, `select_device`, `write`, and `select_device_mut` are never used [INFO] [stdout] --> src/bus.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Bus { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn read(&self, address: u16) -> u8 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn select_device(&self, address: u16) -> &dyn DeviceRead { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn write(&mut self, address: u16, value: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn select_device_mut(&mut self, address: u16) -> &mut dyn DeviceWrite { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `DeviceRead` is never used [INFO] [stdout] --> src/bus.rs:42:11 [INFO] [stdout] | [INFO] [stdout] 42 | pub trait DeviceRead { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_bytes` is never used [INFO] [stdout] --> src/rom.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Rom { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn as_bytes(self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `BitRead` is never used [INFO] [stdout] --> src/types.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait BitRead: Sized + Shl { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.74s [INFO] running `Command { std: "docker" "inspect" "c06f03c83726e238673ef1035c2d89c8eaa9460c5191edc6e121666161527f5b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c06f03c83726e238673ef1035c2d89c8eaa9460c5191edc6e121666161527f5b", kill_on_drop: false }` [INFO] [stdout] c06f03c83726e238673ef1035c2d89c8eaa9460c5191edc6e121666161527f5b