[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] checking VictorFordham/rust_gb_emulator against master#5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f for pr-87248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVictorFordham%2Frust_gb_emulator" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/VictorFordham/rust_gb_emulator on toolchain 5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "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-9/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" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 70b2a659dc9d9b10d38007b4f1a99a05c4f161d42a1f3efcacf004c655a81c76 [INFO] running `Command { std: "docker" "start" "-a" "70b2a659dc9d9b10d38007b4f1a99a05c4f161d42a1f3efcacf004c655a81c76", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "70b2a659dc9d9b10d38007b4f1a99a05c4f161d42a1f3efcacf004c655a81c76", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "70b2a659dc9d9b10d38007b4f1a99a05c4f161d42a1f3efcacf004c655a81c76", kill_on_drop: false }` [INFO] [stdout] 70b2a659dc9d9b10d38007b4f1a99a05c4f161d42a1f3efcacf004c655a81c76 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eba233f4dcf124d663a9af3f6a72cea4f9c0e8926717948cc642e775b8e3dfc8 [INFO] running `Command { std: "docker" "start" "-a" "eba233f4dcf124d663a9af3f6a72cea4f9c0e8926717948cc642e775b8e3dfc8", kill_on_drop: false }` [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.88 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling syn v1.0.62 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking smallvec v1.6.1 [INFO] [stderr] Checking futures-core v0.3.13 [INFO] [stderr] Checking futures-sink v0.3.13 [INFO] [stderr] Checking futures-task v0.3.13 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking futures-io v0.3.13 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking typed-arena v2.0.1 [INFO] [stderr] Checking pollster v0.2.1 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Compiling x11 v2.18.2 [INFO] [stderr] Checking tracing-core v0.1.17 [INFO] [stderr] Checking wide v0.4.6 [INFO] [stderr] Checking instant v0.1.9 [INFO] [stderr] Checking libloading v0.6.7 [INFO] [stderr] Checking lock_api v0.4.2 [INFO] [stderr] Checking futures-channel v0.3.13 [INFO] [stderr] Checking ash v0.31.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Checking wgpu-types v0.6.1 [INFO] [stderr] Checking tracing v0.1.25 [INFO] [stderr] Checking ultraviolet v0.4.6 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking raw-window-handle v0.3.3 [INFO] [stderr] Checking parking_lot_core v0.8.3 [INFO] [stderr] Checking gfx-hal v0.6.0 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking spirv_headers v1.5.0 [INFO] [stderr] Checking gfx-memory v0.2.2 [INFO] [stderr] Checking gfx-descriptor v0.2.0 [INFO] [stderr] Checking gfx-backend-empty v0.6.0 [INFO] [stderr] Compiling thiserror-impl v1.0.24 [INFO] [stderr] Compiling futures-macro v0.3.13 [INFO] [stderr] Checking futures-util v0.3.13 [INFO] [stderr] Checking thiserror v1.0.24 [INFO] [stderr] Checking gfx-backend-vulkan v0.6.5 [INFO] [stderr] Checking naga v0.2.0 [INFO] [stderr] Checking wgpu-core v0.6.5 [INFO] [stderr] Checking futures-executor v0.3.13 [INFO] [stderr] Checking futures v0.3.13 [INFO] [stderr] Checking wgpu v0.6.2 [INFO] [stderr] Checking pixels v0.2.0 [INFO] [stderr] Checking 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/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] = note: `#[warn(unused_mut)]` on by default [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] [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/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] = note: `#[warn(unused_mut)]` on by default [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] [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] [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 dev [unoptimized + debuginfo] target(s) in 38.67s [INFO] running `Command { std: "docker" "inspect" "eba233f4dcf124d663a9af3f6a72cea4f9c0e8926717948cc642e775b8e3dfc8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eba233f4dcf124d663a9af3f6a72cea4f9c0e8926717948cc642e775b8e3dfc8", kill_on_drop: false }` [INFO] [stdout] eba233f4dcf124d663a9af3f6a72cea4f9c0e8926717948cc642e775b8e3dfc8