[INFO] cloning repository https://github.com/Sam-Belliveau/samb_gb [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Sam-Belliveau/samb_gb" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSam-Belliveau%2Fsamb_gb", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSam-Belliveau%2Fsamb_gb'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c508ad6282e16b850e000db2e43572af2e6bb926 [INFO] building Sam-Belliveau/samb_gb 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%2FSam-Belliveau%2Fsamb_gb" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Sam-Belliveau/samb_gb 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/Sam-Belliveau/samb_gb [INFO] finished tweaking git repo https://github.com/Sam-Belliveau/samb_gb [INFO] tweaked toml for git repo https://github.com/Sam-Belliveau/samb_gb written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Sam-Belliveau/samb_gb 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 81b30a4c435e12a190712edb651baac8d3b99985e220b4e6b839dc336296b2e8 [INFO] running `Command { std: "docker" "start" "-a" "81b30a4c435e12a190712edb651baac8d3b99985e220b4e6b839dc336296b2e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "81b30a4c435e12a190712edb651baac8d3b99985e220b4e6b839dc336296b2e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "81b30a4c435e12a190712edb651baac8d3b99985e220b4e6b839dc336296b2e8", kill_on_drop: false }` [INFO] [stdout] 81b30a4c435e12a190712edb651baac8d3b99985e220b4e6b839dc336296b2e8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] b8e12c6431477e8d5ca41de2058f16bd5f1d294530bdbfc25654892cf1d63bfc [INFO] running `Command { std: "docker" "start" "-a" "b8e12c6431477e8d5ca41de2058f16bd5f1d294530bdbfc25654892cf1d63bfc", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.71 [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling libloading v0.6.2 [INFO] [stderr] Compiling xml-rs v0.8.3 [INFO] [stderr] Compiling pkg-config v0.3.17 [INFO] [stderr] Compiling bitflags v1.2.1 [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 semver v0.9.0 [INFO] [stderr] Compiling smallvec v1.4.0 [INFO] [stderr] Compiling dlib v0.4.2 [INFO] [stderr] Compiling once_cell v1.4.0 [INFO] [stderr] Compiling wayland-sys v0.25.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling downcast-rs v1.1.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.8 [INFO] [stderr] Compiling xkbcommon-sys v0.7.4 [INFO] [stderr] Compiling scoped-tls v1.0.0 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling x11-dl v2.18.5 [INFO] [stderr] Compiling cc v1.0.54 [INFO] [stderr] Compiling cast v0.2.3 [INFO] [stderr] Compiling quote v1.0.6 [INFO] [stderr] Compiling remove_dir_all v0.5.2 [INFO] [stderr] Compiling wayland-scanner v0.25.0 [INFO] [stderr] Compiling minifb v0.16.0 [INFO] [stderr] Compiling time v0.1.43 [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 rand v0.7.3 [INFO] [stderr] Compiling wayland-client v0.25.0 [INFO] [stderr] Compiling wayland-protocols v0.25.0 [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 samb_gb v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/gb/hardware/io/gpu.rs:99:11 [INFO] [stdout] | [INFO] [stdout] 99 | if(self.cycle > 6666) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 99 - if(self.cycle > 6666) { [INFO] [stdout] 99 + if self.cycle > 6666 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/gb/hardware/io/gpu.rs:233:24 [INFO] [stdout] | [INFO] [stdout] 233 | let line = ( [INFO] [stdout] | ________________________^ [INFO] [stdout] 234 | | (self.read_vram_byte(tile_addr + 0) as u16) << 8 | [INFO] [stdout] | |________________^ [INFO] [stdout] 235 | (self.read_vram_byte(tile_addr + 1) as u16) << 0 [INFO] [stdout] | _________________________________________________________________^ [INFO] [stdout] 236 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 233 ~ let line = (self.read_vram_byte(tile_addr + 0) as u16) << 8 | [INFO] [stdout] 234 ~ (self.read_vram_byte(tile_addr + 1) as u16) << 0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/gb/opcodes/ops/math.rs:684:18 [INFO] [stdout] | [INFO] [stdout] 684 | cpu.reg.sp = (cpu.reg.sp.wrapping_add(1)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 684 - cpu.reg.sp = (cpu.reg.sp.wrapping_add(1)); [INFO] [stdout] 684 + cpu.reg.sp = cpu.reg.sp.wrapping_add(1); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/gb/opcodes/ops/math.rs:705:18 [INFO] [stdout] | [INFO] [stdout] 705 | cpu.reg.sp = (cpu.reg.sp.wrapping_sub(1)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 705 - cpu.reg.sp = (cpu.reg.sp.wrapping_sub(1)); [INFO] [stdout] 705 + cpu.reg.sp = cpu.reg.sp.wrapping_sub(1); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `thread` and `time` [INFO] [stdout] --> src/main.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | use std::{thread, time}; [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/main.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | if(window.is_key_down(Key::Space)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 31 - if(window.is_key_down(Key::Space)) { [INFO] [stdout] 31 + if window.is_key_down(Key::Space) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cycles` [INFO] [stdout] --> src/gb/hardware/io/serial.rs:27:28 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn step(&mut self, cycles: usize) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cycles` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cycles` [INFO] [stdout] --> src/gb/hardware/io/sound.rs:18:28 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn step(&mut self, cycles: usize) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cycles` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cycles` [INFO] [stdout] --> src/gb/hardware/io/timer.rs:31:28 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn step(&mut self, cycles: usize) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cycles` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn rlc_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:6:33 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn rlc_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn rrc_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:10:33 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn rrc_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn rl_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:14:32 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn rl_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn rr_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:18:32 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn rr_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn sla_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:22:33 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn sla_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn sra_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:26:33 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn sra_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:41:18 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn srl_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:41:33 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn srl_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:45:20 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn bit_b_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:45:35 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn bit_b_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:49:20 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn res_b_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:49:35 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn res_b_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:53:20 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn set_b_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:53:35 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn set_b_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | for i in 0..6666 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_pixel` is never used [INFO] [stdout] --> src/gb/hardware/io/gpu.rs:222:8 [INFO] [stdout] | [INFO] [stdout] 220 | impl GPU { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] 221 | [INFO] [stdout] 222 | fn get_pixel(&self, x: usize, y: usize) -> u32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.61s [INFO] running `Command { std: "docker" "inspect" "b8e12c6431477e8d5ca41de2058f16bd5f1d294530bdbfc25654892cf1d63bfc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b8e12c6431477e8d5ca41de2058f16bd5f1d294530bdbfc25654892cf1d63bfc", kill_on_drop: false }` [INFO] [stdout] b8e12c6431477e8d5ca41de2058f16bd5f1d294530bdbfc25654892cf1d63bfc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] f613f8e1801b665e7958eb87c47787a6ab0d443cfb1e67366a7bf8cbdd56edb5 [INFO] running `Command { std: "docker" "start" "-a" "f613f8e1801b665e7958eb87c47787a6ab0d443cfb1e67366a7bf8cbdd56edb5", kill_on_drop: false }` [INFO] [stderr] Compiling samb_gb v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/gb/hardware/io/gpu.rs:99:11 [INFO] [stdout] | [INFO] [stdout] 99 | if(self.cycle > 6666) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 99 - if(self.cycle > 6666) { [INFO] [stdout] 99 + if self.cycle > 6666 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/gb/hardware/io/gpu.rs:233:24 [INFO] [stdout] | [INFO] [stdout] 233 | let line = ( [INFO] [stdout] | ________________________^ [INFO] [stdout] 234 | | (self.read_vram_byte(tile_addr + 0) as u16) << 8 | [INFO] [stdout] | |________________^ [INFO] [stdout] 235 | (self.read_vram_byte(tile_addr + 1) as u16) << 0 [INFO] [stdout] | _________________________________________________________________^ [INFO] [stdout] 236 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 233 ~ let line = (self.read_vram_byte(tile_addr + 0) as u16) << 8 | [INFO] [stdout] 234 ~ (self.read_vram_byte(tile_addr + 1) as u16) << 0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/gb/opcodes/ops/math.rs:684:18 [INFO] [stdout] | [INFO] [stdout] 684 | cpu.reg.sp = (cpu.reg.sp.wrapping_add(1)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 684 - cpu.reg.sp = (cpu.reg.sp.wrapping_add(1)); [INFO] [stdout] 684 + cpu.reg.sp = cpu.reg.sp.wrapping_add(1); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/gb/opcodes/ops/math.rs:705:18 [INFO] [stdout] | [INFO] [stdout] 705 | cpu.reg.sp = (cpu.reg.sp.wrapping_sub(1)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 705 - cpu.reg.sp = (cpu.reg.sp.wrapping_sub(1)); [INFO] [stdout] 705 + cpu.reg.sp = cpu.reg.sp.wrapping_sub(1); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `thread` and `time` [INFO] [stdout] --> src/main.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | use std::{thread, time}; [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/main.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | if(window.is_key_down(Key::Space)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 31 - if(window.is_key_down(Key::Space)) { [INFO] [stdout] 31 + if window.is_key_down(Key::Space) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cycles` [INFO] [stdout] --> src/gb/hardware/io/serial.rs:27:28 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn step(&mut self, cycles: usize) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cycles` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cycles` [INFO] [stdout] --> src/gb/hardware/io/sound.rs:18:28 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn step(&mut self, cycles: usize) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cycles` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cycles` [INFO] [stdout] --> src/gb/hardware/io/timer.rs:31:28 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn step(&mut self, cycles: usize) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cycles` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn rlc_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:6:33 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn rlc_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn rrc_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:10:33 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn rrc_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn rl_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:14:32 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn rl_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn rr_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:18:32 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn rr_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn sla_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:22:33 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn sla_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn sra_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:26:33 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn sra_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:41:18 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn srl_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:41:33 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn srl_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:45:20 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn bit_b_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:45:35 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn bit_b_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:49:20 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn res_b_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:49:35 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn res_b_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:53:20 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn set_b_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/gb/opcodes/ops/bit.rs:53:35 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn set_b_n(cpu: &mut CPU, n: u8) -> u8 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | for i in 0..6666 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_pixel` is never used [INFO] [stdout] --> src/gb/hardware/io/gpu.rs:222:8 [INFO] [stdout] | [INFO] [stdout] 220 | impl GPU { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] 221 | [INFO] [stdout] 222 | fn get_pixel(&self, x: usize, y: usize) -> u32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.52s [INFO] running `Command { std: "docker" "inspect" "f613f8e1801b665e7958eb87c47787a6ab0d443cfb1e67366a7bf8cbdd56edb5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f613f8e1801b665e7958eb87c47787a6ab0d443cfb1e67366a7bf8cbdd56edb5", kill_on_drop: false }` [INFO] [stdout] f613f8e1801b665e7958eb87c47787a6ab0d443cfb1e67366a7bf8cbdd56edb5