[INFO] cloning repository https://github.com/vkobinski/gameboy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vkobinski/gameboy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvkobinski%2Fgameboy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvkobinski%2Fgameboy'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 085afd8bfee8825cc52cb87c637f2284bf89a490 [INFO] checking vkobinski/gameboy against master#cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c for pr-143170 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvkobinski%2Fgameboy" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/vkobinski/gameboy [INFO] finished tweaking git repo https://github.com/vkobinski/gameboy [INFO] tweaked toml for git repo https://github.com/vkobinski/gameboy written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/vkobinski/gameboy on toolchain cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/vkobinski/gameboy 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" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a56151e500ff4132accc60f46a97a9b90f601b7767b93dde2f3a3a82f118984a [INFO] running `Command { std: "docker" "start" "-a" "a56151e500ff4132accc60f46a97a9b90f601b7767b93dde2f3a3a82f118984a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a56151e500ff4132accc60f46a97a9b90f601b7767b93dde2f3a3a82f118984a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a56151e500ff4132accc60f46a97a9b90f601b7767b93dde2f3a3a82f118984a", kill_on_drop: false }` [INFO] [stdout] a56151e500ff4132accc60f46a97a9b90f601b7767b93dde2f3a3a82f118984a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7b084d7b087b2c6f5e67d630994293701fd10369ce436505957033b577cd87af [INFO] running `Command { std: "docker" "start" "-a" "7b084d7b087b2c6f5e67d630994293701fd10369ce436505957033b577cd87af", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling anyhow v1.0.81 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling syn v2.0.52 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-complex v0.4.5 [INFO] [stderr] Checking num-iter v0.1.44 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Checking num v0.4.1 [INFO] [stderr] Checking gameboy v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::architecture::cpu::Cpu` [INFO] [stdout] --> src/architecture/bus.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{super::architecture::cpu::Cpu, super::architecture::mem::Memory}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Reg8` [INFO] [stdout] --> src/main.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | use architecture::cpu::{Cpu, Reg8}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::architecture::cpu::Cpu` [INFO] [stdout] --> src/architecture/bus.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{super::architecture::cpu::Cpu, super::architecture::mem::Memory}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mem::Memory` [INFO] [stdout] --> src/tests/instructions_test.rs:3:62 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::architecture::{cpu::{Flag, Cpu, Reg8, Reg16}, mem::Memory}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/tests/rom_size_test.rs:3:38 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::cartridge::rom_size::{self, ByteRomSize}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Reg8` [INFO] [stdout] --> src/main.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | use architecture::cpu::{Cpu, Reg8}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/main.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let mut cpu = Cpu::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let mut cpu = Cpu::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RegPos` is never used [INFO] [stdout] --> src/architecture/cpu.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum RegPos { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `high` and `low` are never read [INFO] [stdout] --> src/architecture/cpu.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Register { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 11 | high: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | low: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `reg_part_and`, `reg_part_or`, `set_part`, `get_part`, `get_value`, and `set_reg` are never used [INFO] [stdout] --> src/architecture/cpu.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Register { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn reg_part_and(&mut self, part: RegPos, val: u8) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn reg_part_or(&mut self, part: RegPos, val: u8) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn set_part(&mut self, part: RegPos, val: u8) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn get_part(&self, part: RegPos) -> u8 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn get_value(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn set_reg(&mut self, val: u16) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Flag` is never used [INFO] [stdout] --> src/architecture/cpu.rs:63:10 [INFO] [stdout] | [INFO] [stdout] 63 | pub enum Flag { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Reg8` is never used [INFO] [stdout] --> src/architecture/cpu.rs:70:10 [INFO] [stdout] | [INFO] [stdout] 70 | pub enum Reg8 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Reg16` is never used [INFO] [stdout] --> src/architecture/cpu.rs:80:10 [INFO] [stdout] | [INFO] [stdout] 80 | pub enum Reg16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `af`, `bc`, `de`, `hl`, `sp`, and `pc` are never read [INFO] [stdout] --> src/architecture/cpu.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 87 | pub struct RegBank { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 88 | pub af: Register, [INFO] [stdout] | ^^ [INFO] [stdout] 89 | pub bc: Register, [INFO] [stdout] | ^^ [INFO] [stdout] 90 | pub de: Register, [INFO] [stdout] | ^^ [INFO] [stdout] 91 | pub hl: Register, [INFO] [stdout] | ^^ [INFO] [stdout] 92 | pub sp: Register, [INFO] [stdout] | ^^ [INFO] [stdout] 93 | pub pc: Register, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/architecture/cpu.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 96 | impl RegBank { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn get_flag(&self, pos: Flag) -> u8 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn set_flag(&mut self, pos: Flag) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn unset_flag(&mut self, pos: Flag) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn check_all_8_sum_flags(&mut self, reg: &Reg8, reg_before: u8, val: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn check_zero_8(&mut self, reg: &Reg8) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn check_half_carry_8(&mut self, reg: &Reg8, _val: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | pub fn check_carry_8(&mut self, reg_before: u8, val: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | pub fn check_all_16_sum_flags(&mut self, reg: &Reg16, reg_before: u16, val: u16) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn check_zero_16(&mut self, reg: &Reg16) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub fn check_half_carry_16(&mut self, reg: &Reg16, _val: u16) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 184 | pub fn check_carry_16(&mut self, reg_before: u16, val: u16) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | pub fn get_8_bit_reg(&self, reg: &Reg8) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 208 | pub fn set_8_bit_reg(&mut self, reg: &Reg8, val: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | pub fn get_16_bit_reg(&self, reg: &Reg16) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 230 | pub fn set_16_bit_reg(&mut self, reg: &Reg16, val: u16) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 239 | pub fn set_flags_and(&mut self, val: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bank`, `bus`, and `clocks` are never read [INFO] [stdout] --> src/architecture/cpu.rs:252:9 [INFO] [stdout] | [INFO] [stdout] 251 | pub struct Cpu { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 252 | pub bank: RegBank, [INFO] [stdout] | ^^^^ [INFO] [stdout] 253 | pub bus: Bus, [INFO] [stdout] | ^^^ [INFO] [stdout] 254 | clocks: u64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `tick` is never used [INFO] [stdout] --> src/architecture/cpu.rs:269:12 [INFO] [stdout] | [INFO] [stdout] 257 | impl Cpu { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 269 | pub fn tick(&mut self, cycles: u8) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mem` is never read [INFO] [stdout] --> src/architecture/bus.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Bus { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 4 | pub mem: Memory, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/architecture/mem.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Memory { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 2 | data: [u8; 0xFFFF], [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `read_byte`, `read_byte_reg`, and `store_byte` are never used [INFO] [stdout] --> src/architecture/mem.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Memory { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 12 | pub fn read_byte(&self, addr: u16) -> u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn read_byte_reg(&self, high: u8, low: u8) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn store_byte(&mut self, addr: u16, val: u8) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/architecture/instructions_set.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl cpu::Cpu { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 7 | pub fn parse_instruction(&mut self, opcode: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn current_pc(&mut self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn nop(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn adc_a_r8(&mut self, reg: Reg8) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn adc_a_hl(&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn adc_a_n8(&mut self, val: u8) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn add_a_r8(&mut self, reg: Reg8) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn add_a_hl(&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn add_a_n8(&mut self, val: u8) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn add_hl_r16(&mut self, val: &Reg16) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn add_hl_sp(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn add_sp_e8(&mut self, val: i8) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | pub fn and_a_r8(&mut self, reg: &Reg8) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/cartridge/header.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Header { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 7 | pub nintendo_logo: [u8; 0x30], [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 8 | pub title: [char; 0xF], [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | pub manufacturer_code: [char; 0x3], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | pub cgb_flag: CgbFlag, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 11 | pub licensee_code: Licensee, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 12 | pub sgb_flag: SgbFlag, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 13 | pub c_type: CartridgeType, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 14 | pub rom_size: ByteRomSize, [INFO] [stdout] 15 | pub old_licensee: OldLicensee, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 16 | pub region: Region, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Header` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/main.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let mut cpu = Cpu::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let mut cpu = Cpu::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `C`, `D`, `E`, `H`, and `L` are never constructed [INFO] [stdout] --> src/architecture/cpu.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 70 | pub enum Reg8 { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 73 | C, [INFO] [stdout] | ^ [INFO] [stdout] 74 | D, [INFO] [stdout] | ^ [INFO] [stdout] 75 | E, [INFO] [stdout] | ^ [INFO] [stdout] 76 | H, [INFO] [stdout] | ^ [INFO] [stdout] 77 | L, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `DE` is never constructed [INFO] [stdout] --> src/architecture/cpu.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 80 | pub enum Reg16 { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 81 | BC, [INFO] [stdout] 82 | DE, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pc` is never read [INFO] [stdout] --> src/architecture/cpu.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 87 | pub struct RegBank { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 93 | pub pc: Register, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `read_byte_reg` is never used [INFO] [stdout] --> src/architecture/mem.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Memory { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn read_byte_reg(&self, high: u8, low: u8) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `parse_instruction`, `current_pc`, and `nop` are never used [INFO] [stdout] --> src/architecture/instructions_set.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl cpu::Cpu { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 7 | pub fn parse_instruction(&mut self, opcode: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn current_pc(&mut self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn nop(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/cartridge/header.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Header { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 7 | pub nintendo_logo: [u8; 0x30], [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 8 | pub title: [char; 0xF], [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | pub manufacturer_code: [char; 0x3], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | pub cgb_flag: CgbFlag, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 11 | pub licensee_code: Licensee, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 12 | pub sgb_flag: SgbFlag, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 13 | pub c_type: CartridgeType, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 14 | pub rom_size: ByteRomSize, [INFO] [stdout] 15 | pub old_licensee: OldLicensee, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 16 | pub region: Region, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Header` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.97s [INFO] running `Command { std: "docker" "inspect" "7b084d7b087b2c6f5e67d630994293701fd10369ce436505957033b577cd87af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7b084d7b087b2c6f5e67d630994293701fd10369ce436505957033b577cd87af", kill_on_drop: false }` [INFO] [stdout] 7b084d7b087b2c6f5e67d630994293701fd10369ce436505957033b577cd87af