[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] building vkobinski/gameboy against master#44f415c1d617ebc7b931a243b7b321ef8a6ca47c for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvkobinski%2Fgameboy" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/vkobinski/gameboy on toolchain 44f415c1d617ebc7b931a243b7b321ef8a6ca47c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-7-tc1/source/Cargo.toml [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" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 107ef4934ff968844da9b124e039e2a1e245b7920e014578e40940ee35e91f29 [INFO] running `Command { std: "docker" "start" "-a" "107ef4934ff968844da9b124e039e2a1e245b7920e014578e40940ee35e91f29", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "107ef4934ff968844da9b124e039e2a1e245b7920e014578e40940ee35e91f29", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "107ef4934ff968844da9b124e039e2a1e245b7920e014578e40940ee35e91f29", kill_on_drop: false }` [INFO] [stdout] 107ef4934ff968844da9b124e039e2a1e245b7920e014578e40940ee35e91f29 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e02abd654255fa5b2ecde8e8896f2bc7ef239d7bcca50ab70f4fda1d368f1fab [INFO] running `Command { std: "docker" "start" "-a" "e02abd654255fa5b2ecde8e8896f2bc7ef239d7bcca50ab70f4fda1d368f1fab", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling unicode-ident v1.0.12 [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] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling num-complex v0.4.5 [INFO] [stderr] Compiling num-iter v0.1.44 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling num v0.4.1 [INFO] [stderr] Compiling 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 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] = note: `Flag` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.73s [INFO] running `Command { std: "docker" "inspect" "e02abd654255fa5b2ecde8e8896f2bc7ef239d7bcca50ab70f4fda1d368f1fab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e02abd654255fa5b2ecde8e8896f2bc7ef239d7bcca50ab70f4fda1d368f1fab", kill_on_drop: false }` [INFO] [stdout] e02abd654255fa5b2ecde8e8896f2bc7ef239d7bcca50ab70f4fda1d368f1fab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0a20519d9ad92a69ac474f89aeddd4fe3416375bc070137b1be980d5961cb02c [INFO] running `Command { std: "docker" "start" "-a" "0a20519d9ad92a69ac474f89aeddd4fe3416375bc070137b1be980d5961cb02c", kill_on_drop: false }` [INFO] [stderr] Compiling 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: `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: 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 `test` profile [unoptimized + debuginfo] target(s) in 0.97s [INFO] running `Command { std: "docker" "inspect" "0a20519d9ad92a69ac474f89aeddd4fe3416375bc070137b1be980d5961cb02c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a20519d9ad92a69ac474f89aeddd4fe3416375bc070137b1be980d5961cb02c", kill_on_drop: false }` [INFO] [stdout] 0a20519d9ad92a69ac474f89aeddd4fe3416375bc070137b1be980d5961cb02c