[INFO] cloning repository https://github.com/BlueyNeilo/Chip8Emulator [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/BlueyNeilo/Chip8Emulator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBlueyNeilo%2FChip8Emulator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBlueyNeilo%2FChip8Emulator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a5d6eb3bdffe027e5328015d08dcc9126d1e128a [INFO] checking BlueyNeilo/Chip8Emulator against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBlueyNeilo%2FChip8Emulator" "/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/BlueyNeilo/Chip8Emulator on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/BlueyNeilo/Chip8Emulator [INFO] finished tweaking git repo https://github.com/BlueyNeilo/Chip8Emulator [INFO] tweaked toml for git repo https://github.com/BlueyNeilo/Chip8Emulator written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/BlueyNeilo/Chip8Emulator already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--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 num-iter v0.1.33 [INFO] [stderr] Downloaded num v0.1.37 [INFO] [stderr] Downloaded num-integer v0.1.34 [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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] f6aad235094bb0a5ea180fc0307db9422cbbb1cc1fae2062cbefbdc46f0e6901 [INFO] running `Command { std: "docker" "start" "-a" "f6aad235094bb0a5ea180fc0307db9422cbbb1cc1fae2062cbefbdc46f0e6901", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f6aad235094bb0a5ea180fc0307db9422cbbb1cc1fae2062cbefbdc46f0e6901", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f6aad235094bb0a5ea180fc0307db9422cbbb1cc1fae2062cbefbdc46f0e6901", kill_on_drop: false }` [INFO] [stdout] f6aad235094bb0a5ea180fc0307db9422cbbb1cc1fae2062cbefbdc46f0e6901 [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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] d3c6a19f9c9ed322fdeb02255bcd9dece09920a94178c1fbb5e777e6b4d93e05 [INFO] running `Command { std: "docker" "start" "-a" "d3c6a19f9c9ed322fdeb02255bcd9dece09920a94178c1fbb5e777e6b4d93e05", kill_on_drop: false }` [INFO] [stderr] Checking num-traits v0.1.37 [INFO] [stderr] Checking libc v0.2.21 [INFO] [stderr] Checking lazy_static v0.2.8 [INFO] [stderr] Compiling chip_8 v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking sdl2-sys v0.30.0 [INFO] [stderr] Checking rand v0.3.15 [INFO] [stderr] Checking num-integer v0.1.34 [INFO] [stderr] Checking num-iter v0.1.33 [INFO] [stderr] Checking num v0.1.37 [INFO] [stderr] Checking sdl2 v0.30.0 [INFO] [stdout] warning: unused imports: `WindowContext`, `Window` [INFO] [stdout] --> src/main.rs:42:19 [INFO] [stdout] | [INFO] [stdout] 42 | use sdl2::video::{Window, WindowContext}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Canvas` [INFO] [stdout] --> src/main.rs:43:20 [INFO] [stdout] | [INFO] [stdout] 43 | use sdl2::render::{Canvas, WindowCanvas}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ffi::OsStr` [INFO] [stdout] --> src/main.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | use std::ffi::OsStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufWriter`, `Write` [INFO] [stdout] --> src/main.rs:55:27 [INFO] [stdout] | [INFO] [stdout] 55 | use std::io::{self, Read, Write, BufWriter}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:106:20 [INFO] [stdout] | [INFO] [stdout] 106 | 0.0...0.5 => self.volume, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `WindowContext`, `Window` [INFO] [stdout] --> src/main.rs:42:19 [INFO] [stdout] | [INFO] [stdout] 42 | use sdl2::video::{Window, WindowContext}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Canvas` [INFO] [stdout] --> src/main.rs:43:20 [INFO] [stdout] | [INFO] [stdout] 43 | use sdl2::render::{Canvas, WindowCanvas}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ffi::OsStr` [INFO] [stdout] --> src/main.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | use std::ffi::OsStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufWriter`, `Write` [INFO] [stdout] --> src/main.rs:55:27 [INFO] [stdout] | [INFO] [stdout] 55 | use std::io::{self, Read, Write, BufWriter}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:106:20 [INFO] [stdout] | [INFO] [stdout] 106 | 0.0...0.5 => self.volume, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: floating-point types cannot be used in patterns [INFO] [stdout] --> src/main.rs:106:17 [INFO] [stdout] | [INFO] [stdout] 106 | 0.0...0.5 => self.volume, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(illegal_floating_point_literal_pattern)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #41620 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: floating-point types cannot be used in patterns [INFO] [stdout] --> src/main.rs:106:23 [INFO] [stdout] | [INFO] [stdout] 106 | 0.0...0.5 => self.volume, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #41620 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: floating-point types cannot be used in patterns [INFO] [stdout] --> src/main.rs:106:17 [INFO] [stdout] | [INFO] [stdout] 106 | 0.0...0.5 => self.volume, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #41620 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | let mut event_pump = sdl_context.event_pump().unwrap(); //EventPump [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: floating-point types cannot be used in patterns [INFO] [stdout] --> src/main.rs:106:17 [INFO] [stdout] | [INFO] [stdout] 106 | 0.0...0.5 => self.volume, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(illegal_floating_point_literal_pattern)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #41620 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: floating-point types cannot be used in patterns [INFO] [stdout] --> src/main.rs:106:23 [INFO] [stdout] | [INFO] [stdout] 106 | 0.0...0.5 => self.volume, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #41620 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: floating-point types cannot be used in patterns [INFO] [stdout] --> src/main.rs:106:17 [INFO] [stdout] | [INFO] [stdout] 106 | 0.0...0.5 => self.volume, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #41620 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | let mut event_pump = sdl_context.event_pump().unwrap(); //EventPump [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: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added. [INFO] [stdout] --> src/main.rs:485:42 [INFO] [stdout] | [INFO] [stdout] 485 | for (i, kd) in kvals.into_iter().enumerate() { [INFO] [stdout] | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(array_into_iter)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #66145 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added. [INFO] [stdout] --> src/main.rs:497:42 [INFO] [stdout] | [INFO] [stdout] 497 | for (i, kd) in kvals.into_iter().enumerate() { [INFO] [stdout] | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #66145 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `pixel_size` should have an upper case name [INFO] [stdout] --> src/main.rs:60:7 [INFO] [stdout] | [INFO] [stdout] 60 | const pixel_size: u32 = 20; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `PIXEL_SIZE` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `setupIO` should have a snake case name [INFO] [stdout] --> src/main.rs:114:4 [INFO] [stdout] | [INFO] [stdout] 114 | fn setupIO() -> (WindowCanvas, EventPump, AudioDevice) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `setup_io` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `drawGraphics` should have a snake case name [INFO] [stdout] --> src/main.rs:156:4 [INFO] [stdout] | [INFO] [stdout] 156 | fn drawGraphics(pixels: &[bool; 0x800], canvas: &mut WindowCanvas) { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `draw_graphics` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `resetPixel` should have a snake case name [INFO] [stdout] --> src/main.rs:168:4 [INFO] [stdout] | [INFO] [stdout] 168 | fn resetPixel(pixels: &mut [bool; 0x800], x: usize, y: usize, val: bool) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `reset_pixel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `RNG_byte` should have a snake case name [INFO] [stdout] --> src/main.rs:172:4 [INFO] [stdout] | [INFO] [stdout] 172 | fn RNG_byte() -> u8 { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `rng_byte` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `drawFlag` should have a snake case name [INFO] [stdout] --> src/main.rs:177:5 [INFO] [stdout] | [INFO] [stdout] 177 | drawFlag: bool, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `draw_flag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `I` should have a snake case name [INFO] [stdout] --> src/main.rs:181:5 [INFO] [stdout] | [INFO] [stdout] 181 | I: u16, //Index register [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `loadGame` should have a snake case name [INFO] [stdout] --> src/main.rs:202:8 [INFO] [stdout] | [INFO] [stdout] 202 | fn loadGame(&mut self, memory: &mut [u8; 0x1000], gameName: String) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `load_game` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `gameName` should have a snake case name [INFO] [stdout] --> src/main.rs:202:56 [INFO] [stdout] | [INFO] [stdout] 202 | fn loadGame(&mut self, memory: &mut [u8; 0x1000], gameName: String) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `game_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `updatePixel` should have a snake case name [INFO] [stdout] --> src/main.rs:213:8 [INFO] [stdout] | [INFO] [stdout] 213 | fn updatePixel(&mut self, pixels: &mut [bool; 0x800], x: usize, y: usize, val: bool) { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `update_pixel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clearDisplay` should have a snake case name [INFO] [stdout] --> src/main.rs:219:8 [INFO] [stdout] | [INFO] [stdout] 219 | fn clearDisplay(&mut self, pixels: &mut [bool; 0x800]) { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `clear_display` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `disassembleCode` should have a snake case name [INFO] [stdout] --> src/main.rs:227:8 [INFO] [stdout] | [INFO] [stdout] 227 | fn disassembleCode(&mut self, memory: &[u8; 0x1000]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `disassemble_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `emulateCycle` should have a snake case name [INFO] [stdout] --> src/main.rs:305:8 [INFO] [stdout] | [INFO] [stdout] 305 | fn emulateCycle(&mut self, memory: &mut [u8; 0x1000], pixels: &mut [bool; 0x800], key: &[bool; 0x10], device: &AudioDevice src/main.rs:317:13 [INFO] [stdout] | [INFO] [stdout] 317 | let I: usize = self.I as usize; [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `initMemory` should have a snake case name [INFO] [stdout] --> src/main.rs:425:4 [INFO] [stdout] | [INFO] [stdout] 425 | fn initMemory(memory: &mut [u8; 0x1000], kvals: &mut [Keycode; 0x10]) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `init_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added. [INFO] [stdout] --> src/main.rs:485:42 [INFO] [stdout] | [INFO] [stdout] 485 | for (i, kd) in kvals.into_iter().enumerate() { [INFO] [stdout] | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(array_into_iter)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #66145 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added. [INFO] [stdout] --> src/main.rs:497:42 [INFO] [stdout] | [INFO] [stdout] 497 | for (i, kd) in kvals.into_iter().enumerate() { [INFO] [stdout] | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #66145 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `pixel_size` should have an upper case name [INFO] [stdout] --> src/main.rs:60:7 [INFO] [stdout] | [INFO] [stdout] 60 | const pixel_size: u32 = 20; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `PIXEL_SIZE` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `setupIO` should have a snake case name [INFO] [stdout] --> src/main.rs:114:4 [INFO] [stdout] | [INFO] [stdout] 114 | fn setupIO() -> (WindowCanvas, EventPump, AudioDevice) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `setup_io` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `drawGraphics` should have a snake case name [INFO] [stdout] --> src/main.rs:156:4 [INFO] [stdout] | [INFO] [stdout] 156 | fn drawGraphics(pixels: &[bool; 0x800], canvas: &mut WindowCanvas) { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `draw_graphics` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `resetPixel` should have a snake case name [INFO] [stdout] --> src/main.rs:168:4 [INFO] [stdout] | [INFO] [stdout] 168 | fn resetPixel(pixels: &mut [bool; 0x800], x: usize, y: usize, val: bool) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `reset_pixel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `RNG_byte` should have a snake case name [INFO] [stdout] --> src/main.rs:172:4 [INFO] [stdout] | [INFO] [stdout] 172 | fn RNG_byte() -> u8 { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `rng_byte` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `drawFlag` should have a snake case name [INFO] [stdout] --> src/main.rs:177:5 [INFO] [stdout] | [INFO] [stdout] 177 | drawFlag: bool, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `draw_flag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `I` should have a snake case name [INFO] [stdout] --> src/main.rs:181:5 [INFO] [stdout] | [INFO] [stdout] 181 | I: u16, //Index register [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `loadGame` should have a snake case name [INFO] [stdout] --> src/main.rs:202:8 [INFO] [stdout] | [INFO] [stdout] 202 | fn loadGame(&mut self, memory: &mut [u8; 0x1000], gameName: String) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `load_game` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `gameName` should have a snake case name [INFO] [stdout] --> src/main.rs:202:56 [INFO] [stdout] | [INFO] [stdout] 202 | fn loadGame(&mut self, memory: &mut [u8; 0x1000], gameName: String) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `game_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `updatePixel` should have a snake case name [INFO] [stdout] --> src/main.rs:213:8 [INFO] [stdout] | [INFO] [stdout] 213 | fn updatePixel(&mut self, pixels: &mut [bool; 0x800], x: usize, y: usize, val: bool) { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `update_pixel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clearDisplay` should have a snake case name [INFO] [stdout] --> src/main.rs:219:8 [INFO] [stdout] | [INFO] [stdout] 219 | fn clearDisplay(&mut self, pixels: &mut [bool; 0x800]) { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `clear_display` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `disassembleCode` should have a snake case name [INFO] [stdout] --> src/main.rs:227:8 [INFO] [stdout] | [INFO] [stdout] 227 | fn disassembleCode(&mut self, memory: &[u8; 0x1000]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `disassemble_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `emulateCycle` should have a snake case name [INFO] [stdout] --> src/main.rs:305:8 [INFO] [stdout] | [INFO] [stdout] 305 | fn emulateCycle(&mut self, memory: &mut [u8; 0x1000], pixels: &mut [bool; 0x800], key: &[bool; 0x10], device: &AudioDevice src/main.rs:317:13 [INFO] [stdout] | [INFO] [stdout] 317 | let I: usize = self.I as usize; [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `initMemory` should have a snake case name [INFO] [stdout] --> src/main.rs:425:4 [INFO] [stdout] | [INFO] [stdout] 425 | fn initMemory(memory: &mut [u8; 0x1000], kvals: &mut [Keycode; 0x10]) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `init_memory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.01s [INFO] running `Command { std: "docker" "inspect" "d3c6a19f9c9ed322fdeb02255bcd9dece09920a94178c1fbb5e777e6b4d93e05", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d3c6a19f9c9ed322fdeb02255bcd9dece09920a94178c1fbb5e777e6b4d93e05", kill_on_drop: false }` [INFO] [stdout] d3c6a19f9c9ed322fdeb02255bcd9dece09920a94178c1fbb5e777e6b4d93e05