[INFO] cloning repository https://github.com/adamtpowell/chip8-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/adamtpowell/chip8-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fadamtpowell%2Fchip8-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fadamtpowell%2Fchip8-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 764c8b2644bd73f5ab4ff1e2f07e7cf82f5c36b4 [INFO] building adamtpowell/chip8-rust against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fadamtpowell%2Fchip8-rust" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/adamtpowell/chip8-rust on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/adamtpowell/chip8-rust [INFO] finished tweaking git repo https://github.com/adamtpowell/chip8-rust [INFO] tweaked toml for git repo https://github.com/adamtpowell/chip8-rust written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/adamtpowell/chip8-rust 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wayland-cursor v0.25.0 [INFO] [stderr] Downloaded wayland-sys v0.25.0 [INFO] [stderr] Downloaded wayland-scanner v0.25.0 [INFO] [stderr] Downloaded wayland-commons v0.25.0 [INFO] [stderr] Downloaded xkbcommon-sys v0.7.4 [INFO] [stderr] Downloaded wayland-client v0.25.0 [INFO] [stderr] Downloaded wayland-protocols v0.25.0 [INFO] [stderr] Downloaded minifb v0.17.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 41208c219add74cd53e824f97448a2fad4e0fc7653cd0f8cd8d501909ff0c7ca [INFO] running `Command { std: "docker" "start" "-a" "41208c219add74cd53e824f97448a2fad4e0fc7653cd0f8cd8d501909ff0c7ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "41208c219add74cd53e824f97448a2fad4e0fc7653cd0f8cd8d501909ff0c7ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41208c219add74cd53e824f97448a2fad4e0fc7653cd0f8cd8d501909ff0c7ca", kill_on_drop: false }` [INFO] [stdout] 41208c219add74cd53e824f97448a2fad4e0fc7653cd0f8cd8d501909ff0c7ca [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d1c31ab4313ad2997cccc184628f27bbd36aabee038d0a6d87e6990be5d1861e [INFO] running `Command { std: "docker" "start" "-a" "d1c31ab4313ad2997cccc184628f27bbd36aabee038d0a6d87e6990be5d1861e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.74 [INFO] [stderr] Compiling proc-macro2 v1.0.19 [INFO] [stderr] Compiling xml-rs v0.8.3 [INFO] [stderr] Compiling libloading v0.6.2 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling pkg-config v0.3.18 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling nix v0.17.0 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling smallvec v1.4.1 [INFO] [stderr] Compiling dlib v0.4.2 [INFO] [stderr] Compiling wayland-sys v0.25.0 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling once_cell v1.4.0 [INFO] [stderr] Compiling xkbcommon-sys v0.7.4 [INFO] [stderr] Compiling scoped-tls v1.0.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.8 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling x11-dl v2.18.5 [INFO] [stderr] Compiling cc v1.0.58 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling cast v0.2.3 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling wayland-scanner v0.25.0 [INFO] [stderr] Compiling minifb v0.17.0 [INFO] [stderr] Compiling raw-window-handle v0.3.3 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling xkb v0.2.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling wayland-client v0.25.0 [INFO] [stderr] Compiling wayland-protocols v0.25.0 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling tempfile v3.1.0 [INFO] [stderr] Compiling wayland-commons v0.25.0 [INFO] [stderr] Compiling wayland-cursor v0.25.0 [INFO] [stderr] Compiling chip-8 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `RGBA` [INFO] [stdout] --> src/emulator.rs:2:29 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::screen::{Screen, RGBA}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/emulator.rs:96:16 [INFO] [stdout] | [INFO] [stdout] 96 | if (memory.len() > 0x200 + i) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 96 - if (memory.len() > 0x200 + i) { [INFO] [stdout] 96 + if memory.len() > 0x200 + i { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inputs` [INFO] [stdout] --> src/emulator.rs:113:46 [INFO] [stdout] | [INFO] [stdout] 113 | fn run_instruction(&mut self, inputs:&HexPad, screen: &mut S) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_inputs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `screen` [INFO] [stdout] --> src/emulator.rs:113:62 [INFO] [stdout] | [INFO] [stdout] 113 | fn run_instruction(&mut self, inputs:&HexPad, screen: &mut S) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_screen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x1` [INFO] [stdout] --> src/screen.rs:16:24 [INFO] [stdout] | [INFO] [stdout] 16 | fn line(&mut self, x1: i32, x2: i32, y1: i32, y2: i32, color: RGBA) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x2` [INFO] [stdout] --> src/screen.rs:16:33 [INFO] [stdout] | [INFO] [stdout] 16 | fn line(&mut self, x1: i32, x2: i32, y1: i32, y2: i32, color: RGBA) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y1` [INFO] [stdout] --> src/screen.rs:16:42 [INFO] [stdout] | [INFO] [stdout] 16 | fn line(&mut self, x1: i32, x2: i32, y1: i32, y2: i32, color: RGBA) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_y1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y2` [INFO] [stdout] --> src/screen.rs:16:51 [INFO] [stdout] | [INFO] [stdout] 16 | fn line(&mut self, x1: i32, x2: i32, y1: i32, y2: i32, color: RGBA) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_y2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/screen.rs:16:60 [INFO] [stdout] | [INFO] [stdout] 16 | fn line(&mut self, x1: i32, x2: i32, y1: i32, y2: i32, color: RGBA) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/emulator.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct HexPad { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 11 | pub zero: bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | pub one: bool, [INFO] [stdout] | ^^^ [INFO] [stdout] 13 | pub two: bool, [INFO] [stdout] | ^^^ [INFO] [stdout] 14 | pub three: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | pub four: bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | pub five: bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | pub six: bool, [INFO] [stdout] | ^^^ [INFO] [stdout] 18 | pub seven: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 19 | pub eight: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | pub nine: bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] 21 | pub a: bool, [INFO] [stdout] | ^ [INFO] [stdout] 22 | pub b: bool, [INFO] [stdout] | ^ [INFO] [stdout] 23 | pub c: bool, [INFO] [stdout] | ^ [INFO] [stdout] 24 | pub d: bool, [INFO] [stdout] | ^ [INFO] [stdout] 25 | pub e: bool, [INFO] [stdout] | ^ [INFO] [stdout] 26 | pub f: bool, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/emulator.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct Emulator { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 30 | time: f32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 31 | memory: [u8; 4096], [INFO] [stdout] 32 | V: [u8; 16], [INFO] [stdout] | ^ [INFO] [stdout] 33 | I: u16, [INFO] [stdout] | ^ [INFO] [stdout] 34 | PC: u16, [INFO] [stdout] 35 | SP: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 36 | stack: [u16; 16], [INFO] [stdout] | ^^^^^ [INFO] [stdout] 37 | delay: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 38 | sound: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_n` is never used [INFO] [stdout] --> src/emulator.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 53 | impl Chip8Instruction { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | fn get_n(&self) -> u8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `a` is never read [INFO] [stdout] --> src/screen.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct RGBA { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 5 | a: u8, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/screen.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl RGBA { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 9 | pub fn new(r: u8, g: u8, b: u8, a: u8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `write_pixel` and `line` are never used [INFO] [stdout] --> src/screen.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub trait Screen { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] 15 | fn write_pixel(&mut self, x: u32, y: u32, color: &RGBA); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 16 | fn line(&mut self, x1: i32, x2: i32, y1: i32, y2: i32, color: RGBA) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `V` should have a snake case name [INFO] [stdout] --> src/emulator.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | V: [u8; 16], [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `I` should have a snake case name [INFO] [stdout] --> src/emulator.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | I: u16, [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `PC` should have a snake case name [INFO] [stdout] --> src/emulator.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | PC: u16, [INFO] [stdout] | ^^ help: convert the identifier to snake case: `pc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `SP` should have a snake case name [INFO] [stdout] --> src/emulator.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | SP: u8, [INFO] [stdout] | ^^ help: convert the identifier to snake case: `sp` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 20.01s [INFO] running `Command { std: "docker" "inspect" "d1c31ab4313ad2997cccc184628f27bbd36aabee038d0a6d87e6990be5d1861e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d1c31ab4313ad2997cccc184628f27bbd36aabee038d0a6d87e6990be5d1861e", kill_on_drop: false }` [INFO] [stdout] d1c31ab4313ad2997cccc184628f27bbd36aabee038d0a6d87e6990be5d1861e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7f21626c88c0ebe4352e55efa571bf7165bee1d0239f24aac0ac8e8ea3d23ba9 [INFO] running `Command { std: "docker" "start" "-a" "7f21626c88c0ebe4352e55efa571bf7165bee1d0239f24aac0ac8e8ea3d23ba9", kill_on_drop: false }` [INFO] [stderr] Compiling chip-8 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `RGBA` [INFO] [stdout] --> src/emulator.rs:2:29 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::screen::{Screen, RGBA}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/emulator.rs:96:16 [INFO] [stdout] | [INFO] [stdout] 96 | if (memory.len() > 0x200 + i) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 96 - if (memory.len() > 0x200 + i) { [INFO] [stdout] 96 + if memory.len() > 0x200 + i { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inputs` [INFO] [stdout] --> src/emulator.rs:113:46 [INFO] [stdout] | [INFO] [stdout] 113 | fn run_instruction(&mut self, inputs:&HexPad, screen: &mut S) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_inputs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `screen` [INFO] [stdout] --> src/emulator.rs:113:62 [INFO] [stdout] | [INFO] [stdout] 113 | fn run_instruction(&mut self, inputs:&HexPad, screen: &mut S) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_screen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x1` [INFO] [stdout] --> src/screen.rs:16:24 [INFO] [stdout] | [INFO] [stdout] 16 | fn line(&mut self, x1: i32, x2: i32, y1: i32, y2: i32, color: RGBA) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x2` [INFO] [stdout] --> src/screen.rs:16:33 [INFO] [stdout] | [INFO] [stdout] 16 | fn line(&mut self, x1: i32, x2: i32, y1: i32, y2: i32, color: RGBA) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y1` [INFO] [stdout] --> src/screen.rs:16:42 [INFO] [stdout] | [INFO] [stdout] 16 | fn line(&mut self, x1: i32, x2: i32, y1: i32, y2: i32, color: RGBA) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_y1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y2` [INFO] [stdout] --> src/screen.rs:16:51 [INFO] [stdout] | [INFO] [stdout] 16 | fn line(&mut self, x1: i32, x2: i32, y1: i32, y2: i32, color: RGBA) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_y2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/screen.rs:16:60 [INFO] [stdout] | [INFO] [stdout] 16 | fn line(&mut self, x1: i32, x2: i32, y1: i32, y2: i32, color: RGBA) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/emulator.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct HexPad { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 11 | pub zero: bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | pub one: bool, [INFO] [stdout] | ^^^ [INFO] [stdout] 13 | pub two: bool, [INFO] [stdout] | ^^^ [INFO] [stdout] 14 | pub three: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | pub four: bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | pub five: bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | pub six: bool, [INFO] [stdout] | ^^^ [INFO] [stdout] 18 | pub seven: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 19 | pub eight: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | pub nine: bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] 21 | pub a: bool, [INFO] [stdout] | ^ [INFO] [stdout] 22 | pub b: bool, [INFO] [stdout] | ^ [INFO] [stdout] 23 | pub c: bool, [INFO] [stdout] | ^ [INFO] [stdout] 24 | pub d: bool, [INFO] [stdout] | ^ [INFO] [stdout] 25 | pub e: bool, [INFO] [stdout] | ^ [INFO] [stdout] 26 | pub f: bool, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/emulator.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct Emulator { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 30 | time: f32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 31 | memory: [u8; 4096], [INFO] [stdout] 32 | V: [u8; 16], [INFO] [stdout] | ^ [INFO] [stdout] 33 | I: u16, [INFO] [stdout] | ^ [INFO] [stdout] 34 | PC: u16, [INFO] [stdout] 35 | SP: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 36 | stack: [u16; 16], [INFO] [stdout] | ^^^^^ [INFO] [stdout] 37 | delay: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 38 | sound: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_n` is never used [INFO] [stdout] --> src/emulator.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 53 | impl Chip8Instruction { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | fn get_n(&self) -> u8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `a` is never read [INFO] [stdout] --> src/screen.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct RGBA { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 5 | a: u8, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/screen.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl RGBA { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 9 | pub fn new(r: u8, g: u8, b: u8, a: u8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `write_pixel` and `line` are never used [INFO] [stdout] --> src/screen.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub trait Screen { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] 15 | fn write_pixel(&mut self, x: u32, y: u32, color: &RGBA); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 16 | fn line(&mut self, x1: i32, x2: i32, y1: i32, y2: i32, color: RGBA) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `V` should have a snake case name [INFO] [stdout] --> src/emulator.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | V: [u8; 16], [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `I` should have a snake case name [INFO] [stdout] --> src/emulator.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | I: u16, [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `PC` should have a snake case name [INFO] [stdout] --> src/emulator.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | PC: u16, [INFO] [stdout] | ^^ help: convert the identifier to snake case: `pc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `SP` should have a snake case name [INFO] [stdout] --> src/emulator.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | SP: u8, [INFO] [stdout] | ^^ help: convert the identifier to snake case: `sp` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.15s [INFO] running `Command { std: "docker" "inspect" "7f21626c88c0ebe4352e55efa571bf7165bee1d0239f24aac0ac8e8ea3d23ba9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7f21626c88c0ebe4352e55efa571bf7165bee1d0239f24aac0ac8e8ea3d23ba9", kill_on_drop: false }` [INFO] [stdout] 7f21626c88c0ebe4352e55efa571bf7165bee1d0239f24aac0ac8e8ea3d23ba9