[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 try#9a3ef2cd3ecaae3c6ef59768612837d797602a6d for pr-137044-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fadamtpowell%2Fchip8-rust" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/adamtpowell/chip8-rust on toolchain 9a3ef2cd3ecaae3c6ef59768612837d797602a6d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "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-4-tc2/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" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 35773f2979ce02773fa29e6d2419e884dd30f2dd77fd9f5f33e5155f7b393361 [INFO] running `Command { std: "docker" "start" "-a" "35773f2979ce02773fa29e6d2419e884dd30f2dd77fd9f5f33e5155f7b393361", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "35773f2979ce02773fa29e6d2419e884dd30f2dd77fd9f5f33e5155f7b393361", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35773f2979ce02773fa29e6d2419e884dd30f2dd77fd9f5f33e5155f7b393361", kill_on_drop: false }` [INFO] [stdout] 35773f2979ce02773fa29e6d2419e884dd30f2dd77fd9f5f33e5155f7b393361 [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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8971868182ae6071975bad081e433acaf88d7b9758ce3a47897d373cd00d382b [INFO] running `Command { std: "docker" "start" "-a" "8971868182ae6071975bad081e433acaf88d7b9758ce3a47897d373cd00d382b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.74 [INFO] [stderr] Compiling proc-macro2 v1.0.19 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling unicode-xid v0.2.1 [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 nix v0.17.0 [INFO] [stderr] Compiling getrandom v0.1.14 [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 once_cell v1.4.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.8 [INFO] [stderr] Compiling scoped-tls v1.0.0 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling downcast-rs v1.2.0 [INFO] [stderr] Compiling cc v1.0.58 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling xkbcommon-sys v0.7.4 [INFO] [stderr] Compiling x11-dl v2.18.5 [INFO] [stderr] Compiling dlib v0.4.2 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling wayland-sys v0.25.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling cast v0.2.3 [INFO] [stderr] Compiling quote v1.0.7 [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 28.28s [INFO] running `Command { std: "docker" "inspect" "8971868182ae6071975bad081e433acaf88d7b9758ce3a47897d373cd00d382b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8971868182ae6071975bad081e433acaf88d7b9758ce3a47897d373cd00d382b", kill_on_drop: false }` [INFO] [stdout] 8971868182ae6071975bad081e433acaf88d7b9758ce3a47897d373cd00d382b [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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 15f9edef015d4e2a9ca4296ca57ede6f5a02f8287d27c09b36b9ca4294456bd6 [INFO] running `Command { std: "docker" "start" "-a" "15f9edef015d4e2a9ca4296ca57ede6f5a02f8287d27c09b36b9ca4294456bd6", 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.47s [INFO] running `Command { std: "docker" "inspect" "15f9edef015d4e2a9ca4296ca57ede6f5a02f8287d27c09b36b9ca4294456bd6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "15f9edef015d4e2a9ca4296ca57ede6f5a02f8287d27c09b36b9ca4294456bd6", kill_on_drop: false }` [INFO] [stdout] 15f9edef015d4e2a9ca4296ca57ede6f5a02f8287d27c09b36b9ca4294456bd6