[INFO] cloning repository https://github.com/julian9499/chip8 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/julian9499/chip8" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjulian9499%2Fchip8", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjulian9499%2Fchip8'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b0a6272cd95ac16208d4c60b3fa2bcf7cda4c62c [INFO] building julian9499/chip8 against master#87788097b776f8e3662f76627944230684b671bd for pr-101591 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjulian9499%2Fchip8" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/julian9499/chip8 on toolchain 87788097b776f8e3662f76627944230684b671bd [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+87788097b776f8e3662f76627944230684b671bd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/julian9499/chip8 [INFO] finished tweaking git repo https://github.com/julian9499/chip8 [INFO] tweaked toml for git repo https://github.com/julian9499/chip8 written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/julian9499/chip8 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+87788097b776f8e3662f76627944230684b671bd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pollster v0.2.0 [INFO] [stderr] Downloaded device_query v0.1.3 [INFO] [stderr] Downloaded winit_input_helper v0.12.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+87788097b776f8e3662f76627944230684b671bd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 238f5a3741601b002a99ffaa893c862894a44f9080df8a318acb55d9ff73520c [INFO] running `Command { std: "docker" "start" "-a" "238f5a3741601b002a99ffaa893c862894a44f9080df8a318acb55d9ff73520c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "238f5a3741601b002a99ffaa893c862894a44f9080df8a318acb55d9ff73520c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "238f5a3741601b002a99ffaa893c862894a44f9080df8a318acb55d9ff73520c", kill_on_drop: false }` [INFO] [stdout] 238f5a3741601b002a99ffaa893c862894a44f9080df8a318acb55d9ff73520c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+87788097b776f8e3662f76627944230684b671bd" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] de119d4439bbc7aac6e797c8fc461ae69ee961fc065256e2eda4851836f2c8c0 [INFO] running `Command { std: "docker" "start" "-a" "de119d4439bbc7aac6e797c8fc461ae69ee961fc065256e2eda4851836f2c8c0", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling pkg-config v0.3.18 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Compiling once_cell v1.12.0 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling xml-rs v0.8.3 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling syn v1.0.96 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling cty v0.2.2 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling khronos-egl v4.1.0 [INFO] [stderr] Compiling downcast-rs v1.2.0 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling unicode-width v0.1.9 [INFO] [stderr] Compiling scoped-tls v1.0.0 [INFO] [stderr] Compiling ash v0.34.0+1.2.203 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling hexf-parse v0.2.1 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling profiling v1.0.6 [INFO] [stderr] Compiling glow v0.11.2 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Compiling inplace_it v0.3.3 [INFO] [stderr] Compiling renderdoc-sys v0.7.1 [INFO] [stderr] Compiling bytemuck v1.9.1 [INFO] [stderr] Compiling winit v0.26.1 [INFO] [stderr] Compiling copyless v0.1.5 [INFO] [stderr] Compiling cpal v0.13.5 [INFO] [stderr] Compiling ppv-lite86 v0.2.9 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling anyhow v1.0.57 [INFO] [stderr] Compiling pollster v0.2.0 [INFO] [stderr] Compiling gpu-alloc-types v0.2.0 [INFO] [stderr] Compiling gpu-descriptor-types v0.1.1 [INFO] [stderr] Compiling wgpu-types v0.12.0 [INFO] [stderr] Compiling libloading v0.7.3 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling raw-window-handle v0.4.3 [INFO] [stderr] Compiling wgpu-core v0.12.2 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Compiling bit-set v0.5.2 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling indexmap v1.8.2 [INFO] [stderr] Compiling safe_arch v0.5.2 [INFO] [stderr] Compiling gpu-alloc v0.5.3 [INFO] [stderr] Compiling wayland-sys v0.29.4 [INFO] [stderr] Compiling alsa-sys v0.3.1 [INFO] [stderr] Compiling x11-dl v2.18.5 [INFO] [stderr] Compiling smithay-client-toolkit v0.15.4 [INFO] [stderr] Compiling x11 v2.18.2 [INFO] [stderr] Compiling device_query v0.1.3 [INFO] [stderr] Compiling dlib v0.5.0 [INFO] [stderr] Compiling wide v0.6.5 [INFO] [stderr] Compiling nom v7.1.1 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling wayland-scanner v0.29.4 [INFO] [stderr] Compiling getrandom v0.2.6 [INFO] [stderr] Compiling nix v0.22.3 [INFO] [stderr] Compiling memmap2 v0.3.1 [INFO] [stderr] Compiling mio v0.8.3 [INFO] [stderr] Compiling nix v0.23.1 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling spirv v0.2.0+1.5.4 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling ultraviolet v0.8.1 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling xcursor v0.3.4 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling gpu-descriptor v0.2.2 [INFO] [stderr] Compiling wayland-client v0.29.4 [INFO] [stderr] Compiling wayland-protocols v0.29.4 [INFO] [stderr] Compiling wayland-commons v0.29.4 [INFO] [stderr] Compiling calloop v0.9.3 [INFO] [stderr] Compiling alsa v0.6.0 [INFO] [stderr] Compiling thiserror-impl v1.0.31 [INFO] [stderr] Compiling wayland-cursor v0.29.4 [INFO] [stderr] Compiling thiserror v1.0.31 [INFO] [stderr] Compiling naga v0.8.5 [INFO] [stderr] Compiling winit_input_helper v0.12.0 [INFO] [stderr] Compiling wgpu-hal v0.12.5 [INFO] [stderr] Compiling wgpu v0.12.0 [INFO] [stderr] Compiling pixels v0.9.0 [INFO] [stderr] Compiling chip8 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ControlFlow`, `EventLoop` [INFO] [stdout] --> src/cpu.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | use winit::event_loop::{EventLoop, ControlFlow}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `winit::event::Event` [INFO] [stdout] --> src/cpu.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use winit::event::Event; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `winit::platform::unix::x11::Window` [INFO] [stdout] --> src/cpu.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use winit::platform::unix::x11::Window; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/cpu.rs:227:99 [INFO] [stdout] | [INFO] [stdout] 227 | let y_coord: u16 = (((y.wrapping_add(index as u8)) % 32) as u16).wrapping_mul((64 as u16)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 227 - let y_coord: u16 = (((y.wrapping_add(index as u8)) % 32) as u16).wrapping_mul((64 as u16)); [INFO] [stdout] 227 + let y_coord: u16 = (((y.wrapping_add(index as u8)) % 32) as u16).wrapping_mul(64 as u16); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread` [INFO] [stdout] --> src/chip8.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | use std::{thread, time}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/chip8.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use pixels::{Error, Pixels, SurfaceTexture}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `winit::platform::unix::WindowExtUnix` [INFO] [stdout] --> src/chip8.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use winit::platform::unix::WindowExtUnix; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Device` [INFO] [stdout] --> src/audio.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use cpal::{Device, Stream}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cpu.rs:246:14 [INFO] [stdout] | [INFO] [stdout] 246 | for (i, pixel) in self.framebuffer.iter_mut().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let args: Vec = env::args().collect(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/chip8.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let mut ten_millis = time::Duration::from_millis(16); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `clone` is never used [INFO] [stdout] --> src/chip8.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn clone(mem: Memory, cpu: Cpu) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/main.rs:16:26 [INFO] [stdout] | [INFO] [stdout] 16 | Err(a) => panic!(a) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 16 | Err(a) => panic!("{}", a) [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 16 | Err(a) => std::panic::panic_any(a) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | self.stream.pause(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | self.stream.play(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/audio.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | stream.pause(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 20s [INFO] running `Command { std: "docker" "inspect" "de119d4439bbc7aac6e797c8fc461ae69ee961fc065256e2eda4851836f2c8c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "de119d4439bbc7aac6e797c8fc461ae69ee961fc065256e2eda4851836f2c8c0", kill_on_drop: false }` [INFO] [stdout] de119d4439bbc7aac6e797c8fc461ae69ee961fc065256e2eda4851836f2c8c0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+87788097b776f8e3662f76627944230684b671bd" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bd3a4264b688b97f39033530f3894efcfd540ae23e4107f3de785fe23b883c85 [INFO] running `Command { std: "docker" "start" "-a" "bd3a4264b688b97f39033530f3894efcfd540ae23e4107f3de785fe23b883c85", kill_on_drop: false }` [INFO] [stderr] Compiling chip8 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ControlFlow`, `EventLoop` [INFO] [stdout] --> src/cpu.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | use winit::event_loop::{EventLoop, ControlFlow}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `winit::event::Event` [INFO] [stdout] --> src/cpu.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use winit::event::Event; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `winit::platform::unix::x11::Window` [INFO] [stdout] --> src/cpu.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use winit::platform::unix::x11::Window; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/cpu.rs:227:99 [INFO] [stdout] | [INFO] [stdout] 227 | let y_coord: u16 = (((y.wrapping_add(index as u8)) % 32) as u16).wrapping_mul((64 as u16)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 227 - let y_coord: u16 = (((y.wrapping_add(index as u8)) % 32) as u16).wrapping_mul((64 as u16)); [INFO] [stdout] 227 + let y_coord: u16 = (((y.wrapping_add(index as u8)) % 32) as u16).wrapping_mul(64 as u16); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread` [INFO] [stdout] --> src/chip8.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | use std::{thread, time}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/chip8.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use pixels::{Error, Pixels, SurfaceTexture}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `winit::platform::unix::WindowExtUnix` [INFO] [stdout] --> src/chip8.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use winit::platform::unix::WindowExtUnix; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Device` [INFO] [stdout] --> src/audio.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use cpal::{Device, Stream}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cpu.rs:246:14 [INFO] [stdout] | [INFO] [stdout] 246 | for (i, pixel) in self.framebuffer.iter_mut().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let args: Vec = env::args().collect(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/chip8.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let mut ten_millis = time::Duration::from_millis(16); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `clone` is never used [INFO] [stdout] --> src/chip8.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn clone(mem: Memory, cpu: Cpu) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/main.rs:16:26 [INFO] [stdout] | [INFO] [stdout] 16 | Err(a) => panic!(a) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 16 | Err(a) => panic!("{}", a) [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 16 | Err(a) => std::panic::panic_any(a) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | self.stream.pause(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | self.stream.play(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/audio.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | stream.pause(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.67s [INFO] running `Command { std: "docker" "inspect" "bd3a4264b688b97f39033530f3894efcfd540ae23e4107f3de785fe23b883c85", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bd3a4264b688b97f39033530f3894efcfd540ae23e4107f3de785fe23b883c85", kill_on_drop: false }` [INFO] [stdout] bd3a4264b688b97f39033530f3894efcfd540ae23e4107f3de785fe23b883c85