[INFO] cloning repository https://github.com/npdawson/rustboy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/npdawson/rustboy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnpdawson%2Frustboy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnpdawson%2Frustboy'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2d2d5de67799a4924e34be4cfa08c2b7f666bd03 [INFO] checking npdawson/rustboy against master#ddaf12390d3ffb7d5ba74491a48f3cd528e5d777 for pr-146504 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnpdawson%2Frustboy" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/npdawson/rustboy [INFO] finished tweaking git repo https://github.com/npdawson/rustboy [INFO] tweaked toml for git repo https://github.com/npdawson/rustboy written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/npdawson/rustboy on toolchain ddaf12390d3ffb7d5ba74491a48f3cd528e5d777 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ddaf12390d3ffb7d5ba74491a48f3cd528e5d777" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/npdawson/rustboy 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" "+ddaf12390d3ffb7d5ba74491a48f3cd528e5d777" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded num-integer v0.1.32 [INFO] [stderr] Downloaded sdl2-sys v0.25.0 [INFO] [stderr] Downloaded num-iter v0.1.32 [INFO] [stderr] Downloaded num-traits v0.1.35 [INFO] [stderr] Downloaded num v0.1.35 [INFO] [stderr] Downloaded rand v0.3.14 [INFO] [stderr] Downloaded bitflags v0.6.0 [INFO] [stderr] Downloaded sdl2 v0.25.0 [INFO] [stderr] Downloaded nom v1.2.4 [INFO] [stderr] Downloaded libc v0.2.16 [INFO] [stderr] Downloaded lazy_static v0.2.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ddaf12390d3ffb7d5ba74491a48f3cd528e5d777" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] df98e8fbf74739a08453e958440e79163220f099b88df8b8ca7254e013d5c138 [INFO] running `Command { std: "docker" "start" "-a" "df98e8fbf74739a08453e958440e79163220f099b88df8b8ca7254e013d5c138", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "df98e8fbf74739a08453e958440e79163220f099b88df8b8ca7254e013d5c138", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "df98e8fbf74739a08453e958440e79163220f099b88df8b8ca7254e013d5c138", kill_on_drop: false }` [INFO] [stdout] df98e8fbf74739a08453e958440e79163220f099b88df8b8ca7254e013d5c138 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ddaf12390d3ffb7d5ba74491a48f3cd528e5d777" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2f618cafc69ffbcdacdf306d2a8338f838133981152a940417270f345e01ad01 [INFO] running `Command { std: "docker" "start" "-a" "2f618cafc69ffbcdacdf306d2a8338f838133981152a940417270f345e01ad01", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking num-traits v0.1.35 [INFO] [stderr] Compiling sdl2-sys v0.25.0 [INFO] [stderr] Checking libc v0.2.16 [INFO] [stderr] Checking lazy_static v0.2.1 [INFO] [stderr] Checking bitflags v0.6.0 [INFO] [stderr] Checking nom v1.2.4 [INFO] [stderr] Checking rand v0.3.14 [INFO] [stderr] Checking num-integer v0.1.32 [INFO] [stderr] Checking num-iter v0.1.32 [INFO] [stderr] Checking num v0.1.35 [INFO] [stderr] Checking sdl2 v0.25.0 [INFO] [stderr] Checking rustboy v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/dmg/cpu/cpu.rs:648:40 [INFO] [stdout] | [INFO] [stdout] 648 | let addr = self.read_reg16(HL);; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/dmg/cpu/cpu.rs:664:40 [INFO] [stdout] | [INFO] [stdout] 664 | let addr = self.read_reg16(HL);; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FF_C` should have an upper camel case name [INFO] [stdout] --> src/dmg/cpu/opcode.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | FF_C, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `FfC` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::cpu::Cpu` [INFO] [stdout] --> src/dmg/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use self::cpu::Cpu; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Cow` [INFO] [stdout] --> src/debugger/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::borrow::Cow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dmg::cpu::Instruction` [INFO] [stdout] --> src/debugger/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use dmg::cpu::Instruction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dmg::cpu::Opcode::*` [INFO] [stdout] --> src/debugger/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use dmg::cpu::Opcode::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dmg::mem_map::Addr::*` [INFO] [stdout] --> src/debugger/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use dmg::mem_map::Addr::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::sleep` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::thread::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::mpsc::channel` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::sync::mpsc::channel; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/dmg/cpu/cpu.rs:648:40 [INFO] [stdout] | [INFO] [stdout] 648 | let addr = self.read_reg16(HL);; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/dmg/cpu/cpu.rs:664:40 [INFO] [stdout] | [INFO] [stdout] 664 | let addr = self.read_reg16(HL);; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FF_C` should have an upper camel case name [INFO] [stdout] --> src/dmg/cpu/opcode.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | FF_C, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `FfC` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::cpu::Cpu` [INFO] [stdout] --> src/dmg/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use self::cpu::Cpu; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Cow` [INFO] [stdout] --> src/debugger/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::borrow::Cow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dmg::cpu::Instruction` [INFO] [stdout] --> src/debugger/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use dmg::cpu::Instruction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dmg::cpu::Opcode::*` [INFO] [stdout] --> src/debugger/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use dmg::cpu::Opcode::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dmg::mem_map::Addr::*` [INFO] [stdout] --> src/debugger/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use dmg::mem_map::Addr::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::sleep` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::thread::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::mpsc::channel` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::sync::mpsc::channel; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/dmg/cpu/cpu.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 194 | let mut value = match op { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cycles` [INFO] [stdout] --> src/dmg/cpu/cpu.rs:367:21 [INFO] [stdout] | [INFO] [stdout] 367 | let cycles = self.execute(instr, interconnect); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 367 | let _cycles = self.execute(instr, interconnect); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `RAM_SIZE` [INFO] [stdout] | [INFO] [stdout] 367 - let cycles = self.execute(instr, interconnect); [INFO] [stdout] 367 + let dmg::interconnect::RAM_SIZE = self.execute(instr, interconnect); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/dmg/cpu/instruction.rs:628:9 [INFO] [stdout] | [INFO] [stdout] 628 | _ => unreachable!() [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/dmg/cpu/instruction.rs:628:9 [INFO] [stdout] | [INFO] [stdout] 340 | 0x00 => (2, 2, Rlc(Reg(B))), [INFO] [stdout] | ---- matches some of the same values [INFO] [stdout] 341 | 0x01 => (2, 2, Rlc(Reg(C))), [INFO] [stdout] | ---- matches some of the same values [INFO] [stdout] 342 | 0x02 => (2, 2, Rlc(Reg(D))), [INFO] [stdout] | ---- matches some of the same values [INFO] [stdout] 343 | 0x03 => (2, 2, Rlc(Reg(E))), [INFO] [stdout] | ---- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 628 | _ => unreachable!() [INFO] [stdout] | ^ ...and 252 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/dmg/interconnect.rs:255:23 [INFO] [stdout] | [INFO] [stdout] 255 | Addr::Rom(offset) => panic!("Write word to MBC not supported"), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 255 | Addr::Rom(_offset) => panic!("Write word to MBC not supported"), [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `RAM_SIZE` [INFO] [stdout] | [INFO] [stdout] 255 - Addr::Rom(offset) => panic!("Write word to MBC not supported"), [INFO] [stdout] 255 + Addr::Rom(dmg::interconnect::RAM_SIZE) => panic!("Write word to MBC not supported"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/dmg/interconnect.rs:327:24 [INFO] [stdout] | [INFO] [stdout] 327 | Addr::Vram(offset) => panic!("dma from vram not implemented"), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 327 | Addr::Vram(_offset) => panic!("dma from vram not implemented"), [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `RAM_SIZE` [INFO] [stdout] | [INFO] [stdout] 327 - Addr::Vram(offset) => panic!("dma from vram not implemented"), [INFO] [stdout] 327 + Addr::Vram(dmg::interconnect::RAM_SIZE) => panic!("dma from vram not implemented"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/dmg/cpu/cpu.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 194 | let mut value = match op { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cycles` [INFO] [stdout] --> src/dmg/cpu/cpu.rs:367:21 [INFO] [stdout] | [INFO] [stdout] 367 | let cycles = self.execute(instr, interconnect); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 367 | let _cycles = self.execute(instr, interconnect); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `RAM_SIZE` [INFO] [stdout] | [INFO] [stdout] 367 - let cycles = self.execute(instr, interconnect); [INFO] [stdout] 367 + let dmg::interconnect::RAM_SIZE = self.execute(instr, interconnect); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/debugger/mod.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 55 | let addr = mem_map::map_addr(current_pc); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/dmg/cpu/instruction.rs:628:9 [INFO] [stdout] | [INFO] [stdout] 628 | _ => unreachable!() [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/dmg/cpu/instruction.rs:628:9 [INFO] [stdout] | [INFO] [stdout] 340 | 0x00 => (2, 2, Rlc(Reg(B))), [INFO] [stdout] | ---- matches some of the same values [INFO] [stdout] 341 | 0x01 => (2, 2, Rlc(Reg(C))), [INFO] [stdout] | ---- matches some of the same values [INFO] [stdout] 342 | 0x02 => (2, 2, Rlc(Reg(D))), [INFO] [stdout] | ---- matches some of the same values [INFO] [stdout] 343 | 0x03 => (2, 2, Rlc(Reg(E))), [INFO] [stdout] | ---- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 628 | _ => unreachable!() [INFO] [stdout] | ^ ...and 252 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pitch` [INFO] [stdout] --> src/main.rs:83:53 [INFO] [stdout] | [INFO] [stdout] 83 | texture.with_lock(None, |buffer: &mut [u8], pitch: usize| { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 83 | texture.with_lock(None, |buffer: &mut [u8], _pitch: usize| { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `RAM_SIZE` [INFO] [stdout] | [INFO] [stdout] 83 - texture.with_lock(None, |buffer: &mut [u8], pitch: usize| { [INFO] [stdout] 83 + texture.with_lock(None, |buffer: &mut [u8], dmg::interconnect::RAM_SIZE: usize| { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `cpu` and `interconnect` are never used [INFO] [stdout] --> src/dmg/dmg.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Dmg { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn cpu(&self) -> &Cpu { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn interconnect(&self) -> &Interconnect { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `current_pc` is never used [INFO] [stdout] --> src/dmg/cpu/cpu.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl Cpu { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn current_pc(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `dma_from_vram` is never used [INFO] [stdout] --> src/dmg/ppu.rs:256:12 [INFO] [stdout] | [INFO] [stdout] 60 | impl Ppu { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 256 | pub fn dma_from_vram(&mut self, offset: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `dma_buffer` is never read [INFO] [stdout] --> src/dmg/interconnect.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Interconnect { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 32 | dma_buffer: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `title`, `cgb_flag`, `sgb_flag`, and `rom_size` are never read [INFO] [stdout] --> src/dmg/cart.rs:168:5 [INFO] [stdout] | [INFO] [stdout] 167 | struct Header { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 168 | title: Box<[u8]>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 169 | cgb_flag: CgbFlag, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 170 | sgb_flag: SgbFlag, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 171 | cart_type: Mbc, [INFO] [stdout] 172 | rom_size: RomSize, [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: field `timer_cycle_count` is never read [INFO] [stdout] --> src/dmg/timer.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Timer { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | timer_cycle_count: usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Timer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Debugger` is never constructed [INFO] [stdout] --> src/debugger/mod.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Debugger { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `run`, and `step` are never used [INFO] [stdout] --> src/debugger/mod.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Debugger { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 21 | pub fn new(dmg: Dmg) -> Debugger { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn run(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn step(&mut self, count: usize) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_stdin` is never used [INFO] [stdout] --> src/debugger/mod.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn read_stdin() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Command` is never used [INFO] [stdout] --> src/debugger/command.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum Command { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | renderer.copy(&texture, None, None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 93 | let _ = renderer.copy(&texture, None, None); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/dmg/interconnect.rs:255:23 [INFO] [stdout] | [INFO] [stdout] 255 | Addr::Rom(offset) => panic!("Write word to MBC not supported"), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 255 | Addr::Rom(_offset) => panic!("Write word to MBC not supported"), [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `RAM_SIZE` [INFO] [stdout] | [INFO] [stdout] 255 - Addr::Rom(offset) => panic!("Write word to MBC not supported"), [INFO] [stdout] 255 + Addr::Rom(dmg::interconnect::RAM_SIZE) => panic!("Write word to MBC not supported"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/dmg/interconnect.rs:327:24 [INFO] [stdout] | [INFO] [stdout] 327 | Addr::Vram(offset) => panic!("dma from vram not implemented"), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 327 | Addr::Vram(_offset) => panic!("dma from vram not implemented"), [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `RAM_SIZE` [INFO] [stdout] | [INFO] [stdout] 327 - Addr::Vram(offset) => panic!("dma from vram not implemented"), [INFO] [stdout] 327 + Addr::Vram(dmg::interconnect::RAM_SIZE) => panic!("dma from vram not implemented"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/debugger/mod.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 55 | let addr = mem_map::map_addr(current_pc); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pitch` [INFO] [stdout] --> src/main.rs:83:53 [INFO] [stdout] | [INFO] [stdout] 83 | texture.with_lock(None, |buffer: &mut [u8], pitch: usize| { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 83 | texture.with_lock(None, |buffer: &mut [u8], _pitch: usize| { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `RAM_SIZE` [INFO] [stdout] | [INFO] [stdout] 83 - texture.with_lock(None, |buffer: &mut [u8], pitch: usize| { [INFO] [stdout] 83 + texture.with_lock(None, |buffer: &mut [u8], dmg::interconnect::RAM_SIZE: usize| { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `cpu` and `interconnect` are never used [INFO] [stdout] --> src/dmg/dmg.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Dmg { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn cpu(&self) -> &Cpu { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn interconnect(&self) -> &Interconnect { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `current_pc` is never used [INFO] [stdout] --> src/dmg/cpu/cpu.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl Cpu { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn current_pc(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `dma_from_vram` is never used [INFO] [stdout] --> src/dmg/ppu.rs:256:12 [INFO] [stdout] | [INFO] [stdout] 60 | impl Ppu { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 256 | pub fn dma_from_vram(&mut self, offset: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `dma_buffer` is never read [INFO] [stdout] --> src/dmg/interconnect.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Interconnect { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 32 | dma_buffer: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `title`, `cgb_flag`, `sgb_flag`, and `rom_size` are never read [INFO] [stdout] --> src/dmg/cart.rs:168:5 [INFO] [stdout] | [INFO] [stdout] 167 | struct Header { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 168 | title: Box<[u8]>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 169 | cgb_flag: CgbFlag, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 170 | sgb_flag: SgbFlag, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 171 | cart_type: Mbc, [INFO] [stdout] 172 | rom_size: RomSize, [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: field `timer_cycle_count` is never read [INFO] [stdout] --> src/dmg/timer.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Timer { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | timer_cycle_count: usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Timer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Debugger` is never constructed [INFO] [stdout] --> src/debugger/mod.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Debugger { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `run`, and `step` are never used [INFO] [stdout] --> src/debugger/mod.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Debugger { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 21 | pub fn new(dmg: Dmg) -> Debugger { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn run(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn step(&mut self, count: usize) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_stdin` is never used [INFO] [stdout] --> src/debugger/mod.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn read_stdin() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Command` is never used [INFO] [stdout] --> src/debugger/command.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum Command { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | renderer.copy(&texture, None, None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 93 | let _ = renderer.copy(&texture, None, None); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.96s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: bitflags v0.6.0, nom v1.2.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "2f618cafc69ffbcdacdf306d2a8338f838133981152a940417270f345e01ad01", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f618cafc69ffbcdacdf306d2a8338f838133981152a940417270f345e01ad01", kill_on_drop: false }` [INFO] [stdout] 2f618cafc69ffbcdacdf306d2a8338f838133981152a940417270f345e01ad01