[INFO] cloning repository https://github.com/romatthe/mudkip [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/romatthe/mudkip" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fromatthe%2Fmudkip", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fromatthe%2Fmudkip'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1d3586d415b1fa2fce7745ccf7ab7a752d04b847 [INFO] building romatthe/mudkip against try#8b8eff55bd72abbb57167bc42222a7f91d41cb0d for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fromatthe%2Fmudkip" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/romatthe/mudkip on toolchain 8b8eff55bd72abbb57167bc42222a7f91d41cb0d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/romatthe/mudkip [INFO] finished tweaking git repo https://github.com/romatthe/mudkip [INFO] tweaked toml for git repo https://github.com/romatthe/mudkip written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/romatthe/mudkip 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" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7ee2494f1530875ee3e7a1ebba9a873be203e8da6cbaad992c4e903c370fe03d [INFO] running `Command { std: "docker" "start" "-a" "7ee2494f1530875ee3e7a1ebba9a873be203e8da6cbaad992c4e903c370fe03d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7ee2494f1530875ee3e7a1ebba9a873be203e8da6cbaad992c4e903c370fe03d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7ee2494f1530875ee3e7a1ebba9a873be203e8da6cbaad992c4e903c370fe03d", kill_on_drop: false }` [INFO] [stdout] 7ee2494f1530875ee3e7a1ebba9a873be203e8da6cbaad992c4e903c370fe03d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=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" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 682ff62fa47f2fc557748f1829ea705ac897e0482eccd62731d8ca44e5bbc8d0 [INFO] running `Command { std: "docker" "start" "-a" "682ff62fa47f2fc557748f1829ea705ac897e0482eccd62731d8ca44e5bbc8d0", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling libc v0.2.35 [INFO] [stderr] Compiling unicode-width v0.1.4 [INFO] [stderr] Compiling strsim v0.6.0 [INFO] [stderr] Compiling bitflags v1.0.1 [INFO] [stderr] Compiling vec_map v0.8.0 [INFO] [stderr] Compiling ansi_term v0.10.2 [INFO] [stderr] Compiling byteorder v1.2.1 [INFO] [stderr] Compiling textwrap v0.9.0 [INFO] [stderr] Compiling memchr v1.0.2 [INFO] [stderr] Compiling atty v0.2.6 [INFO] [stderr] Compiling clap v2.29.1 [INFO] [stderr] Compiling nom v3.2.1 [INFO] [stderr] Compiling mudkip v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `cpu::instructions` [INFO] [stdout] --> src/cpu/disassembler.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use cpu::instructions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Instruction` [INFO] [stdout] --> src/cpu/disassembler.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use cpu::instructions::{Instruction, Mnemonic, OpCode}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/cpu/memory.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | fn fetch(&Address) -> u8; [INFO] [stdout] | ^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &Address` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/cpu/memory.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | fn store(&Address, &u8); [INFO] [stdout] | ^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &Address` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/cpu/memory.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | fn store(&Address, &u8); [INFO] [stdout] | ^^^ help: try naming the parameter or explicitly ignoring it: `_: &u8` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/cpu/mod.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | / bitflags! { [INFO] [stdout] 32 | | struct StatusRegister: u8 { [INFO] [stdout] 33 | | const C = 0b0000_0001; // Carry [INFO] [stdout] 34 | | const Z = 0b0000_0010; // Zero [INFO] [stdout] ... | [INFO] [stdout] 40 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/cpu/mod.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | / bitflags! { [INFO] [stdout] 32 | | struct StatusRegister: u8 { [INFO] [stdout] 33 | | const C = 0b0000_0001; // Carry [INFO] [stdout] 34 | | const Z = 0b0000_0010; // Zero [INFO] [stdout] ... | [INFO] [stdout] 40 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/cpu/mod.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | / bitflags! { [INFO] [stdout] 32 | | struct StatusRegister: u8 { [INFO] [stdout] 33 | | const C = 0b0000_0001; // Carry [INFO] [stdout] 34 | | const Z = 0b0000_0010; // Zero [INFO] [stdout] ... | [INFO] [stdout] 40 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Cursor` [INFO] [stdout] --> src/nes/rom.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Cursor; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/nes/rom.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 34 | / bitflags! { [INFO] [stdout] 35 | | struct Flags6: u8 { [INFO] [stdout] 36 | | const VERTICAL = 0b0000_0001; [INFO] [stdout] 37 | | const SRAM = 0b0000_0010; [INFO] [stdout] ... | [INFO] [stdout] 42 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/nes/rom.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 34 | / bitflags! { [INFO] [stdout] 35 | | struct Flags6: u8 { [INFO] [stdout] 36 | | const VERTICAL = 0b0000_0001; [INFO] [stdout] 37 | | const SRAM = 0b0000_0010; [INFO] [stdout] ... | [INFO] [stdout] 42 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/nes/rom.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 34 | / bitflags! { [INFO] [stdout] 35 | | struct Flags6: u8 { [INFO] [stdout] 36 | | const VERTICAL = 0b0000_0001; [INFO] [stdout] 37 | | const SRAM = 0b0000_0010; [INFO] [stdout] ... | [INFO] [stdout] 42 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/nes/rom.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 47 | / bitflags! { [INFO] [stdout] 48 | | struct Flags7: u8 { [INFO] [stdout] 49 | | const VS_UNISYSTEM = 0b0000_0001; [INFO] [stdout] 50 | | const PLAYCHOICE_10 = 0b0000_0010; [INFO] [stdout] ... | [INFO] [stdout] 53 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/nes/rom.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 47 | / bitflags! { [INFO] [stdout] 48 | | struct Flags7: u8 { [INFO] [stdout] 49 | | const VS_UNISYSTEM = 0b0000_0001; [INFO] [stdout] 50 | | const PLAYCHOICE_10 = 0b0000_0010; [INFO] [stdout] ... | [INFO] [stdout] 53 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/nes/rom.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 47 | / bitflags! { [INFO] [stdout] 48 | | struct Flags7: u8 { [INFO] [stdout] 49 | | const VS_UNISYSTEM = 0b0000_0001; [INFO] [stdout] 50 | | const PLAYCHOICE_10 = 0b0000_0010; [INFO] [stdout] ... | [INFO] [stdout] 53 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/nes/rom.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | / bitflags! { [INFO] [stdout] 58 | | struct Flags9: u8 { [INFO] [stdout] 59 | | const TV_SYSTEM = 0b0000_0001; // (0: NTSC; 1: PAL) [INFO] [stdout] 60 | | } [INFO] [stdout] 61 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/nes/rom.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | / bitflags! { [INFO] [stdout] 58 | | struct Flags9: u8 { [INFO] [stdout] 59 | | const TV_SYSTEM = 0b0000_0001; // (0: NTSC; 1: PAL) [INFO] [stdout] 60 | | } [INFO] [stdout] 61 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/nes/rom.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | / bitflags! { [INFO] [stdout] 58 | | struct Flags9: u8 { [INFO] [stdout] 59 | | const TV_SYSTEM = 0b0000_0001; // (0: NTSC; 1: PAL) [INFO] [stdout] 60 | | } [INFO] [stdout] 61 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cursor` and `Read` [INFO] [stdout] --> src/main.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | use std::io::{Cursor, Read}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LittleEndian` and `ReadBytesExt` [INFO] [stdout] --> src/main.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | use byteorder::{LittleEndian, ReadBytesExt}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cpu::instructions` [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use cpu::instructions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cpu::instructions::Instruction` [INFO] [stdout] --> src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use cpu::instructions::Instruction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nes::NES` [INFO] [stdout] --> src/main.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use nes::NES; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `needed` [INFO] [stdout] --> src/nes/rom.rs:131:29 [INFO] [stdout] | [INFO] [stdout] 131 | IResult::Incomplete(needed) => Err("Failed to parse ROM file"), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_needed` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prg_ram` [INFO] [stdout] --> src/nes/rom.rs:138:70 [INFO] [stdout] | [INFO] [stdout] 138 | fn new(prg_size: usize, chr_size: usize, flags6: u8, flags7: u8, prg_ram: u8, flags9: u8, flags10: u8) -> Header { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prg_ram` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `flags10` [INFO] [stdout] --> src/nes/rom.rs:138:95 [INFO] [stdout] | [INFO] [stdout] 138 | fn new(prg_size: usize, chr_size: usize, flags6: u8, flags7: u8, prg_ram: u8, flags9: u8, flags10: u8) -> Header { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_flags10` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:55:21 [INFO] [stdout] | [INFO] [stdout] 55 | Err(err) => eprintln!("{} Invalid path {:?} specified!", Red.bold().paint("error:"), path) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `WorkingMemory` is never used [INFO] [stdout] --> src/cpu/mod.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | type WorkingMemory = [u8; 2048]; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `RegisterA` is never used [INFO] [stdout] --> src/cpu/mod.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | type RegisterA = u8; // Accumulator [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `RegisterX` is never used [INFO] [stdout] --> src/cpu/mod.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 12 | type RegisterX = u8; // Index X register [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `RegisterY` is never used [INFO] [stdout] --> src/cpu/mod.rs:13:6 [INFO] [stdout] | [INFO] [stdout] 13 | type RegisterY = u8; // Index Y register [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `RegisterPC` is never used [INFO] [stdout] --> src/cpu/mod.rs:14:6 [INFO] [stdout] | [INFO] [stdout] 14 | type RegisterPC = Address; // Program Counter register [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `RegisterSP` is never used [INFO] [stdout] --> src/cpu/mod.rs:15:6 [INFO] [stdout] | [INFO] [stdout] 15 | type RegisterSP = u8; // Stack pointer [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Address` is never used [INFO] [stdout] --> src/cpu/mod.rs:42:6 [INFO] [stdout] | [INFO] [stdout] 42 | type Address = u16; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ImmediateAddressing` is never constructed [INFO] [stdout] --> src/cpu/mod.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | struct ImmediateAddressing; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ImmediateAddressing` 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: struct `ZeroPageAddressing` is never constructed [INFO] [stdout] --> src/cpu/mod.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | struct ZeroPageAddressing; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ZeroPageAddressing` 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: struct `AbsoluteAddressing` is never constructed [INFO] [stdout] --> src/cpu/mod.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | struct AbsoluteAddressing; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AbsoluteAddressing` 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: struct `ImpliedAddressing` is never constructed [INFO] [stdout] --> src/cpu/mod.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | struct ImpliedAddressing; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ImpliedAddressing` 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: struct `AccumulatorAddressing` is never constructed [INFO] [stdout] --> src/cpu/mod.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | struct AccumulatorAddressing; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AccumulatorAddressing` 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: struct `IndexedXAddressing` is never constructed [INFO] [stdout] --> src/cpu/mod.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | struct IndexedXAddressing; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IndexedXAddressing` 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: struct `IndexedYAddressing` is never constructed [INFO] [stdout] --> src/cpu/mod.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | struct IndexedYAddressing; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IndexedYAddressing` 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: struct `ZeroPageIndexedXAddressing` is never constructed [INFO] [stdout] --> src/cpu/mod.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | struct ZeroPageIndexedXAddressing; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ZeroPageIndexedXAddressing` 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: struct `ZeroPageIndexedYAddressing` is never constructed [INFO] [stdout] --> src/cpu/mod.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | struct ZeroPageIndexedYAddressing; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ZeroPageIndexedYAddressing` 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: struct `IndirectAddressing` is never constructed [INFO] [stdout] --> src/cpu/mod.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | struct IndirectAddressing; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IndirectAddressing` 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: struct `PreIndexedIndirect` is never constructed [INFO] [stdout] --> src/cpu/mod.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | struct PreIndexedIndirect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PreIndexedIndirect` 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: struct `PostIndexedIndirectAddressing` is never constructed [INFO] [stdout] --> src/cpu/mod.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | struct PostIndexedIndirectAddressing; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PostIndexedIndirectAddressing` 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: struct `RelativeAddressing` is never constructed [INFO] [stdout] --> src/cpu/mod.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 92 | struct RelativeAddressing; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RelativeAddressing` 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: struct `Cpu` is never constructed [INFO] [stdout] --> src/cpu/mod.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | pub struct Cpu { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CpuRegisters` is never constructed [INFO] [stdout] --> src/cpu/mod.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 101 | struct CpuRegisters { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/cpu/mod.rs:110:8 [INFO] [stdout] | [INFO] [stdout] 109 | impl CpuRegisters { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 110 | fn new() -> CpuRegisters { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `power_on`, `reset`, and `step` are never used [INFO] [stdout] --> src/cpu/mod.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 115 | impl Cpu { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 116 | pub fn new() -> Cpu { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn power_on (&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 133 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn step(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cycles` is never read [INFO] [stdout] --> src/cpu/disassembler.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct InstructionDeNovo { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 16 | pub cycles: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InstructionDeNovo` 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 `decode` is never used [INFO] [stdout] --> src/cpu/instructions.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn decode(opcode: OpCode) -> Instruction { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Instruction` is never constructed [INFO] [stdout] --> src/cpu/instructions.rs:244:12 [INFO] [stdout] | [INFO] [stdout] 244 | pub struct Instruction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Instruction` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/cpu/instructions.rs:253:8 [INFO] [stdout] | [INFO] [stdout] 252 | impl Instruction { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 253 | fn new(opcode: OpCode, mnemonic: Mnemonic, mode: AddressingMode, length: u8, cycles: u8) -> Instruction { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Address` is never used [INFO] [stdout] --> src/cpu/memory.rs:1:6 [INFO] [stdout] | [INFO] [stdout] 1 | type Address = u16; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Memory` is never used [INFO] [stdout] --> src/cpu/memory.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | trait Memory { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NES` is never constructed [INFO] [stdout] --> src/nes/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct NES { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `load_rom`, and `run` are never used [INFO] [stdout] --> src/nes/mod.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl NES { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 15 | pub fn new(mut file: File) -> NES { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn load_rom(&mut self, mut file: File) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn run(mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `chr_rom` is never read [INFO] [stdout] --> src/nes/rom.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 100 | pub struct ROM { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 103 | pub chr_rom: Vec [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: fields `screen_mode`, `system`, `region`, and `mapper` are never read [INFO] [stdout] --> src/nes/rom.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 113 | pub struct Header { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 117 | pub screen_mode: ScreenMode, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 118 | pub system: System, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 119 | pub region: Region, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 120 | pub mapper: u8 [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 `Result` that must be used [INFO] [stdout] --> src/nes/rom.rs:125:5 [INFO] [stdout] | [INFO] [stdout] 125 | file.read_to_end(&mut buf); [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)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 125 | let _ = file.read_to_end(&mut buf); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.19s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v3.2.1 [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" "682ff62fa47f2fc557748f1829ea705ac897e0482eccd62731d8ca44e5bbc8d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "682ff62fa47f2fc557748f1829ea705ac897e0482eccd62731d8ca44e5bbc8d0", kill_on_drop: false }` [INFO] [stdout] 682ff62fa47f2fc557748f1829ea705ac897e0482eccd62731d8ca44e5bbc8d0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=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" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8caa5a16883847c2650f97680ff40f93d37894f2e02f1ad2c8d05970680d13f6 [INFO] running `Command { std: "docker" "start" "-a" "8caa5a16883847c2650f97680ff40f93d37894f2e02f1ad2c8d05970680d13f6", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling mudkip v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `cpu::instructions` [INFO] [stdout] --> src/cpu/disassembler.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use cpu::instructions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Instruction` [INFO] [stdout] --> src/cpu/disassembler.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use cpu::instructions::{Instruction, Mnemonic, OpCode}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/cpu/memory.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | fn fetch(&Address) -> u8; [INFO] [stdout] | ^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &Address` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/cpu/memory.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | fn store(&Address, &u8); [INFO] [stdout] | ^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &Address` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/cpu/memory.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | fn store(&Address, &u8); [INFO] [stdout] | ^^^ help: try naming the parameter or explicitly ignoring it: `_: &u8` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/cpu/mod.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | / bitflags! { [INFO] [stdout] 32 | | struct StatusRegister: u8 { [INFO] [stdout] 33 | | const C = 0b0000_0001; // Carry [INFO] [stdout] 34 | | const Z = 0b0000_0010; // Zero [INFO] [stdout] ... | [INFO] [stdout] 40 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/cpu/mod.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | / bitflags! { [INFO] [stdout] 32 | | struct StatusRegister: u8 { [INFO] [stdout] 33 | | const C = 0b0000_0001; // Carry [INFO] [stdout] 34 | | const Z = 0b0000_0010; // Zero [INFO] [stdout] ... | [INFO] [stdout] 40 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/cpu/mod.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | / bitflags! { [INFO] [stdout] 32 | | struct StatusRegister: u8 { [INFO] [stdout] 33 | | const C = 0b0000_0001; // Carry [INFO] [stdout] 34 | | const Z = 0b0000_0010; // Zero [INFO] [stdout] ... | [INFO] [stdout] 40 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Cursor` [INFO] [stdout] --> src/nes/rom.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Cursor; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/nes/rom.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 34 | / bitflags! { [INFO] [stdout] 35 | | struct Flags6: u8 { [INFO] [stdout] 36 | | const VERTICAL = 0b0000_0001; [INFO] [stdout] 37 | | const SRAM = 0b0000_0010; [INFO] [stdout] ... | [INFO] [stdout] 42 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/nes/rom.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 34 | / bitflags! { [INFO] [stdout] 35 | | struct Flags6: u8 { [INFO] [stdout] 36 | | const VERTICAL = 0b0000_0001; [INFO] [stdout] 37 | | const SRAM = 0b0000_0010; [INFO] [stdout] ... | [INFO] [stdout] 42 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/nes/rom.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 34 | / bitflags! { [INFO] [stdout] 35 | | struct Flags6: u8 { [INFO] [stdout] 36 | | const VERTICAL = 0b0000_0001; [INFO] [stdout] 37 | | const SRAM = 0b0000_0010; [INFO] [stdout] ... | [INFO] [stdout] 42 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/nes/rom.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 47 | / bitflags! { [INFO] [stdout] 48 | | struct Flags7: u8 { [INFO] [stdout] 49 | | const VS_UNISYSTEM = 0b0000_0001; [INFO] [stdout] 50 | | const PLAYCHOICE_10 = 0b0000_0010; [INFO] [stdout] ... | [INFO] [stdout] 53 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/nes/rom.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 47 | / bitflags! { [INFO] [stdout] 48 | | struct Flags7: u8 { [INFO] [stdout] 49 | | const VS_UNISYSTEM = 0b0000_0001; [INFO] [stdout] 50 | | const PLAYCHOICE_10 = 0b0000_0010; [INFO] [stdout] ... | [INFO] [stdout] 53 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/nes/rom.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 47 | / bitflags! { [INFO] [stdout] 48 | | struct Flags7: u8 { [INFO] [stdout] 49 | | const VS_UNISYSTEM = 0b0000_0001; [INFO] [stdout] 50 | | const PLAYCHOICE_10 = 0b0000_0010; [INFO] [stdout] ... | [INFO] [stdout] 53 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/nes/rom.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | / bitflags! { [INFO] [stdout] 58 | | struct Flags9: u8 { [INFO] [stdout] 59 | | const TV_SYSTEM = 0b0000_0001; // (0: NTSC; 1: PAL) [INFO] [stdout] 60 | | } [INFO] [stdout] 61 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/nes/rom.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | / bitflags! { [INFO] [stdout] 58 | | struct Flags9: u8 { [INFO] [stdout] 59 | | const TV_SYSTEM = 0b0000_0001; // (0: NTSC; 1: PAL) [INFO] [stdout] 60 | | } [INFO] [stdout] 61 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/nes/rom.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | / bitflags! { [INFO] [stdout] 58 | | struct Flags9: u8 { [INFO] [stdout] 59 | | const TV_SYSTEM = 0b0000_0001; // (0: NTSC; 1: PAL) [INFO] [stdout] 60 | | } [INFO] [stdout] 61 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cursor` and `Read` [INFO] [stdout] --> src/main.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | use std::io::{Cursor, Read}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LittleEndian` and `ReadBytesExt` [INFO] [stdout] --> src/main.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | use byteorder::{LittleEndian, ReadBytesExt}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cpu::instructions` [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use cpu::instructions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cpu::instructions::Instruction` [INFO] [stdout] --> src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use cpu::instructions::Instruction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nes::NES` [INFO] [stdout] --> src/main.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use nes::NES; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `needed` [INFO] [stdout] --> src/nes/rom.rs:131:29 [INFO] [stdout] | [INFO] [stdout] 131 | IResult::Incomplete(needed) => Err("Failed to parse ROM file"), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_needed` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prg_ram` [INFO] [stdout] --> src/nes/rom.rs:138:70 [INFO] [stdout] | [INFO] [stdout] 138 | fn new(prg_size: usize, chr_size: usize, flags6: u8, flags7: u8, prg_ram: u8, flags9: u8, flags10: u8) -> Header { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prg_ram` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `flags10` [INFO] [stdout] --> src/nes/rom.rs:138:95 [INFO] [stdout] | [INFO] [stdout] 138 | fn new(prg_size: usize, chr_size: usize, flags6: u8, flags7: u8, prg_ram: u8, flags9: u8, flags10: u8) -> Header { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_flags10` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:55:21 [INFO] [stdout] | [INFO] [stdout] 55 | Err(err) => eprintln!("{} Invalid path {:?} specified!", Red.bold().paint("error:"), path) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `WorkingMemory` is never used [INFO] [stdout] --> src/cpu/mod.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | type WorkingMemory = [u8; 2048]; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `RegisterA` is never used [INFO] [stdout] --> src/cpu/mod.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | type RegisterA = u8; // Accumulator [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `RegisterX` is never used [INFO] [stdout] --> src/cpu/mod.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 12 | type RegisterX = u8; // Index X register [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `RegisterY` is never used [INFO] [stdout] --> src/cpu/mod.rs:13:6 [INFO] [stdout] | [INFO] [stdout] 13 | type RegisterY = u8; // Index Y register [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `RegisterPC` is never used [INFO] [stdout] --> src/cpu/mod.rs:14:6 [INFO] [stdout] | [INFO] [stdout] 14 | type RegisterPC = Address; // Program Counter register [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `RegisterSP` is never used [INFO] [stdout] --> src/cpu/mod.rs:15:6 [INFO] [stdout] | [INFO] [stdout] 15 | type RegisterSP = u8; // Stack pointer [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Address` is never used [INFO] [stdout] --> src/cpu/mod.rs:42:6 [INFO] [stdout] | [INFO] [stdout] 42 | type Address = u16; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ImmediateAddressing` is never constructed [INFO] [stdout] --> src/cpu/mod.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | struct ImmediateAddressing; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ImmediateAddressing` 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: struct `ZeroPageAddressing` is never constructed [INFO] [stdout] --> src/cpu/mod.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | struct ZeroPageAddressing; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ZeroPageAddressing` 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: struct `AbsoluteAddressing` is never constructed [INFO] [stdout] --> src/cpu/mod.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | struct AbsoluteAddressing; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AbsoluteAddressing` 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: struct `ImpliedAddressing` is never constructed [INFO] [stdout] --> src/cpu/mod.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | struct ImpliedAddressing; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ImpliedAddressing` 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: struct `AccumulatorAddressing` is never constructed [INFO] [stdout] --> src/cpu/mod.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | struct AccumulatorAddressing; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AccumulatorAddressing` 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: struct `IndexedXAddressing` is never constructed [INFO] [stdout] --> src/cpu/mod.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | struct IndexedXAddressing; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IndexedXAddressing` 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: struct `IndexedYAddressing` is never constructed [INFO] [stdout] --> src/cpu/mod.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | struct IndexedYAddressing; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IndexedYAddressing` 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: struct `ZeroPageIndexedXAddressing` is never constructed [INFO] [stdout] --> src/cpu/mod.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | struct ZeroPageIndexedXAddressing; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ZeroPageIndexedXAddressing` 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: struct `ZeroPageIndexedYAddressing` is never constructed [INFO] [stdout] --> src/cpu/mod.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | struct ZeroPageIndexedYAddressing; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ZeroPageIndexedYAddressing` 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: struct `IndirectAddressing` is never constructed [INFO] [stdout] --> src/cpu/mod.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | struct IndirectAddressing; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IndirectAddressing` 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: struct `PreIndexedIndirect` is never constructed [INFO] [stdout] --> src/cpu/mod.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | struct PreIndexedIndirect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PreIndexedIndirect` 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: struct `PostIndexedIndirectAddressing` is never constructed [INFO] [stdout] --> src/cpu/mod.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | struct PostIndexedIndirectAddressing; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PostIndexedIndirectAddressing` 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: struct `RelativeAddressing` is never constructed [INFO] [stdout] --> src/cpu/mod.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 92 | struct RelativeAddressing; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RelativeAddressing` 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: struct `Cpu` is never constructed [INFO] [stdout] --> src/cpu/mod.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | pub struct Cpu { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CpuRegisters` is never constructed [INFO] [stdout] --> src/cpu/mod.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 101 | struct CpuRegisters { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/cpu/mod.rs:110:8 [INFO] [stdout] | [INFO] [stdout] 109 | impl CpuRegisters { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 110 | fn new() -> CpuRegisters { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `power_on`, `reset`, and `step` are never used [INFO] [stdout] --> src/cpu/mod.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 115 | impl Cpu { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 116 | pub fn new() -> Cpu { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn power_on (&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 133 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn step(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cycles` is never read [INFO] [stdout] --> src/cpu/disassembler.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct InstructionDeNovo { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 16 | pub cycles: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InstructionDeNovo` 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 `decode` is never used [INFO] [stdout] --> src/cpu/instructions.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn decode(opcode: OpCode) -> Instruction { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Instruction` is never constructed [INFO] [stdout] --> src/cpu/instructions.rs:244:12 [INFO] [stdout] | [INFO] [stdout] 244 | pub struct Instruction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Instruction` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/cpu/instructions.rs:253:8 [INFO] [stdout] | [INFO] [stdout] 252 | impl Instruction { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 253 | fn new(opcode: OpCode, mnemonic: Mnemonic, mode: AddressingMode, length: u8, cycles: u8) -> Instruction { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Address` is never used [INFO] [stdout] --> src/cpu/memory.rs:1:6 [INFO] [stdout] | [INFO] [stdout] 1 | type Address = u16; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Memory` is never used [INFO] [stdout] --> src/cpu/memory.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | trait Memory { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NES` is never constructed [INFO] [stdout] --> src/nes/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct NES { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `load_rom`, and `run` are never used [INFO] [stdout] --> src/nes/mod.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl NES { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 15 | pub fn new(mut file: File) -> NES { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn load_rom(&mut self, mut file: File) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn run(mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `chr_rom` is never read [INFO] [stdout] --> src/nes/rom.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 100 | pub struct ROM { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 103 | pub chr_rom: Vec [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: fields `screen_mode`, `system`, `region`, and `mapper` are never read [INFO] [stdout] --> src/nes/rom.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 113 | pub struct Header { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 117 | pub screen_mode: ScreenMode, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 118 | pub system: System, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 119 | pub region: Region, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 120 | pub mapper: u8 [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 `Result` that must be used [INFO] [stdout] --> src/nes/rom.rs:125:5 [INFO] [stdout] | [INFO] [stdout] 125 | file.read_to_end(&mut buf); [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)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 125 | let _ = file.read_to_end(&mut buf); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.51s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v3.2.1 [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" "8caa5a16883847c2650f97680ff40f93d37894f2e02f1ad2c8d05970680d13f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8caa5a16883847c2650f97680ff40f93d37894f2e02f1ad2c8d05970680d13f6", kill_on_drop: false }` [INFO] [stdout] 8caa5a16883847c2650f97680ff40f93d37894f2e02f1ad2c8d05970680d13f6