[INFO] cloning repository https://github.com/exitnodeio/rustchild [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/exitnodeio/rustchild" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fexitnodeio%2Frustchild", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fexitnodeio%2Frustchild'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] de3b67a2da10f1c1ea29d674e3212e0bffb0c227 [INFO] checking exitnodeio/rustchild against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fexitnodeio%2Frustchild" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/exitnodeio/rustchild [INFO] finished tweaking git repo https://github.com/exitnodeio/rustchild [INFO] tweaked toml for git repo https://github.com/exitnodeio/rustchild written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/exitnodeio/rustchild on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/exitnodeio/rustchild already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 09f57291d50a1bc3dc50b38dd33f403ef2c4b449ccbfdc78a7d820f0d4bbfa00 [INFO] running `Command { std: "docker" "start" "-a" "09f57291d50a1bc3dc50b38dd33f403ef2c4b449ccbfdc78a7d820f0d4bbfa00", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "09f57291d50a1bc3dc50b38dd33f403ef2c4b449ccbfdc78a7d820f0d4bbfa00", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "09f57291d50a1bc3dc50b38dd33f403ef2c4b449ccbfdc78a7d820f0d4bbfa00", kill_on_drop: false }` [INFO] [stdout] 09f57291d50a1bc3dc50b38dd33f403ef2c4b449ccbfdc78a7d820f0d4bbfa00 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a05c1a6c8c381438b2d5077f49a485dc38990168b594073168f5c92ff83fe5bb [INFO] running `Command { std: "docker" "start" "-a" "a05c1a6c8c381438b2d5077f49a485dc38990168b594073168f5c92ff83fe5bb", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Compiling serde_json v1.0.114 [INFO] [stderr] Checking ryu v1.0.17 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Checking rustchild v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: value assigned to `hc` is never read [INFO] [stdout] --> src/cpu/mod.rs:234:17 [INFO] [stdout] | [INFO] [stdout] 234 | let mut hc: bool = false; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HZ_PER_CYCLE` is never used [INFO] [stdout] --> src/clock.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const HZ_PER_CYCLE: u64 = 4; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Clock` is never constructed [INFO] [stdout] --> src/clock.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Clock { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `tick`, `set_clock_speed`, `consume_cycles`, `nano_to_cycles`, and `nano_to_hz` are never used [INFO] [stdout] --> src/clock.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Clock { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 14 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn tick(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn set_clock_speed(&mut self, speed: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | fn consume_cycles(&mut self, number: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn nano_to_cycles(&self, ns: u128) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn nano_to_hz(&self, ns: u128) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Timer` is never constructed [INFO] [stdout] --> src/clock.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct Timer { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/clock.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 64 | impl Timer { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 65 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn tick(&mut self, delta: f64) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | fn inc_div(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | fn inc_tima(&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn reset_div(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn reset_tima(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn set_rate_tima(&mut self, rate: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | fn translate_rate_tima(&mut self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn set_tima_enable(&mut self, enable: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 133 | pub fn set_tma(&mut self, tma: u8) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn get_tma(&self) -> &u8 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | pub fn set_tac(&mut self, byte: u8) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | fn update_tac(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | pub fn get_tac(&self) -> &u8 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | pub fn get_tima(&self) -> &u8 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn get_div(&self) -> &u8 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Registers` is never constructed [INFO] [stdout] --> src/cpu/mod.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Registers { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/cpu/mod.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Registers { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 19 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cpu` is never constructed [INFO] [stdout] --> src/cpu/mod.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Cpu { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/cpu/mod.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl Cpu { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 42 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn get_r16(&self, load_reg: &u8) -> u16 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | fn set_r16(&mut self, dest_reg: &u8, value: &u16) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | fn get_r16mem(&mut self, load_reg: &u8) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | fn set_r16mem(&mut self, dest_reg: &u8, value: u8) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | fn get_r16stk(&self, load_reg: &u8) -> u16 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | fn set_r16stk(&mut self, dest_reg: &u8, value: u16) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | fn get_r8(&self, load_reg: &u8) -> &u8 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | fn set_r8(&mut self, dest_reg: &u8, value: u8) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | fn get_imm8(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | fn get_imm16(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | fn set_imm8(&mut self, value: u8) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | fn set_imm16(&mut self, value: u8) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 225 | fn adc_u8(&self, a: &u8, b: &u8) -> (u8, bool, bool) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 232 | fn adc_signed_u8(&self, a: &u8, b: &u8) -> (u8, bool, bool) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 243 | fn adc_u16(&self, a: &u16, b: &u16) -> (u16, bool, bool) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 250 | fn sbc_u8(&self, a: &u8, b: &u8) -> (u8, bool, bool) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 258 | fn sbc_u16(&self, a: &u16, b: &u16) -> (u16, bool, bool) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | fn byte_merge(&self, a: u8, b: u8) -> u16 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 267 | fn word_split(&self, word: u16) -> (u8, u8) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 271 | fn set_flag_z(&mut self, value: bool) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 278 | fn set_flag_n(&mut self, value: bool) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 285 | fn set_flag_h(&mut self, value: bool) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 292 | fn set_flag_c(&mut self, value: bool) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 299 | fn get_flag_z(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 302 | fn get_flag_n(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 305 | fn get_flag_h(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 308 | fn get_flag_c(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 311 | fn get_cond(&self, value: u8) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 320 | fn get_ar_tgt(&mut self, instruction: u8) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/cpu/alu.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 3 | impl Cpu { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 4 | pub(crate) fn nop(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | pub(crate) fn ld_r16_imm16(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub(crate) fn ld_r16mem_a(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub(crate) fn ld_a_r16mem(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub(crate) fn ld_imm16_sp(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub(crate) fn inc_r16(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub(crate) fn dec_r16(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub(crate) fn add_hl_r16(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub(crate) fn inc_r8(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub(crate) fn dec_r8(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub(crate) fn ld_r8_imm8(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub(crate) fn rlca(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub(crate) fn rrca(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | pub(crate) fn rla(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub(crate) fn rra(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | pub(crate) fn daa(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | pub(crate) fn cpl(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | pub(crate) fn scf(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 172 | pub(crate) fn ccf(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | pub(crate) fn jr_imm8(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | pub(crate) fn jr_cond_imm8(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub(crate) fn stop(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub(crate) fn ld_r8_r8(&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 212 | pub(crate) fn halt(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 216 | pub(crate) fn add_a(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 228 | pub(crate) fn adc_a(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | pub(crate) fn sub_a(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 261 | pub(crate) fn sbc_a(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 282 | pub(crate) fn and_a(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | pub(crate) fn xor_a(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 304 | pub(crate) fn or_a(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 315 | pub(crate) fn cp_a(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 326 | pub(crate) fn ret_cond(&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 339 | pub(crate) fn ret(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 347 | pub(crate) fn reti(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 356 | pub(crate) fn jp_cond_imm16(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 365 | pub(crate) fn jp_imm16(&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 369 | pub(crate) fn jp_hl(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 373 | pub(crate) fn call_cond_imm16(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 389 | pub(crate) fn call_imm16(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 400 | pub(crate) fn rst_tgt3(&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 412 | pub(crate) fn pop_r16stk(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 423 | pub(crate) fn push_r16stk(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 433 | pub(crate) fn ldh_c_a(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 439 | pub(crate) fn ldh_imm8_a(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 445 | pub(crate) fn ld_imm16_a(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 451 | pub(crate) fn ldh_a_c(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 457 | pub(crate) fn ldh_a_imm8(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 463 | pub(crate) fn ld_a_imm16(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 469 | pub(crate) fn add_sp_imm8(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 483 | pub(crate) fn ld_hl_sp_imm8(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 499 | pub(crate) fn ld_sp_hl(&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 505 | pub(crate) fn di(&mut self) { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 510 | pub(crate) fn ei(&mut self) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `exec` is never used [INFO] [stdout] --> src/cpu/instructions.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Cpu { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] 4 | pub fn exec(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Memory` is never constructed [INFO] [stdout] --> src/memory.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Memory { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Mode` is never used [INFO] [stdout] --> src/memory.rs:16:6 [INFO] [stdout] | [INFO] [stdout] 16 | enum Mode { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `new_flat`, `read_byte`, and `write_byte` are never used [INFO] [stdout] --> src/memory.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Memory { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 22 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn new_flat() -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn read_byte(&self, address: u16) -> &u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn write_byte(&mut self, address: u16, byte: u8) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `hc` is never read [INFO] [stdout] --> src/cpu/mod.rs:234:17 [INFO] [stdout] | [INFO] [stdout] 234 | let mut hc: bool = false; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HZ_PER_CYCLE` is never used [INFO] [stdout] --> src/clock.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const HZ_PER_CYCLE: u64 = 4; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `clock_speed`, `cycle_counter`, `time_elapsed`, and `last_tick` are never read [INFO] [stdout] --> src/clock.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Clock { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 6 | clock_speed: u64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 7 | cycle_counter: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 8 | time_elapsed: u128, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 9 | last_tick: Instant, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `tick`, `set_clock_speed`, `consume_cycles`, `nano_to_cycles`, and `nano_to_hz` are never used [INFO] [stdout] --> src/clock.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl Clock { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 24 | fn tick(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn set_clock_speed(&mut self, speed: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | fn consume_cycles(&mut self, number: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn nano_to_cycles(&self, ns: u128) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn nano_to_hz(&self, ns: u128) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `div_c`, `div_rate`, `tima_c`, and `interrupts` are never read [INFO] [stdout] --> src/clock.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct Timer { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 52 | div: u8, [INFO] [stdout] 53 | div_c: f64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 54 | div_rate: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 55 | tima: u8, [INFO] [stdout] 56 | tima_c: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | interrupts: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/clock.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 64 | impl Timer { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn tick(&mut self, delta: f64) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | fn inc_div(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | fn inc_tima(&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn set_rate_tima(&mut self, rate: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | fn translate_rate_tima(&mut self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn set_tima_enable(&mut self, enable: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | fn update_tac(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/cpu/mod.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Registers { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 19 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `clock` is never read [INFO] [stdout] --> src/cpu/mod.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Cpu { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 38 | pub clock: Clock, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `set_imm8`, `set_imm16`, `adc_signed_u8`, and `sbc_u16` are never used [INFO] [stdout] --> src/cpu/mod.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl Cpu { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 42 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | fn set_imm8(&mut self, value: u8) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | fn set_imm16(&mut self, value: u8) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 232 | fn adc_signed_u8(&self, a: &u8, b: &u8) -> (u8, bool, bool) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 258 | fn sbc_u16(&self, a: &u16, b: &u16) -> (u16, bool, bool) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `io` is never read [INFO] [stdout] --> src/memory.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Memory { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | io: [u8; 0x80usize], [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.64s [INFO] running `Command { std: "docker" "inspect" "a05c1a6c8c381438b2d5077f49a485dc38990168b594073168f5c92ff83fe5bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a05c1a6c8c381438b2d5077f49a485dc38990168b594073168f5c92ff83fe5bb", kill_on_drop: false }` [INFO] [stdout] a05c1a6c8c381438b2d5077f49a485dc38990168b594073168f5c92ff83fe5bb