[INFO] cloning repository https://github.com/nt591/rust_gb [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nt591/rust_gb" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnt591%2Frust_gb", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnt591%2Frust_gb'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 28ee77f5eae2151740807b57f031162a54990296 [INFO] checking nt591/rust_gb against master#336209eef13882bd1e211b24779584cb7ef911eb for pr-129249 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnt591%2Frust_gb" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nt591/rust_gb on toolchain 336209eef13882bd1e211b24779584cb7ef911eb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+336209eef13882bd1e211b24779584cb7ef911eb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/nt591/rust_gb [INFO] finished tweaking git repo https://github.com/nt591/rust_gb [INFO] tweaked toml for git repo https://github.com/nt591/rust_gb written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/nt591/rust_gb 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" "+336209eef13882bd1e211b24779584cb7ef911eb" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+336209eef13882bd1e211b24779584cb7ef911eb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b22ac2b7ddf711b24fe4ce43778c34a7e920e3aceb2125bc8c70ce6a2d67a14c [INFO] running `Command { std: "docker" "start" "-a" "b22ac2b7ddf711b24fe4ce43778c34a7e920e3aceb2125bc8c70ce6a2d67a14c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b22ac2b7ddf711b24fe4ce43778c34a7e920e3aceb2125bc8c70ce6a2d67a14c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b22ac2b7ddf711b24fe4ce43778c34a7e920e3aceb2125bc8c70ce6a2d67a14c", kill_on_drop: false }` [INFO] [stdout] b22ac2b7ddf711b24fe4ce43778c34a7e920e3aceb2125bc8c70ce6a2d67a14c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+336209eef13882bd1e211b24779584cb7ef911eb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] aef40bbddc291676d952532f28d620d1d63a37d3d8deceeb9ab9b012e93dbd73 [INFO] running `Command { std: "docker" "start" "-a" "aef40bbddc291676d952532f28d620d1d63a37d3d8deceeb9ab9b012e93dbd73", kill_on_drop: false }` [INFO] [stderr] Checking rust_gb v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `Cpu` is never constructed [INFO] [stdout] --> src/cpu.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Cpu { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `exec` and `add` are never used [INFO] [stdout] --> src/cpu.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Cpu { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 12 | pub fn exec(&mut self, ins: Instruction) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn add(&mut self, reg: Register) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/instruction.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum ArithmeticTarget { [INFO] [stdout] | ---------------- variants in this enum [INFO] [stdout] 11 | A, [INFO] [stdout] | ^ [INFO] [stdout] 12 | B, [INFO] [stdout] | ^ [INFO] [stdout] 13 | C, [INFO] [stdout] | ^ [INFO] [stdout] 14 | D, [INFO] [stdout] | ^ [INFO] [stdout] 15 | E, [INFO] [stdout] | ^ [INFO] [stdout] 16 | H, [INFO] [stdout] | ^ [INFO] [stdout] 17 | L, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `ArithmeticTarget` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Add` is never constructed [INFO] [stdout] --> src/instruction.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum Instruction { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 22 | Add(ArithmeticTarget), // adds what's in target to register A [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Instruction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/register_bank.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct RegisterBank { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 3 | // registers [INFO] [stdout] 4 | a: u8, [INFO] [stdout] | ^ [INFO] [stdout] 5 | b: u8, [INFO] [stdout] | ^ [INFO] [stdout] 6 | c: u8, [INFO] [stdout] | ^ [INFO] [stdout] 7 | d: u8, [INFO] [stdout] | ^ [INFO] [stdout] 8 | e: u8, [INFO] [stdout] | ^ [INFO] [stdout] 9 | f: u8, [INFO] [stdout] | ^ [INFO] [stdout] 10 | h: u8, [INFO] [stdout] | ^ [INFO] [stdout] 11 | l: u8, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `RegisterBank` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/register_bank.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum Register { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 16 | A, [INFO] [stdout] | ^ [INFO] [stdout] 17 | B, [INFO] [stdout] | ^ [INFO] [stdout] 18 | C, [INFO] [stdout] | ^ [INFO] [stdout] 19 | D, [INFO] [stdout] | ^ [INFO] [stdout] 20 | E, [INFO] [stdout] | ^ [INFO] [stdout] 21 | F, [INFO] [stdout] | ^ [INFO] [stdout] 22 | H, [INFO] [stdout] | ^ [INFO] [stdout] 23 | L, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Register` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/register_bank.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl RegisterBank { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 27 | pub fn read(&self, register: Register) -> u8 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn write_register(&mut self, register: Register, val: u8) -> Result<(), &str> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn read_bc(&self) -> u16 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn write_bc(&mut self, value: u16) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn read_de(&self) -> u16 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn write_de(&mut self, value: u16) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn read_hl(&self) -> u16 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn write_hl(&mut self, value: u16) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn set_zero_bit(&mut self, v: bool) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn has_zero_bit(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn set_subtraction_bit(&mut self, v: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn has_subtraction_bit(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | pub fn set_half_carry_bit(&mut self, v: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn has_half_carry_bit(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn set_carry_bit(&mut self, v: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn has_carry_bit(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cpu` is never constructed [INFO] [stdout] --> src/cpu.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Cpu { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `exec` and `add` are never used [INFO] [stdout] --> src/cpu.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Cpu { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 12 | pub fn exec(&mut self, ins: Instruction) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn add(&mut self, reg: Register) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/instruction.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum ArithmeticTarget { [INFO] [stdout] | ---------------- variants in this enum [INFO] [stdout] 11 | A, [INFO] [stdout] | ^ [INFO] [stdout] 12 | B, [INFO] [stdout] | ^ [INFO] [stdout] 13 | C, [INFO] [stdout] | ^ [INFO] [stdout] 14 | D, [INFO] [stdout] | ^ [INFO] [stdout] 15 | E, [INFO] [stdout] | ^ [INFO] [stdout] 16 | H, [INFO] [stdout] | ^ [INFO] [stdout] 17 | L, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `ArithmeticTarget` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Add` is never constructed [INFO] [stdout] --> src/instruction.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum Instruction { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 22 | Add(ArithmeticTarget), // adds what's in target to register A [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Instruction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.35s [INFO] running `Command { std: "docker" "inspect" "aef40bbddc291676d952532f28d620d1d63a37d3d8deceeb9ab9b012e93dbd73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aef40bbddc291676d952532f28d620d1d63a37d3d8deceeb9ab9b012e93dbd73", kill_on_drop: false }` [INFO] [stdout] aef40bbddc291676d952532f28d620d1d63a37d3d8deceeb9ab9b012e93dbd73