[INFO] cloning repository https://github.com/modbrin/nes-emulator [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/modbrin/nes-emulator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmodbrin%2Fnes-emulator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmodbrin%2Fnes-emulator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 49ffd34b68ec2517617c156ce998adccd0ba3734 [INFO] checking modbrin/nes-emulator against try#e658ebe4ffa1b515cd2ef06dd428d0d063e2ae6b for pr-144896 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmodbrin%2Fnes-emulator" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/modbrin/nes-emulator [INFO] finished tweaking git repo https://github.com/modbrin/nes-emulator [INFO] tweaked toml for git repo https://github.com/modbrin/nes-emulator written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/modbrin/nes-emulator on toolchain e658ebe4ffa1b515cd2ef06dd428d0d063e2ae6b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e658ebe4ffa1b515cd2ef06dd428d0d063e2ae6b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/modbrin/nes-emulator 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" "+e658ebe4ffa1b515cd2ef06dd428d0d063e2ae6b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:ae6f63d130afcfff7f91f5ba9fdb2a74d52830289c6a2ea2d23a94dcfb480a0d" "/opt/rustwide/cargo-home/bin/cargo" "+e658ebe4ffa1b515cd2ef06dd428d0d063e2ae6b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 57d95460bafdbc1b2473dcc04f7658ecb8352b1315467ff74cacbbf5aaa50b34 [INFO] running `Command { std: "docker" "start" "-a" "57d95460bafdbc1b2473dcc04f7658ecb8352b1315467ff74cacbbf5aaa50b34", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "57d95460bafdbc1b2473dcc04f7658ecb8352b1315467ff74cacbbf5aaa50b34", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "57d95460bafdbc1b2473dcc04f7658ecb8352b1315467ff74cacbbf5aaa50b34", kill_on_drop: false }` [INFO] [stdout] 57d95460bafdbc1b2473dcc04f7658ecb8352b1315467ff74cacbbf5aaa50b34 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:ae6f63d130afcfff7f91f5ba9fdb2a74d52830289c6a2ea2d23a94dcfb480a0d" "/opt/rustwide/cargo-home/bin/cargo" "+e658ebe4ffa1b515cd2ef06dd428d0d063e2ae6b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a78da520220ec5bdfda438c58c3e788c61ebceca5ca782132cd3caf54685cd89 [INFO] running `Command { std: "docker" "start" "-a" "a78da520220ec5bdfda438c58c3e788c61ebceca5ca782132cd3caf54685cd89", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.142 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling version-compare v0.1.1 [INFO] [stderr] Compiling sdl2 v0.35.2 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking either v1.8.1 [INFO] [stderr] Checking once_cell v1.17.2 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Compiling sdl2-sys v0.35.2 [INFO] [stderr] Checking getrandom v0.2.9 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking nes-emulator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::prelude::*` [INFO] [stdout] --> src/screen.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::prelude::*` [INFO] [stdout] --> src/screen.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mempage_differs` is never used [INFO] [stdout] --> src/common.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn mempage_differs(location_a: u16, location_b: u16) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_forbidden_address` is never used [INFO] [stdout] --> src/common.rs:203:4 [INFO] [stdout] | [INFO] [stdout] 203 | fn is_forbidden_address(addr: u16) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_operands_repr` is never used [INFO] [stdout] --> src/common.rs:210:4 [INFO] [stdout] | [INFO] [stdout] 210 | fn get_operands_repr(device: &Device, mode: AddressingMode, op: Opcode) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `trace` is never used [INFO] [stdout] --> src/common.rs:348:8 [INFO] [stdout] | [INFO] [stdout] 348 | pub fn trace(device: &Device) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PPU_FREQ` is never used [INFO] [stdout] --> src/consts.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | pub const PPU_FREQ: usize = 5_370_000; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `STACK_SECTION_END` is never used [INFO] [stdout] --> src/consts.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | pub const STACK_SECTION_END: u16 = 0x01FF; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DISPLAY_RES_NTSC` is never used [INFO] [stdout] --> src/consts.rs:58:11 [INFO] [stdout] | [INFO] [stdout] 58 | pub const DISPLAY_RES_NTSC: (usize, usize) = (256, 224); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mempage_differs` is never used [INFO] [stdout] --> src/common.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn mempage_differs(location_a: u16, location_b: u16) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DISPLAY_SIZE_NTSC` is never used [INFO] [stdout] --> src/consts.rs:60:11 [INFO] [stdout] | [INFO] [stdout] 60 | pub const DISPLAY_SIZE_NTSC: usize = DISPLAY_RES_NTSC.0 * DISPLAY_RES_NTSC.1 * 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `UNIVERSAL_BKG_COLOR_ADDR` is never used [INFO] [stdout] --> src/consts.rs:62:11 [INFO] [stdout] | [INFO] [stdout] 62 | pub const UNIVERSAL_BKG_COLOR_ADDR: usize = 0x3F00; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Single` is never constructed [INFO] [stdout] --> src/consts.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 133 | pub enum ScrMirror { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 136 | Single, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ScrMirror` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `result_extra_cycles` is never used [INFO] [stdout] --> src/cpu.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 106 | impl Device { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 123 | fn result_extra_cycles(&self, cycles: u8) -> InstResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `skip_n` is never used [INFO] [stdout] --> src/device.rs:107:19 [INFO] [stdout] | [INFO] [stdout] 17 | impl Device { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 107 | pub(crate) fn skip_n(&mut self, n: u16) -> Result<(), NesError> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write_le_u16` is never used [INFO] [stdout] --> src/memory.rs:118:8 [INFO] [stdout] | [INFO] [stdout] 103 | pub trait RwMemory { [INFO] [stdout] | -------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 118 | fn write_le_u16(&mut self, addr: u16, val: u16) -> Result<(), NesError> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `push`, `get_sprite_overflow`, `get_sprite_zero_hit`, and `set_sprite_overflow` are never used [INFO] [stdout] --> src/ppu.rs:232:12 [INFO] [stdout] | [INFO] [stdout] 227 | impl StatusReg { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 232 | pub fn push(&mut self, val: u8) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 240 | pub fn get_sprite_overflow(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 244 | pub fn get_sprite_zero_hit(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 252 | pub fn set_sprite_overflow(&mut self, state: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mapper_type` is never read [INFO] [stdout] --> src/rom.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Rom { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | pub mapper_type: u8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rom` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_forbidden_address` is never used [INFO] [stdout] --> src/common.rs:203:4 [INFO] [stdout] | [INFO] [stdout] 203 | fn is_forbidden_address(addr: u16) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_operands_repr` is never used [INFO] [stdout] --> src/common.rs:210:4 [INFO] [stdout] | [INFO] [stdout] 210 | fn get_operands_repr(device: &Device, mode: AddressingMode, op: Opcode) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `trace` is never used [INFO] [stdout] --> src/common.rs:348:8 [INFO] [stdout] | [INFO] [stdout] 348 | pub fn trace(device: &Device) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PPU_FREQ` is never used [INFO] [stdout] --> src/consts.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | pub const PPU_FREQ: usize = 5_370_000; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `STACK_SECTION_END` is never used [INFO] [stdout] --> src/consts.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | pub const STACK_SECTION_END: u16 = 0x01FF; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DISPLAY_RES_NTSC` is never used [INFO] [stdout] --> src/consts.rs:58:11 [INFO] [stdout] | [INFO] [stdout] 58 | pub const DISPLAY_RES_NTSC: (usize, usize) = (256, 224); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DISPLAY_SIZE_NTSC` is never used [INFO] [stdout] --> src/consts.rs:60:11 [INFO] [stdout] | [INFO] [stdout] 60 | pub const DISPLAY_SIZE_NTSC: usize = DISPLAY_RES_NTSC.0 * DISPLAY_RES_NTSC.1 * 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `UNIVERSAL_BKG_COLOR_ADDR` is never used [INFO] [stdout] --> src/consts.rs:62:11 [INFO] [stdout] | [INFO] [stdout] 62 | pub const UNIVERSAL_BKG_COLOR_ADDR: usize = 0x3F00; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Single` is never constructed [INFO] [stdout] --> src/consts.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 133 | pub enum ScrMirror { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 136 | Single, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ScrMirror` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `result_extra_cycles` is never used [INFO] [stdout] --> src/cpu.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 106 | impl Device { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 123 | fn result_extra_cycles(&self, cycles: u8) -> InstResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `skip_n` is never used [INFO] [stdout] --> src/device.rs:107:19 [INFO] [stdout] | [INFO] [stdout] 17 | impl Device { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 107 | pub(crate) fn skip_n(&mut self, n: u16) -> Result<(), NesError> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write_le_u16` is never used [INFO] [stdout] --> src/memory.rs:118:8 [INFO] [stdout] | [INFO] [stdout] 103 | pub trait RwMemory { [INFO] [stdout] | -------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 118 | fn write_le_u16(&mut self, addr: u16, val: u16) -> Result<(), NesError> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `push`, `get_sprite_overflow`, `get_sprite_zero_hit`, and `set_sprite_overflow` are never used [INFO] [stdout] --> src/ppu.rs:232:12 [INFO] [stdout] | [INFO] [stdout] 227 | impl StatusReg { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 232 | pub fn push(&mut self, val: u8) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 240 | pub fn get_sprite_overflow(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 244 | pub fn get_sprite_zero_hit(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 252 | pub fn set_sprite_overflow(&mut self, state: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mapper_type` is never read [INFO] [stdout] --> src/rom.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Rom { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | pub mapper_type: u8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rom` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/common.rs:399:48 [INFO] [stdout] | [INFO] [stdout] 399 | let as_u8 = |val: i8| -> u8 { unsafe { std::mem::transmute(val) } }; [INFO] [stdout] | -------------------^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i8::cast_unsigned` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.89s [INFO] running `Command { std: "docker" "inspect" "a78da520220ec5bdfda438c58c3e788c61ebceca5ca782132cd3caf54685cd89", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a78da520220ec5bdfda438c58c3e788c61ebceca5ca782132cd3caf54685cd89", kill_on_drop: false }` [INFO] [stdout] a78da520220ec5bdfda438c58c3e788c61ebceca5ca782132cd3caf54685cd89