[INFO] cloning repository https://github.com/VictorFordham/rust_gb_emulator [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/VictorFordham/rust_gb_emulator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVictorFordham%2Frust_gb_emulator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVictorFordham%2Frust_gb_emulator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2a6c5a56571e9a40bb2640f85db51fd5f2005555 [INFO] testing VictorFordham/rust_gb_emulator 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%2FVictorFordham%2Frust_gb_emulator" "/workspace/builds/worker-114/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-114/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/VictorFordham/rust_gb_emulator 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/VictorFordham/rust_gb_emulator [INFO] finished tweaking git repo https://github.com/VictorFordham/rust_gb_emulator [INFO] tweaked toml for git repo https://github.com/VictorFordham/rust_gb_emulator written to /workspace/builds/worker-114/source/Cargo.toml [INFO] crate git repo https://github.com/VictorFordham/rust_gb_emulator 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] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-114/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-114/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] 1998fc44179443819da7a2edd0abc7474a5a53e88d58295205465bdc336f234a [INFO] running `Command { std: "docker" "start" "-a" "1998fc44179443819da7a2edd0abc7474a5a53e88d58295205465bdc336f234a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1998fc44179443819da7a2edd0abc7474a5a53e88d58295205465bdc336f234a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1998fc44179443819da7a2edd0abc7474a5a53e88d58295205465bdc336f234a", kill_on_drop: false }` [INFO] [stdout] 1998fc44179443819da7a2edd0abc7474a5a53e88d58295205465bdc336f234a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-114/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-114/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] eecd858d6699e666e67a3e71263b9966ee98ec241576121a9568836b5a354d0c [INFO] running `Command { std: "docker" "start" "-a" "eecd858d6699e666e67a3e71263b9966ee98ec241576121a9568836b5a354d0c", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.88 [INFO] [stderr] Compiling syn v1.0.62 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling byteorder v1.4.2 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling pin-project-lite v0.2.6 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Compiling slab v0.4.2 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling futures-core v0.3.13 [INFO] [stderr] Compiling futures-sink v0.3.13 [INFO] [stderr] Compiling futures-task v0.3.13 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling futures-io v0.3.13 [INFO] [stderr] Compiling wide v0.4.6 [INFO] [stderr] Compiling inplace_it v0.3.3 [INFO] [stderr] Compiling bytemuck v1.5.1 [INFO] [stderr] Compiling copyless v0.1.5 [INFO] [stderr] Compiling typed-arena v2.0.1 [INFO] [stderr] Compiling pollster v0.2.1 [INFO] [stderr] Compiling libloading v0.6.7 [INFO] [stderr] Compiling instant v0.1.9 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling tracing-core v0.1.17 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling wgpu-types v0.6.1 [INFO] [stderr] Compiling futures-channel v0.3.13 [INFO] [stderr] Compiling bit-set v0.5.2 [INFO] [stderr] Compiling lock_api v0.4.2 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling ash v0.31.0 [INFO] [stderr] Compiling tracing v0.1.25 [INFO] [stderr] Compiling x11 v2.18.2 [INFO] [stderr] Compiling ultraviolet v0.4.6 [INFO] [stderr] Compiling raw-window-handle v0.3.3 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling gfx-hal v0.6.0 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling spirv_headers v1.5.0 [INFO] [stderr] Compiling gfx-backend-empty v0.6.0 [INFO] [stderr] Compiling gfx-memory v0.2.2 [INFO] [stderr] Compiling gfx-descriptor v0.2.0 [INFO] [stderr] Compiling gfx-backend-vulkan v0.6.5 [INFO] [stderr] Compiling futures-macro v0.3.13 [INFO] [stderr] Compiling thiserror-impl v1.0.24 [INFO] [stderr] Compiling futures-util v0.3.13 [INFO] [stderr] Compiling thiserror v1.0.24 [INFO] [stderr] Compiling naga v0.2.0 [INFO] [stderr] Compiling wgpu-core v0.6.5 [INFO] [stderr] Compiling futures-executor v0.3.13 [INFO] [stderr] Compiling futures v0.3.13 [INFO] [stderr] Compiling wgpu v0.6.2 [INFO] [stderr] Compiling pixels v0.2.0 [INFO] [stderr] Compiling gb_emulator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/cpu.rs:80:30 [INFO] [stdout] | [INFO] [stdout] 80 | static undefined: fn(u16) = |x: u16| { panic!("Hit undefined instruction at {:?}", stringify!(x - 1)); }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cpu.rs:124:14 [INFO] [stdout] | [INFO] [stdout] 124 | let (i, b) = hl.overflowing_add(bc); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu_macros.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:278:5 [INFO] [stdout] | [INFO] [stdout] 278 | undefined!(), [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cpu.rs:290:14 [INFO] [stdout] | [INFO] [stdout] 290 | let (i, b) = hl.overflowing_add(hl); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu_macros.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:780:5 [INFO] [stdout] | [INFO] [stdout] 780 | undefined!(), [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu_macros.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:826:5 [INFO] [stdout] | [INFO] [stdout] 826 | undefined!(), [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu_macros.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:836:5 [INFO] [stdout] | [INFO] [stdout] 836 | undefined!(), [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu_macros.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:870:5 [INFO] [stdout] | [INFO] [stdout] 870 | undefined!(), [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu_macros.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:871:5 [INFO] [stdout] | [INFO] [stdout] 871 | undefined!(), [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu_macros.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:902:5 [INFO] [stdout] | [INFO] [stdout] 902 | undefined!(), [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu_macros.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:903:5 [INFO] [stdout] | [INFO] [stdout] 903 | undefined!(), [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu_macros.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:904:5 [INFO] [stdout] | [INFO] [stdout] 904 | undefined!(), [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu_macros.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:934:5 [INFO] [stdout] | [INFO] [stdout] 934 | undefined!(), [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu_macros.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:957:5 [INFO] [stdout] | [INFO] [stdout] 957 | undefined!(), [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu_macros.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:965:5 [INFO] [stdout] | [INFO] [stdout] 965 | undefined!(), [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu_macros.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:966:5 [INFO] [stdout] | [INFO] [stdout] 966 | undefined!(), [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu_macros.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:1068:5 [INFO] [stdout] | [INFO] [stdout] 1068 | undefined!(), [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu_macros.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:1076:5 [INFO] [stdout] | [INFO] [stdout] 1076 | undefined!(), [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu_macros.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:1086:5 [INFO] [stdout] | [INFO] [stdout] 1086 | undefined!(), [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu_macros.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:1094:5 [INFO] [stdout] | [INFO] [stdout] 1094 | undefined!(), [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cpu.rs:40:16 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn new(mut memory_unit: MMU) -> Z80 { [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let mut processor = cpu::Z80::new(memory_unit); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_w` [INFO] [stdout] --> src/mmu.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn set_w(&mut self, address: u16, value: u16) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ZERO_FLAG` [INFO] [stdout] --> src/cpu.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | const ZERO_FLAG: u8 = 0x80; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SUB_FLAG` [INFO] [stdout] --> src/cpu.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | const SUB_FLAG: u8 = 0x40; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `HCARRY_FLAG` [INFO] [stdout] --> src/cpu.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | const HCARRY_FLAG: u8 = 0x20; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `CARRY_FLAG` [INFO] [stdout] --> src/cpu.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | const CARRY_FLAG: u8 = 0x10; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `global_m` [INFO] [stdout] --> src/cpu.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | global_m: u8, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `global_t` [INFO] [stdout] --> src/cpu.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | global_t: u8, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `last_m` [INFO] [stdout] --> src/cpu.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | last_m: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `last_t` [INFO] [stdout] --> src/cpu.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | last_t: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `a` [INFO] [stdout] --> src/cpu.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | a: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `b` [INFO] [stdout] --> src/cpu.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | b: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `c` [INFO] [stdout] --> src/cpu.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | c: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `d` [INFO] [stdout] --> src/cpu.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | d: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `e` [INFO] [stdout] --> src/cpu.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | e: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `f` [INFO] [stdout] --> src/cpu.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | f: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `h` [INFO] [stdout] --> src/cpu.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | h: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `l` [INFO] [stdout] --> src/cpu.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | l: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `pc` [INFO] [stdout] --> src/cpu.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | pc: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `sp` [INFO] [stdout] --> src/cpu.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | sp: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `halt` [INFO] [stdout] --> src/cpu.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | halt: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `ime` [INFO] [stdout] --> src/cpu.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | ime: bool [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reset` [INFO] [stdout] --> src/cpu.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/cpu.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn run(&mut self) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `undefined` [INFO] [stdout] --> src/cpu.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | static undefined: fn(u16) = |x: u16| { panic!("Hit undefined instruction at {:?}", stringify!(x - 1)); }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `isa_map` [INFO] [stdout] --> src/cpu.rs:82:1 [INFO] [stdout] | [INFO] [stdout] 82 | / static isa_map: [fn(&mut Z80); 256] = [ [INFO] [stdout] 83 | | [INFO] [stdout] 84 | | //00 [INFO] [stdout] 85 | | |cpu: &mut Z80| { cpu.last_m = 1; cpu.last_t = 4; }, //NOP [INFO] [stdout] ... | [INFO] [stdout] 976 | | RSTx!(0x38) //RST38 [INFO] [stdout] 977 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `map_table` [INFO] [stdout] --> src/cpu.rs:979:1 [INFO] [stdout] | [INFO] [stdout] 979 | / static map_table: [fn(&mut Z80); 64] = [ [INFO] [stdout] 980 | | [INFO] [stdout] 981 | | //00 [INFO] [stdout] 982 | | RLCr_x!(b), //RLCr_b [INFO] [stdout] ... | [INFO] [stdout] 1095 | | SRLr_x!(a) //SRLr_a [INFO] [stdout] 1096 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `undefined` should have an upper case name [INFO] [stdout] --> src/cpu.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | static undefined: fn(u16) = |x: u16| { panic!("Hit undefined instruction at {:?}", stringify!(x - 1)); }; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `UNDEFINED` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `isa_map` should have an upper case name [INFO] [stdout] --> src/cpu.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | static isa_map: [fn(&mut Z80); 256] = [ [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `ISA_MAP` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `handlers` should have an upper case name [INFO] [stdout] --> src/cpu.rs:703:19 [INFO] [stdout] | [INFO] [stdout] 703 | const handlers: [fn(&mut Z80, u8); 8] = [ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `HANDLERS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `map_table` should have an upper case name [INFO] [stdout] --> src/cpu.rs:979:8 [INFO] [stdout] | [INFO] [stdout] 979 | static map_table: [fn(&mut Z80); 64] = [ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `MAP_TABLE` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 31.70s [INFO] [stdout] warning: 52 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "eecd858d6699e666e67a3e71263b9966ee98ec241576121a9568836b5a354d0c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eecd858d6699e666e67a3e71263b9966ee98ec241576121a9568836b5a354d0c", kill_on_drop: false }` [INFO] [stdout] eecd858d6699e666e67a3e71263b9966ee98ec241576121a9568836b5a354d0c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-114/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-114/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] 0fc9b1f55e0369e2202ccae8af9a161b11012387f61b0deaf21c6fcff2d11341 [INFO] running `Command { std: "docker" "start" "-a" "0fc9b1f55e0369e2202ccae8af9a161b11012387f61b0deaf21c6fcff2d11341", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling gb_emulator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/cpu.rs:80:30 [INFO] [stdout] | [INFO] [stdout] 80 | static undefined: fn(u16) = |x: u16| { panic!("Hit undefined instruction at {:?}", stringify!(x - 1)); }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cpu.rs:124:14 [INFO] [stdout] | [INFO] [stdout] 124 | let (i, b) = hl.overflowing_add(bc); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu_macros.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:278:5 [INFO] [stdout] | [INFO] [stdout] 278 | undefined!(), [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cpu.rs:290:14 [INFO] [stdout] | [INFO] [stdout] 290 | let (i, b) = hl.overflowing_add(hl); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu_macros.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:780:5 [INFO] [stdout] | [INFO] [stdout] 780 | undefined!(), [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu_macros.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:826:5 [INFO] [stdout] | [INFO] [stdout] 826 | undefined!(), [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu_macros.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:836:5 [INFO] [stdout] | [INFO] [stdout] 836 | undefined!(), [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu_macros.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:870:5 [INFO] [stdout] | [INFO] [stdout] 870 | undefined!(), [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu_macros.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:871:5 [INFO] [stdout] | [INFO] [stdout] 871 | undefined!(), [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu_macros.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:902:5 [INFO] [stdout] | [INFO] [stdout] 902 | undefined!(), [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu_macros.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:903:5 [INFO] [stdout] | [INFO] [stdout] 903 | undefined!(), [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu_macros.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:904:5 [INFO] [stdout] | [INFO] [stdout] 904 | undefined!(), [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu_macros.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:934:5 [INFO] [stdout] | [INFO] [stdout] 934 | undefined!(), [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu_macros.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:957:5 [INFO] [stdout] | [INFO] [stdout] 957 | undefined!(), [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu_macros.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:965:5 [INFO] [stdout] | [INFO] [stdout] 965 | undefined!(), [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu_macros.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:966:5 [INFO] [stdout] | [INFO] [stdout] 966 | undefined!(), [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu_macros.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:1068:5 [INFO] [stdout] | [INFO] [stdout] 1068 | undefined!(), [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu_macros.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:1076:5 [INFO] [stdout] | [INFO] [stdout] 1076 | undefined!(), [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu_macros.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:1086:5 [INFO] [stdout] | [INFO] [stdout] 1086 | undefined!(), [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/cpu_macros.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] ::: src/cpu.rs:1094:5 [INFO] [stdout] | [INFO] [stdout] 1094 | undefined!(), [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cpu.rs:40:16 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn new(mut memory_unit: MMU) -> Z80 { [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let mut processor = cpu::Z80::new(memory_unit); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_w` [INFO] [stdout] --> src/mmu.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn set_w(&mut self, address: u16, value: u16) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ZERO_FLAG` [INFO] [stdout] --> src/cpu.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | const ZERO_FLAG: u8 = 0x80; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SUB_FLAG` [INFO] [stdout] --> src/cpu.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | const SUB_FLAG: u8 = 0x40; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `HCARRY_FLAG` [INFO] [stdout] --> src/cpu.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | const HCARRY_FLAG: u8 = 0x20; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `CARRY_FLAG` [INFO] [stdout] --> src/cpu.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | const CARRY_FLAG: u8 = 0x10; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `global_m` [INFO] [stdout] --> src/cpu.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | global_m: u8, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `global_t` [INFO] [stdout] --> src/cpu.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | global_t: u8, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `last_m` [INFO] [stdout] --> src/cpu.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | last_m: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `last_t` [INFO] [stdout] --> src/cpu.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | last_t: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `a` [INFO] [stdout] --> src/cpu.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | a: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `b` [INFO] [stdout] --> src/cpu.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | b: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `c` [INFO] [stdout] --> src/cpu.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | c: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `d` [INFO] [stdout] --> src/cpu.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | d: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `e` [INFO] [stdout] --> src/cpu.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | e: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `f` [INFO] [stdout] --> src/cpu.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | f: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `h` [INFO] [stdout] --> src/cpu.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | h: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `l` [INFO] [stdout] --> src/cpu.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | l: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `pc` [INFO] [stdout] --> src/cpu.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | pc: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `sp` [INFO] [stdout] --> src/cpu.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | sp: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `halt` [INFO] [stdout] --> src/cpu.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | halt: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `ime` [INFO] [stdout] --> src/cpu.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | ime: bool [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reset` [INFO] [stdout] --> src/cpu.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/cpu.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn run(&mut self) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `undefined` [INFO] [stdout] --> src/cpu.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | static undefined: fn(u16) = |x: u16| { panic!("Hit undefined instruction at {:?}", stringify!(x - 1)); }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `isa_map` [INFO] [stdout] --> src/cpu.rs:82:1 [INFO] [stdout] | [INFO] [stdout] 82 | / static isa_map: [fn(&mut Z80); 256] = [ [INFO] [stdout] 83 | | [INFO] [stdout] 84 | | //00 [INFO] [stdout] 85 | | |cpu: &mut Z80| { cpu.last_m = 1; cpu.last_t = 4; }, //NOP [INFO] [stdout] ... | [INFO] [stdout] 976 | | RSTx!(0x38) //RST38 [INFO] [stdout] 977 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `map_table` [INFO] [stdout] --> src/cpu.rs:979:1 [INFO] [stdout] | [INFO] [stdout] 979 | / static map_table: [fn(&mut Z80); 64] = [ [INFO] [stdout] 980 | | [INFO] [stdout] 981 | | //00 [INFO] [stdout] 982 | | RLCr_x!(b), //RLCr_b [INFO] [stdout] ... | [INFO] [stdout] 1095 | | SRLr_x!(a) //SRLr_a [INFO] [stdout] 1096 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `undefined` should have an upper case name [INFO] [stdout] --> src/cpu.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | static undefined: fn(u16) = |x: u16| { panic!("Hit undefined instruction at {:?}", stringify!(x - 1)); }; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `UNDEFINED` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `isa_map` should have an upper case name [INFO] [stdout] --> src/cpu.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | static isa_map: [fn(&mut Z80); 256] = [ [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `ISA_MAP` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `handlers` should have an upper case name [INFO] [stdout] --> src/cpu.rs:703:19 [INFO] [stdout] | [INFO] [stdout] 703 | const handlers: [fn(&mut Z80, u8); 8] = [ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `HANDLERS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `map_table` should have an upper case name [INFO] [stdout] --> src/cpu.rs:979:8 [INFO] [stdout] | [INFO] [stdout] 979 | static map_table: [fn(&mut Z80); 64] = [ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `MAP_TABLE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 52 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1m 43s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/gb_emulator-2fe2049c956d7d77) [INFO] running `Command { std: "docker" "inspect" "0fc9b1f55e0369e2202ccae8af9a161b11012387f61b0deaf21c6fcff2d11341", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0fc9b1f55e0369e2202ccae8af9a161b11012387f61b0deaf21c6fcff2d11341", kill_on_drop: false }` [INFO] [stdout] 0fc9b1f55e0369e2202ccae8af9a161b11012387f61b0deaf21c6fcff2d11341 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-114/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-114/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] f3f67d7dcb728a0f308419720e5f2b09d46d4c468b2cb15df21fc662ce40913e [INFO] running `Command { std: "docker" "start" "-a" "f3f67d7dcb728a0f308419720e5f2b09d46d4c468b2cb15df21fc662ce40913e", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/cpu.rs:80:30 [INFO] [stderr] | [INFO] [stderr] 80 | static undefined: fn(u16) = |x: u16| { panic!("Hit undefined instruction at {:?}", stringify!(x - 1)); }; [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/cpu.rs:124:14 [INFO] [stderr] | [INFO] [stderr] 124 | let (i, b) = hl.overflowing_add(bc); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cpu` [INFO] [stderr] --> src/cpu_macros.rs:283:10 [INFO] [stderr] | [INFO] [stderr] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stderr] | [INFO] [stderr] ::: src/cpu.rs:278:5 [INFO] [stderr] | [INFO] [stderr] 278 | undefined!(), [INFO] [stderr] | ------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/cpu.rs:290:14 [INFO] [stderr] | [INFO] [stderr] 290 | let (i, b) = hl.overflowing_add(hl); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cpu` [INFO] [stderr] --> src/cpu_macros.rs:283:10 [INFO] [stderr] | [INFO] [stderr] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stderr] | [INFO] [stderr] ::: src/cpu.rs:780:5 [INFO] [stderr] | [INFO] [stderr] 780 | undefined!(), [INFO] [stderr] | ------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cpu` [INFO] [stderr] --> src/cpu_macros.rs:283:10 [INFO] [stderr] | [INFO] [stderr] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stderr] | [INFO] [stderr] ::: src/cpu.rs:826:5 [INFO] [stderr] | [INFO] [stderr] 826 | undefined!(), [INFO] [stderr] | ------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cpu` [INFO] [stderr] --> src/cpu_macros.rs:283:10 [INFO] [stderr] | [INFO] [stderr] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stderr] | [INFO] [stderr] ::: src/cpu.rs:836:5 [INFO] [stderr] | [INFO] [stderr] 836 | undefined!(), [INFO] [stderr] | ------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cpu` [INFO] [stderr] --> src/cpu_macros.rs:283:10 [INFO] [stderr] | [INFO] [stderr] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stderr] | [INFO] [stderr] ::: src/cpu.rs:870:5 [INFO] [stderr] | [INFO] [stderr] 870 | undefined!(), [INFO] [stderr] | ------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cpu` [INFO] [stderr] --> src/cpu_macros.rs:283:10 [INFO] [stderr] | [INFO] [stderr] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stderr] | [INFO] [stderr] ::: src/cpu.rs:871:5 [INFO] [stderr] | [INFO] [stderr] 871 | undefined!(), [INFO] [stderr] | ------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cpu` [INFO] [stderr] --> src/cpu_macros.rs:283:10 [INFO] [stderr] | [INFO] [stderr] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stderr] | [INFO] [stderr] ::: src/cpu.rs:902:5 [INFO] [stderr] | [INFO] [stderr] 902 | undefined!(), [INFO] [stderr] | ------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cpu` [INFO] [stderr] --> src/cpu_macros.rs:283:10 [INFO] [stderr] | [INFO] [stderr] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stderr] | [INFO] [stderr] ::: src/cpu.rs:903:5 [INFO] [stderr] | [INFO] [stderr] 903 | undefined!(), [INFO] [stderr] | ------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cpu` [INFO] [stderr] --> src/cpu_macros.rs:283:10 [INFO] [stderr] | [INFO] [stderr] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stderr] | [INFO] [stderr] ::: src/cpu.rs:904:5 [INFO] [stderr] | [INFO] [stderr] 904 | undefined!(), [INFO] [stderr] | ------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cpu` [INFO] [stderr] --> src/cpu_macros.rs:283:10 [INFO] [stderr] | [INFO] [stderr] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stderr] | [INFO] [stderr] ::: src/cpu.rs:934:5 [INFO] [stderr] | [INFO] [stderr] 934 | undefined!(), [INFO] [stderr] | ------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cpu` [INFO] [stderr] --> src/cpu_macros.rs:283:10 [INFO] [stderr] | [INFO] [stderr] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stderr] | [INFO] [stderr] ::: src/cpu.rs:957:5 [INFO] [stderr] | [INFO] [stderr] 957 | undefined!(), [INFO] [stderr] | ------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cpu` [INFO] [stderr] --> src/cpu_macros.rs:283:10 [INFO] [stderr] | [INFO] [stderr] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stderr] | [INFO] [stderr] ::: src/cpu.rs:965:5 [INFO] [stderr] | [INFO] [stderr] 965 | undefined!(), [INFO] [stderr] | ------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cpu` [INFO] [stderr] --> src/cpu_macros.rs:283:10 [INFO] [stderr] | [INFO] [stderr] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stderr] | [INFO] [stderr] ::: src/cpu.rs:966:5 [INFO] [stderr] | [INFO] [stderr] 966 | undefined!(), [INFO] [stderr] | ------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cpu` [INFO] [stderr] --> src/cpu_macros.rs:283:10 [INFO] [stderr] | [INFO] [stderr] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stderr] | [INFO] [stderr] ::: src/cpu.rs:1068:5 [INFO] [stderr] | [INFO] [stderr] 1068 | undefined!(), [INFO] [stderr] | ------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cpu` [INFO] [stderr] --> src/cpu_macros.rs:283:10 [INFO] [stderr] | [INFO] [stderr] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stderr] | [INFO] [stderr] ::: src/cpu.rs:1076:5 [INFO] [stderr] | [INFO] [stderr] 1076 | undefined!(), [INFO] [stderr] | ------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cpu` [INFO] [stderr] --> src/cpu_macros.rs:283:10 [INFO] [stderr] | [INFO] [stderr] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stderr] | [INFO] [stderr] ::: src/cpu.rs:1086:5 [INFO] [stderr] | [INFO] [stderr] 1086 | undefined!(), [INFO] [stderr] | ------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cpu` [INFO] [stderr] --> src/cpu_macros.rs:283:10 [INFO] [stderr] | [INFO] [stderr] 283 | |cpu: &mut Z80| { panic!("Hit undefined instruction at {:?}", stringify!(cpu.pc - 1)); } [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stderr] | [INFO] [stderr] ::: src/cpu.rs:1094:5 [INFO] [stderr] | [INFO] [stderr] 1094 | undefined!(), [INFO] [stderr] | ------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `undefined` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/cpu.rs:40:16 [INFO] [stderr] | [INFO] [stderr] 40 | pub fn new(mut memory_unit: MMU) -> Z80 { [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: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:23:9 [INFO] [stderr] | [INFO] [stderr] 23 | let mut processor = cpu::Z80::new(memory_unit); [INFO] [stderr] | ----^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set_w` [INFO] [stderr] --> src/mmu.rs:70:12 [INFO] [stderr] | [INFO] [stderr] 70 | pub fn set_w(&mut self, address: u16, value: u16) -> Option { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `ZERO_FLAG` [INFO] [stderr] --> src/cpu.rs:13:1 [INFO] [stderr] | [INFO] [stderr] 13 | const ZERO_FLAG: u8 = 0x80; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `SUB_FLAG` [INFO] [stderr] --> src/cpu.rs:14:1 [INFO] [stderr] | [INFO] [stderr] 14 | const SUB_FLAG: u8 = 0x40; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `HCARRY_FLAG` [INFO] [stderr] --> src/cpu.rs:15:1 [INFO] [stderr] | [INFO] [stderr] 15 | const HCARRY_FLAG: u8 = 0x20; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `CARRY_FLAG` [INFO] [stderr] --> src/cpu.rs:16:1 [INFO] [stderr] | [INFO] [stderr] 16 | const CARRY_FLAG: u8 = 0x10; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `global_m` [INFO] [stderr] --> src/cpu.rs:21:5 [INFO] [stderr] | [INFO] [stderr] 21 | global_m: u8, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `global_t` [INFO] [stderr] --> src/cpu.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 22 | global_t: u8, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `last_m` [INFO] [stderr] --> src/cpu.rs:23:5 [INFO] [stderr] | [INFO] [stderr] 23 | last_m: u8, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `last_t` [INFO] [stderr] --> src/cpu.rs:24:5 [INFO] [stderr] | [INFO] [stderr] 24 | last_t: u8, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `a` [INFO] [stderr] --> src/cpu.rs:25:5 [INFO] [stderr] | [INFO] [stderr] 25 | a: u8, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `b` [INFO] [stderr] --> src/cpu.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 26 | b: u8, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `c` [INFO] [stderr] --> src/cpu.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 27 | c: u8, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `d` [INFO] [stderr] --> src/cpu.rs:28:5 [INFO] [stderr] | [INFO] [stderr] 28 | d: u8, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `e` [INFO] [stderr] --> src/cpu.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 29 | e: u8, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `f` [INFO] [stderr] --> src/cpu.rs:30:5 [INFO] [stderr] | [INFO] [stderr] 30 | f: u8, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `h` [INFO] [stderr] --> src/cpu.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | h: u8, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `l` [INFO] [stderr] --> src/cpu.rs:32:5 [INFO] [stderr] | [INFO] [stderr] 32 | l: u8, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `pc` [INFO] [stderr] --> src/cpu.rs:33:5 [INFO] [stderr] | [INFO] [stderr] 33 | pc: u16, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `sp` [INFO] [stderr] --> src/cpu.rs:34:5 [INFO] [stderr] | [INFO] [stderr] 34 | sp: u16, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `halt` [INFO] [stderr] --> src/cpu.rs:35:5 [INFO] [stderr] | [INFO] [stderr] 35 | halt: bool, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `ime` [INFO] [stderr] --> src/cpu.rs:36:5 [INFO] [stderr] | [INFO] [stderr] 36 | ime: bool [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `reset` [INFO] [stderr] --> src/cpu.rs:62:12 [INFO] [stderr] | [INFO] [stderr] 62 | pub fn reset(&mut self) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `run` [INFO] [stderr] --> src/cpu.rs:66:12 [INFO] [stderr] | [INFO] [stderr] 66 | pub fn run(&mut self) -> u8 { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: static is never used: `undefined` [INFO] [stderr] --> src/cpu.rs:80:1 [INFO] [stderr] | [INFO] [stderr] 80 | static undefined: fn(u16) = |x: u16| { panic!("Hit undefined instruction at {:?}", stringify!(x - 1)); }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static is never used: `isa_map` [INFO] [stderr] --> src/cpu.rs:82:1 [INFO] [stderr] | [INFO] [stderr] 82 | / static isa_map: [fn(&mut Z80); 256] = [ [INFO] [stderr] 83 | | [INFO] [stderr] 84 | | //00 [INFO] [stderr] 85 | | |cpu: &mut Z80| { cpu.last_m = 1; cpu.last_t = 4; }, //NOP [INFO] [stderr] ... | [INFO] [stderr] 976 | | RSTx!(0x38) //RST38 [INFO] [stderr] 977 | | ]; [INFO] [stderr] | |__^ [INFO] [stderr] [INFO] [stderr] warning: static is never used: `map_table` [INFO] [stderr] --> src/cpu.rs:979:1 [INFO] [stderr] | [INFO] [stderr] 979 | / static map_table: [fn(&mut Z80); 64] = [ [INFO] [stderr] 980 | | [INFO] [stderr] 981 | | //00 [INFO] [stderr] 982 | | RLCr_x!(b), //RLCr_b [INFO] [stderr] ... | [INFO] [stderr] 1095 | | SRLr_x!(a) //SRLr_a [INFO] [stderr] 1096 | | ]; [INFO] [stderr] | |__^ [INFO] [stderr] [INFO] [stderr] warning: static variable `undefined` should have an upper case name [INFO] [stderr] --> src/cpu.rs:80:8 [INFO] [stderr] | [INFO] [stderr] 80 | static undefined: fn(u16) = |x: u16| { panic!("Hit undefined instruction at {:?}", stringify!(x - 1)); }; [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to upper case: `UNDEFINED` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stderr] [INFO] [stderr] warning: static variable `isa_map` should have an upper case name [INFO] [stderr] --> src/cpu.rs:82:8 [INFO] [stderr] | [INFO] [stderr] 82 | static isa_map: [fn(&mut Z80); 256] = [ [INFO] [stderr] | ^^^^^^^ help: convert the identifier to upper case: `ISA_MAP` [INFO] [stderr] [INFO] [stderr] warning: constant `handlers` should have an upper case name [INFO] [stderr] --> src/cpu.rs:703:19 [INFO] [stderr] | [INFO] [stderr] 703 | const handlers: [fn(&mut Z80, u8); 8] = [ [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to upper case: `HANDLERS` [INFO] [stderr] [INFO] [stderr] warning: static variable `map_table` should have an upper case name [INFO] [stderr] --> src/cpu.rs:979:8 [INFO] [stderr] | [INFO] [stderr] 979 | static map_table: [fn(&mut Z80); 64] = [ [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to upper case: `MAP_TABLE` [INFO] [stderr] [INFO] [stderr] warning: `gb_emulator` (bin "gb_emulator" test) generated 52 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 32.63s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/gb_emulator-2fe2049c956d7d77) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "f3f67d7dcb728a0f308419720e5f2b09d46d4c468b2cb15df21fc662ce40913e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f3f67d7dcb728a0f308419720e5f2b09d46d4c468b2cb15df21fc662ce40913e", kill_on_drop: false }` [INFO] [stdout] f3f67d7dcb728a0f308419720e5f2b09d46d4c468b2cb15df21fc662ce40913e