[INFO] cloning repository https://github.com/Kolossion/rust-gb [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Kolossion/rust-gb" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKolossion%2Frust-gb", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKolossion%2Frust-gb'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0977a4a7ef116d2dd95e3eb02082a5437b0a934b [INFO] testing Kolossion/rust-gb against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKolossion%2Frust-gb" "/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/Kolossion/rust-gb on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Kolossion/rust-gb [INFO] finished tweaking git repo https://github.com/Kolossion/rust-gb [INFO] tweaked toml for git repo https://github.com/Kolossion/rust-gb written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/Kolossion/rust-gb already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cfaf69c8fc6c2148f238e2993ff4ffd121c6023001e46f81f169cae5c579c060 [INFO] running `Command { std: "docker" "start" "-a" "cfaf69c8fc6c2148f238e2993ff4ffd121c6023001e46f81f169cae5c579c060", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cfaf69c8fc6c2148f238e2993ff4ffd121c6023001e46f81f169cae5c579c060", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cfaf69c8fc6c2148f238e2993ff4ffd121c6023001e46f81f169cae5c579c060", kill_on_drop: false }` [INFO] [stdout] cfaf69c8fc6c2148f238e2993ff4ffd121c6023001e46f81f169cae5c579c060 [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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f52998218a07b4079c93ae49c69affc5b0cbec459a735869399785ec7be209f7 [INFO] running `Command { std: "docker" "start" "-a" "f52998218a07b4079c93ae49c69affc5b0cbec459a735869399785ec7be209f7", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.20 [INFO] [stderr] Compiling rand v0.3.15 [INFO] [stderr] Compiling gb v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `emu::*` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use emu::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rom_data` [INFO] [stdout] --> src/emu/mod.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | let rom_data = read_bin(rom_file_name); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rom_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/emu/mod.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | let mut cpu = CPU::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opcode` [INFO] [stdout] --> src/emu/cpu/mod.rs:36:28 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn run_op(&mut self, opcode: u16) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_opcode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sum` is never read [INFO] [stdout] --> src/emu/cpu/alu/mod.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | let mut sum: u16 = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sum` is never read [INFO] [stdout] --> src/emu/cpu/alu/mod.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | let mut sum: u32 = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/emu/mod.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | let mut cpu = CPU::new(); [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: field is never read: `m` [INFO] [stdout] --> src/emu/cpu/mod.rs:8:3 [INFO] [stdout] | [INFO] [stdout] 8 | m: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `CPUClock` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/emu/cpu/mod.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `t` [INFO] [stdout] --> src/emu/cpu/mod.rs:9:3 [INFO] [stdout] | [INFO] [stdout] 9 | t: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `CPUClock` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/emu/cpu/mod.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `a` [INFO] [stdout] --> src/emu/cpu/mod.rs:14:3 [INFO] [stdout] | [INFO] [stdout] 14 | a : u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `CPURegs` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/emu/cpu/mod.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `b` [INFO] [stdout] --> src/emu/cpu/mod.rs:15:3 [INFO] [stdout] | [INFO] [stdout] 15 | b : u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `CPURegs` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/emu/cpu/mod.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `c` [INFO] [stdout] --> src/emu/cpu/mod.rs:16:3 [INFO] [stdout] | [INFO] [stdout] 16 | c : u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `CPURegs` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/emu/cpu/mod.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `d` [INFO] [stdout] --> src/emu/cpu/mod.rs:17:3 [INFO] [stdout] | [INFO] [stdout] 17 | d : u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `CPURegs` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/emu/cpu/mod.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `e` [INFO] [stdout] --> src/emu/cpu/mod.rs:18:3 [INFO] [stdout] | [INFO] [stdout] 18 | e : u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `CPURegs` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/emu/cpu/mod.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `h` [INFO] [stdout] --> src/emu/cpu/mod.rs:19:3 [INFO] [stdout] | [INFO] [stdout] 19 | h : u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `CPURegs` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/emu/cpu/mod.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `l` [INFO] [stdout] --> src/emu/cpu/mod.rs:20:3 [INFO] [stdout] | [INFO] [stdout] 20 | l : u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `CPURegs` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/emu/cpu/mod.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `f` [INFO] [stdout] --> src/emu/cpu/mod.rs:21:3 [INFO] [stdout] | [INFO] [stdout] 21 | f : u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `CPURegs` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/emu/cpu/mod.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `pc` [INFO] [stdout] --> src/emu/cpu/mod.rs:22:3 [INFO] [stdout] | [INFO] [stdout] 22 | pc : u16, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `CPURegs` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/emu/cpu/mod.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `sp` [INFO] [stdout] --> src/emu/cpu/mod.rs:23:3 [INFO] [stdout] | [INFO] [stdout] 23 | sp : u16, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `CPURegs` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/emu/cpu/mod.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `m` [INFO] [stdout] --> src/emu/cpu/mod.rs:24:3 [INFO] [stdout] | [INFO] [stdout] 24 | m : u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `CPURegs` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/emu/cpu/mod.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `t` [INFO] [stdout] --> src/emu/cpu/mod.rs:25:3 [INFO] [stdout] | [INFO] [stdout] 25 | t : u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `CPURegs` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/emu/cpu/mod.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `clock` [INFO] [stdout] --> src/emu/cpu/mod.rs:30:3 [INFO] [stdout] | [INFO] [stdout] 30 | clock: CPUClock, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `CPU` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/emu/cpu/mod.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `reg` [INFO] [stdout] --> src/emu/cpu/mod.rs:31:3 [INFO] [stdout] | [INFO] [stdout] 31 | reg: CPURegs, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `CPU` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/emu/cpu/mod.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run_op` [INFO] [stdout] --> src/emu/cpu/mod.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn run_op(&mut self, opcode: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_reg_8` [INFO] [stdout] --> src/emu/cpu/mod.rs:51:10 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn get_reg_8(&mut self, reg: &str) -> u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_reg_8` [INFO] [stdout] --> src/emu/cpu/mod.rs:67:10 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn set_reg_8(&mut self, reg: &str, val: u8) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `boot` [INFO] [stdout] --> src/emu/cpu/mod.rs:85:10 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn boot(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_e` [INFO] [stdout] --> src/emu/cpu/mod.rs:90:10 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn add_e(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_d` [INFO] [stdout] --> src/emu/cpu/mod.rs:100:10 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn add_d(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `noop` [INFO] [stdout] --> src/emu/cpu/mod.rs:110:10 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn noop(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_8` [INFO] [stdout] --> src/emu/cpu/alu/mod.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn add_8(a: u8, b :u8) -> (bool, bool, u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_16` [INFO] [stdout] --> src/emu/cpu/alu/mod.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn add_16(a: u16, b :u16) -> (bool, bool, u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.21s [INFO] running `Command { std: "docker" "inspect" "f52998218a07b4079c93ae49c69affc5b0cbec459a735869399785ec7be209f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f52998218a07b4079c93ae49c69affc5b0cbec459a735869399785ec7be209f7", kill_on_drop: false }` [INFO] [stdout] f52998218a07b4079c93ae49c69affc5b0cbec459a735869399785ec7be209f7 [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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 610f0eb2e20625ca518ccb89e4bc4bae413ea526aa2393017eeca13c309d4f6c [INFO] running `Command { std: "docker" "start" "-a" "610f0eb2e20625ca518ccb89e4bc4bae413ea526aa2393017eeca13c309d4f6c", kill_on_drop: false }` [INFO] [stderr] Compiling gb v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `emu::*` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use emu::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rom_data` [INFO] [stdout] --> src/emu/mod.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | let rom_data = read_bin(rom_file_name); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rom_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/emu/mod.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | let mut cpu = CPU::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opcode` [INFO] [stdout] --> src/emu/cpu/mod.rs:36:28 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn run_op(&mut self, opcode: u16) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_opcode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sum` is never read [INFO] [stdout] --> src/emu/cpu/alu/mod.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | let mut sum: u16 = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sum` is never read [INFO] [stdout] --> src/emu/cpu/alu/mod.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | let mut sum: u32 = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/emu/mod.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | let mut cpu = CPU::new(); [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: field is never read: `m` [INFO] [stdout] --> src/emu/cpu/mod.rs:8:3 [INFO] [stdout] | [INFO] [stdout] 8 | m: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `CPUClock` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/emu/cpu/mod.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `t` [INFO] [stdout] --> src/emu/cpu/mod.rs:9:3 [INFO] [stdout] | [INFO] [stdout] 9 | t: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `CPUClock` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/emu/cpu/mod.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `pc` [INFO] [stdout] --> src/emu/cpu/mod.rs:22:3 [INFO] [stdout] | [INFO] [stdout] 22 | pc : u16, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `CPURegs` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/emu/cpu/mod.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `sp` [INFO] [stdout] --> src/emu/cpu/mod.rs:23:3 [INFO] [stdout] | [INFO] [stdout] 23 | sp : u16, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `CPURegs` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/emu/cpu/mod.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `clock` [INFO] [stdout] --> src/emu/cpu/mod.rs:30:3 [INFO] [stdout] | [INFO] [stdout] 30 | clock: CPUClock, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `CPU` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/emu/cpu/mod.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run_op` [INFO] [stdout] --> src/emu/cpu/mod.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn run_op(&mut self, opcode: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `boot` [INFO] [stdout] --> src/emu/cpu/mod.rs:85:10 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn boot(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_e` [INFO] [stdout] --> src/emu/cpu/mod.rs:90:10 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn add_e(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_d` [INFO] [stdout] --> src/emu/cpu/mod.rs:100:10 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn add_d(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `noop` [INFO] [stdout] --> src/emu/cpu/mod.rs:110:10 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn noop(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_8` [INFO] [stdout] --> src/emu/cpu/alu/mod.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn add_8(a: u8, b :u8) -> (bool, bool, u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_16` [INFO] [stdout] --> src/emu/cpu/alu/mod.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn add_16(a: u16, b :u16) -> (bool, bool, u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.41s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/gb-6dc4c9cbee1fec2f) [INFO] running `Command { std: "docker" "inspect" "610f0eb2e20625ca518ccb89e4bc4bae413ea526aa2393017eeca13c309d4f6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "610f0eb2e20625ca518ccb89e4bc4bae413ea526aa2393017eeca13c309d4f6c", kill_on_drop: false }` [INFO] [stdout] 610f0eb2e20625ca518ccb89e4bc4bae413ea526aa2393017eeca13c309d4f6c [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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 54929119a16c345492807e20c3d2602940d3bb82df2372dce7f44d4a524113ef [INFO] running `Command { std: "docker" "start" "-a" "54929119a16c345492807e20c3d2602940d3bb82df2372dce7f44d4a524113ef", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `emu::*` [INFO] [stderr] --> src/main.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use emu::*; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rom_data` [INFO] [stderr] --> src/emu/mod.rs:14:7 [INFO] [stderr] | [INFO] [stderr] 14 | let rom_data = read_bin(rom_file_name); [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rom_data` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cpu` [INFO] [stderr] --> src/emu/mod.rs:16:11 [INFO] [stderr] | [INFO] [stderr] 16 | let mut cpu = CPU::new(); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `opcode` [INFO] [stderr] --> src/emu/cpu/mod.rs:36:28 [INFO] [stderr] | [INFO] [stderr] 36 | pub fn run_op(&mut self, opcode: u16) { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_opcode` [INFO] [stderr] [INFO] [stderr] warning: value assigned to `sum` is never read [INFO] [stderr] --> src/emu/cpu/alu/mod.rs:5:11 [INFO] [stderr] | [INFO] [stderr] 5 | let mut sum: u16 = 0; [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `sum` is never read [INFO] [stderr] --> src/emu/cpu/alu/mod.rs:26:11 [INFO] [stderr] | [INFO] [stderr] 26 | let mut sum: u32 = 0; [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/emu/mod.rs:16:7 [INFO] [stderr] | [INFO] [stderr] 16 | let mut cpu = CPU::new(); [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field is never read: `m` [INFO] [stderr] --> src/emu/cpu/mod.rs:8:3 [INFO] [stderr] | [INFO] [stderr] 8 | m: u32, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] note: `CPUClock` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/emu/cpu/mod.rs:6:10 [INFO] [stderr] | [INFO] [stderr] 6 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `t` [INFO] [stderr] --> src/emu/cpu/mod.rs:9:3 [INFO] [stderr] | [INFO] [stderr] 9 | t: u32, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `CPUClock` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/emu/cpu/mod.rs:6:10 [INFO] [stderr] | [INFO] [stderr] 6 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `pc` [INFO] [stderr] --> src/emu/cpu/mod.rs:22:3 [INFO] [stderr] | [INFO] [stderr] 22 | pc : u16, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `CPURegs` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/emu/cpu/mod.rs:12:10 [INFO] [stderr] | [INFO] [stderr] 12 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `sp` [INFO] [stderr] --> src/emu/cpu/mod.rs:23:3 [INFO] [stderr] | [INFO] [stderr] 23 | sp : u16, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `CPURegs` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/emu/cpu/mod.rs:12:10 [INFO] [stderr] | [INFO] [stderr] 12 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `clock` [INFO] [stderr] --> src/emu/cpu/mod.rs:30:3 [INFO] [stderr] | [INFO] [stderr] 30 | clock: CPUClock, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `CPU` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/emu/cpu/mod.rs:28:10 [INFO] [stderr] | [INFO] [stderr] 28 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `run_op` [INFO] [stderr] --> src/emu/cpu/mod.rs:36:10 [INFO] [stderr] | [INFO] [stderr] 36 | pub fn run_op(&mut self, opcode: u16) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `boot` [INFO] [stderr] --> src/emu/cpu/mod.rs:85:10 [INFO] [stderr] | [INFO] [stderr] 85 | pub fn boot(&mut self) { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `add_e` [INFO] [stderr] --> src/emu/cpu/mod.rs:90:10 [INFO] [stderr] | [INFO] [stderr] 90 | pub fn add_e(&mut self) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `add_d` [INFO] [stderr] --> src/emu/cpu/mod.rs:100:10 [INFO] [stderr] | [INFO] [stderr] 100 | pub fn add_d(&mut self) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `noop` [INFO] [stderr] --> src/emu/cpu/mod.rs:110:10 [INFO] [stderr] | [INFO] [stderr] 110 | pub fn noop(&mut self) { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `add_8` [INFO] [stderr] --> src/emu/cpu/alu/mod.rs:2:8 [INFO] [stderr] | [INFO] [stderr] 2 | pub fn add_8(a: u8, b :u8) -> (bool, bool, u8) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `add_16` [INFO] [stderr] --> src/emu/cpu/alu/mod.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn add_16(a: u16, b :u16) -> (bool, bool, u16) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `gb` (bin "gb" test) generated 19 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/gb-6dc4c9cbee1fec2f) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test emu::cpu::test::set_8bit_reg ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "54929119a16c345492807e20c3d2602940d3bb82df2372dce7f44d4a524113ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "54929119a16c345492807e20c3d2602940d3bb82df2372dce7f44d4a524113ef", kill_on_drop: false }` [INFO] [stdout] 54929119a16c345492807e20c3d2602940d3bb82df2372dce7f44d4a524113ef