[INFO] cloning repository https://github.com/iburinoc/gba-rs
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/iburinoc/gba-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiburinoc%2Fgba-rs", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiburinoc%2Fgba-rs'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] d5e59ca598eaff908d871dde9a9795b4d332257b
[INFO] checking iburinoc/gba-rs against master#5518eaa946291f00471af8b254b2a1715f234882 for pr-120393-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiburinoc%2Fgba-rs" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/iburinoc/gba-rs on toolchain 5518eaa946291f00471af8b254b2a1715f234882
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/iburinoc/gba-rs
[INFO] finished tweaking git repo https://github.com/iburinoc/gba-rs
[INFO] tweaked toml for git repo https://github.com/iburinoc/gba-rs written to /workspace/builds/worker-5-tc1/source/Cargo.toml
[INFO] crate git repo https://github.com/iburinoc/gba-rs 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" "+5518eaa946291f00471af8b254b2a1715f234882" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating git repository `https://github.com/daniel5151/arm7tdmi-rs.git`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded wincolor v1.0.2
[INFO] [stderr]   Downloaded memmap v0.6.2
[INFO] [stderr]   Downloaded zstd v0.4.28+zstd.1.4.3
[INFO] [stderr]   Downloaded arraydeque v0.4.5
[INFO] [stderr]   Downloaded bincode v1.1.4
[INFO] [stderr]   Downloaded jobserver v0.1.17
[INFO] [stderr]   Downloaded zstd-safe v1.4.13+zstd.1.4.3
[INFO] [stderr]   Downloaded flame v0.2.2
[INFO] [stderr]   Downloaded zstd-sys v1.4.13+zstd.1.4.3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 0a2394a8c29c06b0c53cf87e9a7ac077745fdd9fe7127454fa9f9879db15f3fc
[INFO] running `Command { std: "docker" "start" "-a" "0a2394a8c29c06b0c53cf87e9a7ac077745fdd9fe7127454fa9f9879db15f3fc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "0a2394a8c29c06b0c53cf87e9a7ac077745fdd9fe7127454fa9f9879db15f3fc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0a2394a8c29c06b0c53cf87e9a7ac077745fdd9fe7127454fa9f9879db15f3fc", kill_on_drop: false }`
[INFO] [stdout] 0a2394a8c29c06b0c53cf87e9a7ac077745fdd9fe7127454fa9f9879db15f3fc
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] b987461af5030b685b1eddb8511590f3685ec335d249cc8d7cc2298196faed6a
[INFO] running `Command { std: "docker" "start" "-a" "b987461af5030b685b1eddb8511590f3685ec335d249cc8d7cc2298196faed6a", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.62
[INFO] [stderr]    Compiling autocfg v0.1.6
[INFO] [stderr]    Compiling log v0.4.8
[INFO] [stderr]    Compiling cfg-if v0.1.9
[INFO] [stderr]    Compiling proc-macro2 v1.0.3
[INFO] [stderr]    Compiling syn v1.0.5
[INFO] [stderr]    Compiling serde v1.0.101
[INFO] [stderr]    Compiling glob v0.3.0
[INFO] [stderr]     Checking quick-error v1.2.2
[INFO] [stderr]    Compiling arraydeque v0.4.5
[INFO] [stderr]     Checking lazy_static v0.2.11
[INFO] [stderr]     Checking unicode-width v0.1.6
[INFO] [stderr]     Checking termcolor v1.0.5
[INFO] [stderr]    Compiling gba-rs v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Checking bitflags v0.7.0
[INFO] [stderr]    Compiling sdl2-sys v0.31.0
[INFO] [stderr]     Checking humantime v1.3.0
[INFO] [stderr]     Checking textwrap v0.11.0
[INFO] [stderr]    Compiling num-traits v0.2.8
[INFO] [stderr]    Compiling num-integer v0.1.41
[INFO] [stderr]    Compiling num-iter v0.1.39
[INFO] [stderr]    Compiling bincode v1.1.4
[INFO] [stderr]    Compiling jobserver v0.1.17
[INFO] [stderr]    Compiling num_cpus v1.10.1
[INFO] [stderr]    Compiling quote v1.0.2
[INFO] [stderr]     Checking rand v0.4.6
[INFO] [stderr]     Checking atty v0.2.13
[INFO] [stderr]     Checking thread-id v3.3.0
[INFO] [stderr]     Checking memmap v0.6.2
[INFO] [stderr]    Compiling cc v1.0.45
[INFO] [stderr]     Checking env_logger v0.5.13
[INFO] [stderr]     Checking clap v2.33.0
[INFO] [stderr]     Checking rand v0.3.23
[INFO] [stderr]    Compiling zstd-sys v1.4.13+zstd.1.4.3
[INFO] [stderr]     Checking num v0.1.42
[INFO] [stderr]     Checking sdl2 v0.31.0
[INFO] [stderr]    Compiling serde_derive v1.0.101
[INFO] [stderr]     Checking serde_json v1.0.40
[INFO] [stderr]     Checking arm7tdmi-rs v0.1.0 (https://github.com/daniel5151/arm7tdmi-rs.git#9bbf5e75)
[INFO] [stderr]     Checking flame v0.2.2
[INFO] [stderr]     Checking zstd-safe v1.4.13+zstd.1.4.3
[INFO] [stderr]     Checking zstd v0.4.28+zstd.1.4.3
[INFO] [stdout] warning: unnecessary parentheses around block return value
[INFO] [stdout]    --> src/io/ppu/render/mod.rs:124:5
[INFO] [stdout]     |
[INFO] [stdout] 124 |     ((colour.0 as u32) << 16 | (colour.1 as u32) << 8 | (colour.2 as u32))
[INFO] [stdout]     |     ^                                                                    ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 124 -     ((colour.0 as u32) << 16 | (colour.1 as u32) << 8 | (colour.2 as u32))
[INFO] [stdout] 124 +     (colour.0 as u32) << 16 | (colour.1 as u32) << 8 | (colour.2 as u32)
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `AudioSpecDesired`
[INFO] [stdout]  --> src/io/spu/mod.rs:5:34
[INFO] [stdout]   |
[INFO] [stdout] 5 | use sdl2::audio::{AudioCallback, AudioSpecDesired};
[INFO] [stdout]   |                                  ^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `mmu::gba::Gba as GbaMmu`
[INFO] [stdout]  --> src/io/spu/mod.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use mmu::gba::Gba as GbaMmu;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::u16`
[INFO] [stdout]    --> src/io/mod.rs:270:9
[INFO] [stdout]     |
[INFO] [stdout] 270 |     use std::u16;
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::u16`
[INFO] [stdout]    --> src/io/mod.rs:280:9
[INFO] [stdout]     |
[INFO] [stdout] 280 |     use std::u16;
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around block return value
[INFO] [stdout]    --> src/io/ppu/render/mod.rs:124:5
[INFO] [stdout]     |
[INFO] [stdout] 124 |     ((colour.0 as u32) << 16 | (colour.1 as u32) << 8 | (colour.2 as u32))
[INFO] [stdout]     |     ^                                                                    ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 124 -     ((colour.0 as u32) << 16 | (colour.1 as u32) << 8 | (colour.2 as u32))
[INFO] [stdout] 124 +     (colour.0 as u32) << 16 | (colour.1 as u32) << 8 | (colour.2 as u32)
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `AudioSpecDesired`
[INFO] [stdout]  --> src/io/spu/mod.rs:5:34
[INFO] [stdout]   |
[INFO] [stdout] 5 | use sdl2::audio::{AudioCallback, AudioSpecDesired};
[INFO] [stdout]   |                                  ^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `mmu::gba::Gba as GbaMmu`
[INFO] [stdout]  --> src/io/spu/mod.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use mmu::gba::Gba as GbaMmu;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::u16`
[INFO] [stdout]    --> src/io/mod.rs:270:9
[INFO] [stdout]     |
[INFO] [stdout] 270 |     use std::u16;
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::u16`
[INFO] [stdout]    --> src/io/mod.rs:280:9
[INFO] [stdout]     |
[INFO] [stdout] 280 |     use std::u16;
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead
[INFO] [stdout]   --> src/gba/mod.rs:80:51
[INFO] [stdout]    |
[INFO] [stdout] 80 |             let mut gba: Box<Gba> = Box::new(mem::uninitialized());
[INFO] [stdout]    |                                                   ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead
[INFO] [stdout]   --> src/gba/save_state.rs:82:54
[INFO] [stdout]    |
[INFO] [stdout] 82 |                     let mut gba: Gba<'static> = mem::uninitialized();
[INFO] [stdout]    |                                                      ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/mmu/gba/mod.rs:154:57
[INFO] [stdout]     |
[INFO] [stdout] 154 |     pub fn get_range(&self, addr: u32) -> Option<(u32, &Mmu)> {
[INFO] [stdout]     |                                                         ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]     = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 154 |     pub fn get_range(&self, addr: u32) -> Option<(u32, &dyn Mmu)> {
[INFO] [stdout]     |                                                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/mmu/gba/mod.rs:173:69
[INFO] [stdout]     |
[INFO] [stdout] 173 |     pub fn get_range_mut(&mut self, addr: u32) -> Option<(u32, &mut Mmu)> {
[INFO] [stdout]     |                                                                     ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 173 |     pub fn get_range_mut(&mut self, addr: u32) -> Option<(u32, &mut dyn Mmu)> {
[INFO] [stdout]     |                                                                     +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead
[INFO] [stdout]   --> src/gba/mod.rs:80:51
[INFO] [stdout]    |
[INFO] [stdout] 80 |             let mut gba: Box<Gba> = Box::new(mem::uninitialized());
[INFO] [stdout]    |                                                   ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead
[INFO] [stdout]   --> src/gba/save_state.rs:82:54
[INFO] [stdout]    |
[INFO] [stdout] 82 |                     let mut gba: Gba<'static> = mem::uninitialized();
[INFO] [stdout]    |                                                      ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred
[INFO] [stdout]  --> src/test.rs:1:23
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::sync::{Once, ONCE_INIT};
[INFO] [stdout]   |                       ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred
[INFO] [stdout]  --> src/test.rs:5:21
[INFO] [stdout]   |
[INFO] [stdout] 5 | static INIT: Once = ONCE_INIT;
[INFO] [stdout]   |                     ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: replace the use of the deprecated constant
[INFO] [stdout]   |
[INFO] [stdout] 5 | static INIT: Once = Once::new();
[INFO] [stdout]   |                     ~~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/mmu/gba/mod.rs:154:57
[INFO] [stdout]     |
[INFO] [stdout] 154 |     pub fn get_range(&self, addr: u32) -> Option<(u32, &Mmu)> {
[INFO] [stdout]     |                                                         ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]     = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 154 |     pub fn get_range(&self, addr: u32) -> Option<(u32, &dyn Mmu)> {
[INFO] [stdout]     |                                                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/mmu/gba/mod.rs:173:69
[INFO] [stdout]     |
[INFO] [stdout] 173 |     pub fn get_range_mut(&mut self, addr: u32) -> Option<(u32, &mut Mmu)> {
[INFO] [stdout]     |                                                                     ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 173 |     pub fn get_range_mut(&mut self, addr: u32) -> Option<(u32, &mut dyn Mmu)> {
[INFO] [stdout]     |                                                                     +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stdout]    --> src/main.rs:100:41
[INFO] [stdout]     |
[INFO] [stdout] 100 |                     Err(err) => Err(err.description().to_string()),
[INFO] [stdout]     |                                         ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stdout]    --> src/main.rs:100:41
[INFO] [stdout]     |
[INFO] [stdout] 100 |                     Err(err) => Err(err.description().to_string()),
[INFO] [stdout]     |                                         ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `mask_match` is never used
[INFO] [stdout]   --> src/bit_util.rs:10:8
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub fn mask_match(val: u32, mask: u32, test: u32) -> bool {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `set` is never used
[INFO] [stdout]   --> src/bit_util.rs:15:8
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub fn set(base: u32, off: u8, len: u8, val: u32) -> u32 {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `shift_lsl` is never used
[INFO] [stdout]   --> src/bit_util.rs:36:8
[INFO] [stdout]    |
[INFO] [stdout] 36 | pub fn shift_lsl(val: u32, rot: u32) -> (u32, u32) {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `shift_lsr` is never used
[INFO] [stdout]   --> src/bit_util.rs:45:8
[INFO] [stdout]    |
[INFO] [stdout] 45 | pub fn shift_lsr(val: u32, rot: u32) -> (u32, u32) {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `shift_asr` is never used
[INFO] [stdout]   --> src/bit_util.rs:55:8
[INFO] [stdout]    |
[INFO] [stdout] 55 | pub fn shift_asr(val: u32, rot: u32) -> (u32, u32) {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `shift_ror` is never used
[INFO] [stdout]   --> src/bit_util.rs:64:8
[INFO] [stdout]    |
[INFO] [stdout] 64 | pub fn shift_ror(val: u32, rot: u32) -> (u32, u32) {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_pos` is never used
[INFO] [stdout]   --> src/bit_util.rs:72:8
[INFO] [stdout]    |
[INFO] [stdout] 72 | pub fn is_pos(val: u32) -> bool {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_neg` is never used
[INFO] [stdout]   --> src/bit_util.rs:77:8
[INFO] [stdout]    |
[INFO] [stdout] 77 | pub fn is_neg(val: u32) -> bool {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `add_flags` is never used
[INFO] [stdout]   --> src/bit_util.rs:83:8
[INFO] [stdout]    |
[INFO] [stdout] 83 | pub fn add_flags(lhs: u32, rhs: u32, carry: u32) -> (u32, u32, u32) {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `sub_flags` is never used
[INFO] [stdout]   --> src/bit_util.rs:99:8
[INFO] [stdout]    |
[INFO] [stdout] 99 | pub fn sub_flags(lhs: u32, rhs: u32, carry: u32) -> (u32, u32, u32) {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `combine64` is never used
[INFO] [stdout]    --> src/bit_util.rs:115:8
[INFO] [stdout]     |
[INFO] [stdout] 115 | pub fn combine64(hi: u32, lo: u32) -> u64 {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `split64` is never used
[INFO] [stdout]    --> src/bit_util.rs:122:8
[INFO] [stdout]     |
[INFO] [stdout] 122 | pub fn split64(quad: u64) -> (u32, u32) {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `SoundFifo` is never constructed
[INFO] [stdout]   --> src/io/dma.rs:31:5
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub enum Trigger {
[INFO] [stdout]    |          ------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 31 |     SoundFifo,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Trigger` 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: field `io` is never read
[INFO] [stdout]   --> src/io/spu/mod.rs:24:5
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub struct Spu<'a> {
[INFO] [stdout]    |            --- field in this struct
[INFO] [stdout] 24 |     io: Shared<IoReg<'a>>,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new_with_data` is never used
[INFO] [stdout]   --> src/mmu/ram.rs:18:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | impl Ram {
[INFO] [stdout]    | -------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 18 |     pub fn new_with_data(size: usize, data: &[u8]) -> Ram {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the type `gba::Gba<'_>` does not permit being left uninitialized
[INFO] [stdout]   --> src/gba/mod.rs:80:46
[INFO] [stdout]    |
[INFO] [stdout] 80 |             let mut gba: Box<Gba> = Box::new(mem::uninitialized());
[INFO] [stdout]    |                                              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |                                              |
[INFO] [stdout]    |                                              this code causes undefined behavior when executed
[INFO] [stdout]    |                                              help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
[INFO] [stdout]    |
[INFO] [stdout] note: in this struct field
[INFO] [stdout]   --> src/gba/mod.rs:61:5
[INFO] [stdout]    |
[INFO] [stdout] 61 |     opts: Options,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] note: booleans must be either `true` or `false` (in this struct field)
[INFO] [stdout]   --> src/gba/mod.rs:40:5
[INFO] [stdout]    |
[INFO] [stdout] 40 |     pub fps_limit: bool,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    = note: `#[warn(invalid_value)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the type `gba::Gba<'_>` does not permit being left uninitialized
[INFO] [stdout]   --> src/gba/save_state.rs:82:49
[INFO] [stdout]    |
[INFO] [stdout] 82 |                     let mut gba: Gba<'static> = mem::uninitialized();
[INFO] [stdout]    |                                                 ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |                                                 |
[INFO] [stdout]    |                                                 this code causes undefined behavior when executed
[INFO] [stdout]    |                                                 help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
[INFO] [stdout]    |
[INFO] [stdout] note: in this struct field
[INFO] [stdout]   --> src/gba/mod.rs:61:5
[INFO] [stdout]    |
[INFO] [stdout] 61 |     opts: Options,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] note: booleans must be either `true` or `false` (in this struct field)
[INFO] [stdout]   --> src/gba/mod.rs:40:5
[INFO] [stdout]    |
[INFO] [stdout] 40 |     pub fps_limit: bool,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 27 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `mask_match` is never used
[INFO] [stdout]   --> src/bit_util.rs:10:8
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub fn mask_match(val: u32, mask: u32, test: u32) -> bool {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `set` is never used
[INFO] [stdout]   --> src/bit_util.rs:15:8
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub fn set(base: u32, off: u8, len: u8, val: u32) -> u32 {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `shift_asr` is never used
[INFO] [stdout]   --> src/bit_util.rs:55:8
[INFO] [stdout]    |
[INFO] [stdout] 55 | pub fn shift_asr(val: u32, rot: u32) -> (u32, u32) {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_pos` is never used
[INFO] [stdout]   --> src/bit_util.rs:72:8
[INFO] [stdout]    |
[INFO] [stdout] 72 | pub fn is_pos(val: u32) -> bool {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_neg` is never used
[INFO] [stdout]   --> src/bit_util.rs:77:8
[INFO] [stdout]    |
[INFO] [stdout] 77 | pub fn is_neg(val: u32) -> bool {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `add_flags` is never used
[INFO] [stdout]   --> src/bit_util.rs:83:8
[INFO] [stdout]    |
[INFO] [stdout] 83 | pub fn add_flags(lhs: u32, rhs: u32, carry: u32) -> (u32, u32, u32) {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `sub_flags` is never used
[INFO] [stdout]   --> src/bit_util.rs:99:8
[INFO] [stdout]    |
[INFO] [stdout] 99 | pub fn sub_flags(lhs: u32, rhs: u32, carry: u32) -> (u32, u32, u32) {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `combine64` is never used
[INFO] [stdout]    --> src/bit_util.rs:115:8
[INFO] [stdout]     |
[INFO] [stdout] 115 | pub fn combine64(hi: u32, lo: u32) -> u64 {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `split64` is never used
[INFO] [stdout]    --> src/bit_util.rs:122:8
[INFO] [stdout]     |
[INFO] [stdout] 122 | pub fn split64(quad: u64) -> (u32, u32) {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `SoundFifo` is never constructed
[INFO] [stdout]   --> src/io/dma.rs:31:5
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub enum Trigger {
[INFO] [stdout]    |          ------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 31 |     SoundFifo,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Trigger` 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: field `io` is never read
[INFO] [stdout]   --> src/io/spu/mod.rs:24:5
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub struct Spu<'a> {
[INFO] [stdout]    |            --- field in this struct
[INFO] [stdout] 24 |     io: Shared<IoReg<'a>>,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new_with_data` is never used
[INFO] [stdout]   --> src/mmu/ram.rs:18:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | impl Ram {
[INFO] [stdout]    | -------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 18 |     pub fn new_with_data(size: usize, data: &[u8]) -> Ram {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `INIT` is never used
[INFO] [stdout]  --> src/test.rs:5:8
[INFO] [stdout]   |
[INFO] [stdout] 5 | static INIT: Once = ONCE_INIT;
[INFO] [stdout]   |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `setup` is never used
[INFO] [stdout]  --> src/test.rs:7:8
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub fn setup() {
[INFO] [stdout]   |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the type `gba::Gba<'_>` does not permit being left uninitialized
[INFO] [stdout]   --> src/gba/mod.rs:80:46
[INFO] [stdout]    |
[INFO] [stdout] 80 |             let mut gba: Box<Gba> = Box::new(mem::uninitialized());
[INFO] [stdout]    |                                              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |                                              |
[INFO] [stdout]    |                                              this code causes undefined behavior when executed
[INFO] [stdout]    |                                              help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
[INFO] [stdout]    |
[INFO] [stdout] note: in this struct field
[INFO] [stdout]   --> src/gba/mod.rs:61:5
[INFO] [stdout]    |
[INFO] [stdout] 61 |     opts: Options,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] note: booleans must be either `true` or `false` (in this struct field)
[INFO] [stdout]   --> src/gba/mod.rs:40:5
[INFO] [stdout]    |
[INFO] [stdout] 40 |     pub fps_limit: bool,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    = note: `#[warn(invalid_value)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the type `gba::Gba<'_>` does not permit being left uninitialized
[INFO] [stdout]   --> src/gba/save_state.rs:82:49
[INFO] [stdout]    |
[INFO] [stdout] 82 |                     let mut gba: Gba<'static> = mem::uninitialized();
[INFO] [stdout]    |                                                 ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |                                                 |
[INFO] [stdout]    |                                                 this code causes undefined behavior when executed
[INFO] [stdout]    |                                                 help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
[INFO] [stdout]    |
[INFO] [stdout] note: in this struct field
[INFO] [stdout]   --> src/gba/mod.rs:61:5
[INFO] [stdout]    |
[INFO] [stdout] 61 |     opts: Options,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] note: booleans must be either `true` or `false` (in this struct field)
[INFO] [stdout]   --> src/gba/mod.rs:40:5
[INFO] [stdout]    |
[INFO] [stdout] 40 |     pub fps_limit: bool,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 28 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 26.73s
[INFO] running `Command { std: "docker" "inspect" "b987461af5030b685b1eddb8511590f3685ec335d249cc8d7cc2298196faed6a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b987461af5030b685b1eddb8511590f3685ec335d249cc8d7cc2298196faed6a", kill_on_drop: false }`
[INFO] [stdout] b987461af5030b685b1eddb8511590f3685ec335d249cc8d7cc2298196faed6a
[INFO] checking iburinoc/gba-rs against try#7622c0f807a4e13c4db886a1681bf343795692df+rustflags=-Dnon_local_definitions for pr-120393-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiburinoc%2Fgba-rs" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/iburinoc/gba-rs on toolchain 7622c0f807a4e13c4db886a1681bf343795692df
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/iburinoc/gba-rs
[INFO] finished tweaking git repo https://github.com/iburinoc/gba-rs
[INFO] tweaked toml for git repo https://github.com/iburinoc/gba-rs written to /workspace/builds/worker-5-tc2/source/Cargo.toml
[INFO] crate git repo https://github.com/iburinoc/gba-rs 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" "+7622c0f807a4e13c4db886a1681bf343795692df" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 7da345125e2adbee44e78e787bd395c875e228604c0d5c69382cef7769c097d5
[INFO] running `Command { std: "docker" "start" "-a" "7da345125e2adbee44e78e787bd395c875e228604c0d5c69382cef7769c097d5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "7da345125e2adbee44e78e787bd395c875e228604c0d5c69382cef7769c097d5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7da345125e2adbee44e78e787bd395c875e228604c0d5c69382cef7769c097d5", kill_on_drop: false }`
[INFO] [stdout] 7da345125e2adbee44e78e787bd395c875e228604c0d5c69382cef7769c097d5
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dnon_local_definitions" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] a736cb483870548e926942dc7819fb8b0050203777a20616d728d3294cc21194
[INFO] running `Command { std: "docker" "start" "-a" "a736cb483870548e926942dc7819fb8b0050203777a20616d728d3294cc21194", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.62
[INFO] [stderr]    Compiling autocfg v0.1.6
[INFO] [stderr]    Compiling log v0.4.8
[INFO] [stderr]    Compiling cfg-if v0.1.9
[INFO] [stderr]    Compiling proc-macro2 v1.0.3
[INFO] [stderr]    Compiling syn v1.0.5
[INFO] [stderr]    Compiling serde v1.0.101
[INFO] [stderr]    Compiling glob v0.3.0
[INFO] [stderr]     Checking unicode-width v0.1.6
[INFO] [stderr]    Compiling arraydeque v0.4.5
[INFO] [stderr]     Checking lazy_static v0.2.11
[INFO] [stderr]     Checking quick-error v1.2.2
[INFO] [stderr]     Checking termcolor v1.0.5
[INFO] [stderr]    Compiling gba-rs v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Checking bitflags v0.7.0
[INFO] [stderr]     Checking humantime v1.3.0
[INFO] [stderr]    Compiling sdl2-sys v0.31.0
[INFO] [stderr]     Checking textwrap v0.11.0
[INFO] [stderr]    Compiling num-traits v0.2.8
[INFO] [stderr]    Compiling num-integer v0.1.41
[INFO] [stderr]    Compiling num-iter v0.1.39
[INFO] [stderr]    Compiling bincode v1.1.4
[INFO] [stderr]     Checking rand v0.4.6
[INFO] [stderr]     Checking atty v0.2.13
[INFO] [stderr]     Checking thread-id v3.3.0
[INFO] [stderr]     Checking memmap v0.6.2
[INFO] [stderr]    Compiling jobserver v0.1.17
[INFO] [stderr]    Compiling num_cpus v1.10.1
[INFO] [stderr]     Checking env_logger v0.5.13
[INFO] [stderr]     Checking clap v2.33.0
[INFO] [stderr]    Compiling quote v1.0.2
[INFO] [stderr]    Compiling cc v1.0.45
[INFO] [stderr]     Checking rand v0.3.23
[INFO] [stderr]     Checking num v0.1.42
[INFO] [stderr]     Checking sdl2 v0.31.0
[INFO] [stderr]    Compiling zstd-sys v1.4.13+zstd.1.4.3
[INFO] [stderr]    Compiling serde_derive v1.0.101
[INFO] [stderr]     Checking serde_json v1.0.40
[INFO] [stderr]     Checking arm7tdmi-rs v0.1.0 (https://github.com/daniel5151/arm7tdmi-rs.git#9bbf5e75)
[INFO] [stderr]     Checking flame v0.2.2
[INFO] [stderr]     Checking zstd-safe v1.4.13+zstd.1.4.3
[INFO] [stderr]     Checking zstd v0.4.28+zstd.1.4.3
[INFO] [stdout] warning: unnecessary parentheses around block return value
[INFO] [stdout]    --> src/io/ppu/render/mod.rs:124:5
[INFO] [stdout]     |
[INFO] [stdout] 124 |     ((colour.0 as u32) << 16 | (colour.1 as u32) << 8 | (colour.2 as u32))
[INFO] [stdout]     |     ^                                                                    ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 124 -     ((colour.0 as u32) << 16 | (colour.1 as u32) << 8 | (colour.2 as u32))
[INFO] [stdout] 124 +     (colour.0 as u32) << 16 | (colour.1 as u32) << 8 | (colour.2 as u32)
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `AudioSpecDesired`
[INFO] [stdout]  --> src/io/spu/mod.rs:5:34
[INFO] [stdout]   |
[INFO] [stdout] 5 | use sdl2::audio::{AudioCallback, AudioSpecDesired};
[INFO] [stdout]   |                                  ^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `mmu::gba::Gba as GbaMmu`
[INFO] [stdout]  --> src/io/spu/mod.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use mmu::gba::Gba as GbaMmu;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::u16`
[INFO] [stdout]    --> src/io/mod.rs:270:9
[INFO] [stdout]     |
[INFO] [stdout] 270 |     use std::u16;
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::u16`
[INFO] [stdout]    --> src/io/mod.rs:280:9
[INFO] [stdout]     |
[INFO] [stdout] 280 |     use std::u16;
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around block return value
[INFO] [stdout]    --> src/io/ppu/render/mod.rs:124:5
[INFO] [stdout]     |
[INFO] [stdout] 124 |     ((colour.0 as u32) << 16 | (colour.1 as u32) << 8 | (colour.2 as u32))
[INFO] [stdout]     |     ^                                                                    ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 124 -     ((colour.0 as u32) << 16 | (colour.1 as u32) << 8 | (colour.2 as u32))
[INFO] [stdout] 124 +     (colour.0 as u32) << 16 | (colour.1 as u32) << 8 | (colour.2 as u32)
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `AudioSpecDesired`
[INFO] [stdout]  --> src/io/spu/mod.rs:5:34
[INFO] [stdout]   |
[INFO] [stdout] 5 | use sdl2::audio::{AudioCallback, AudioSpecDesired};
[INFO] [stdout]   |                                  ^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `mmu::gba::Gba as GbaMmu`
[INFO] [stdout]  --> src/io/spu/mod.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use mmu::gba::Gba as GbaMmu;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::u16`
[INFO] [stdout]    --> src/io/mod.rs:270:9
[INFO] [stdout]     |
[INFO] [stdout] 270 |     use std::u16;
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::u16`
[INFO] [stdout]    --> src/io/mod.rs:280:9
[INFO] [stdout]     |
[INFO] [stdout] 280 |     use std::u16;
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead
[INFO] [stdout]   --> src/gba/mod.rs:80:51
[INFO] [stdout]    |
[INFO] [stdout] 80 |             let mut gba: Box<Gba> = Box::new(mem::uninitialized());
[INFO] [stdout]    |                                                   ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead
[INFO] [stdout]   --> src/gba/save_state.rs:82:54
[INFO] [stdout]    |
[INFO] [stdout] 82 |                     let mut gba: Gba<'static> = mem::uninitialized();
[INFO] [stdout]    |                                                      ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/mmu/gba/mod.rs:154:57
[INFO] [stdout]     |
[INFO] [stdout] 154 |     pub fn get_range(&self, addr: u32) -> Option<(u32, &Mmu)> {
[INFO] [stdout]     |                                                         ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]     = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 154 |     pub fn get_range(&self, addr: u32) -> Option<(u32, &dyn Mmu)> {
[INFO] [stdout]     |                                                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/mmu/gba/mod.rs:173:69
[INFO] [stdout]     |
[INFO] [stdout] 173 |     pub fn get_range_mut(&mut self, addr: u32) -> Option<(u32, &mut Mmu)> {
[INFO] [stdout]     |                                                                     ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 173 |     pub fn get_range_mut(&mut self, addr: u32) -> Option<(u32, &mut dyn Mmu)> {
[INFO] [stdout]     |                                                                     +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead
[INFO] [stdout]   --> src/gba/mod.rs:80:51
[INFO] [stdout]    |
[INFO] [stdout] 80 |             let mut gba: Box<Gba> = Box::new(mem::uninitialized());
[INFO] [stdout]    |                                                   ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead
[INFO] [stdout]   --> src/gba/save_state.rs:82:54
[INFO] [stdout]    |
[INFO] [stdout] 82 |                     let mut gba: Gba<'static> = mem::uninitialized();
[INFO] [stdout]    |                                                      ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred
[INFO] [stdout]  --> src/test.rs:1:23
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::sync::{Once, ONCE_INIT};
[INFO] [stdout]   |                       ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred
[INFO] [stdout]  --> src/test.rs:5:21
[INFO] [stdout]   |
[INFO] [stdout] 5 | static INIT: Once = ONCE_INIT;
[INFO] [stdout]   |                     ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: replace the use of the deprecated constant
[INFO] [stdout]   |
[INFO] [stdout] 5 | static INIT: Once = Once::new();
[INFO] [stdout]   |                     ~~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/mmu/gba/mod.rs:154:57
[INFO] [stdout]     |
[INFO] [stdout] 154 |     pub fn get_range(&self, addr: u32) -> Option<(u32, &Mmu)> {
[INFO] [stdout]     |                                                         ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]     = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 154 |     pub fn get_range(&self, addr: u32) -> Option<(u32, &dyn Mmu)> {
[INFO] [stdout]     |                                                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/mmu/gba/mod.rs:173:69
[INFO] [stdout]     |
[INFO] [stdout] 173 |     pub fn get_range_mut(&mut self, addr: u32) -> Option<(u32, &mut Mmu)> {
[INFO] [stdout]     |                                                                     ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 173 |     pub fn get_range_mut(&mut self, addr: u32) -> Option<(u32, &mut dyn Mmu)> {
[INFO] [stdout]     |                                                                     +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stdout]    --> src/main.rs:100:41
[INFO] [stdout]     |
[INFO] [stdout] 100 |                     Err(err) => Err(err.description().to_string()),
[INFO] [stdout]     |                                         ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stdout]    --> src/main.rs:100:41
[INFO] [stdout]     |
[INFO] [stdout] 100 |                     Err(err) => Err(err.description().to_string()),
[INFO] [stdout]     |                                         ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `mask_match` is never used
[INFO] [stdout]   --> src/bit_util.rs:10:8
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub fn mask_match(val: u32, mask: u32, test: u32) -> bool {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `set` is never used
[INFO] [stdout]   --> src/bit_util.rs:15:8
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub fn set(base: u32, off: u8, len: u8, val: u32) -> u32 {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `shift_lsl` is never used
[INFO] [stdout]   --> src/bit_util.rs:36:8
[INFO] [stdout]    |
[INFO] [stdout] 36 | pub fn shift_lsl(val: u32, rot: u32) -> (u32, u32) {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `shift_lsr` is never used
[INFO] [stdout]   --> src/bit_util.rs:45:8
[INFO] [stdout]    |
[INFO] [stdout] 45 | pub fn shift_lsr(val: u32, rot: u32) -> (u32, u32) {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `shift_asr` is never used
[INFO] [stdout]   --> src/bit_util.rs:55:8
[INFO] [stdout]    |
[INFO] [stdout] 55 | pub fn shift_asr(val: u32, rot: u32) -> (u32, u32) {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `shift_ror` is never used
[INFO] [stdout]   --> src/bit_util.rs:64:8
[INFO] [stdout]    |
[INFO] [stdout] 64 | pub fn shift_ror(val: u32, rot: u32) -> (u32, u32) {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_pos` is never used
[INFO] [stdout]   --> src/bit_util.rs:72:8
[INFO] [stdout]    |
[INFO] [stdout] 72 | pub fn is_pos(val: u32) -> bool {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_neg` is never used
[INFO] [stdout]   --> src/bit_util.rs:77:8
[INFO] [stdout]    |
[INFO] [stdout] 77 | pub fn is_neg(val: u32) -> bool {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `add_flags` is never used
[INFO] [stdout]   --> src/bit_util.rs:83:8
[INFO] [stdout]    |
[INFO] [stdout] 83 | pub fn add_flags(lhs: u32, rhs: u32, carry: u32) -> (u32, u32, u32) {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `sub_flags` is never used
[INFO] [stdout]   --> src/bit_util.rs:99:8
[INFO] [stdout]    |
[INFO] [stdout] 99 | pub fn sub_flags(lhs: u32, rhs: u32, carry: u32) -> (u32, u32, u32) {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `combine64` is never used
[INFO] [stdout]    --> src/bit_util.rs:115:8
[INFO] [stdout]     |
[INFO] [stdout] 115 | pub fn combine64(hi: u32, lo: u32) -> u64 {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `split64` is never used
[INFO] [stdout]    --> src/bit_util.rs:122:8
[INFO] [stdout]     |
[INFO] [stdout] 122 | pub fn split64(quad: u64) -> (u32, u32) {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `SoundFifo` is never constructed
[INFO] [stdout]   --> src/io/dma.rs:31:5
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub enum Trigger {
[INFO] [stdout]    |          ------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 31 |     SoundFifo,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Trigger` 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: field `io` is never read
[INFO] [stdout]   --> src/io/spu/mod.rs:24:5
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub struct Spu<'a> {
[INFO] [stdout]    |            --- field in this struct
[INFO] [stdout] 24 |     io: Shared<IoReg<'a>>,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new_with_data` is never used
[INFO] [stdout]   --> src/mmu/ram.rs:18:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | impl Ram {
[INFO] [stdout]    | -------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 18 |     pub fn new_with_data(size: usize, data: &[u8]) -> Ram {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]  --> src/cpu.rs:8:10
[INFO] [stdout]   |
[INFO] [stdout] 8 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]   |          ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_Cpu`
[INFO] [stdout]   = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]   = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]   = note: requested on the command line with `-D non-local-definitions`
[INFO] [stdout]   = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]  --> src/cpu.rs:8:21
[INFO] [stdout]   |
[INFO] [stdout] 8 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]   |                     ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_Cpu`
[INFO] [stdout]   = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]   = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]   = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/io/mod.rs:28:10
[INFO] [stdout]    |
[INFO] [stdout] 28 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]    |          ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_IoReg`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/io/mod.rs:28:21
[INFO] [stdout]    |
[INFO] [stdout] 28 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]    |                     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_IoReg`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/io/dma.rs:11:32
[INFO] [stdout]    |
[INFO] [stdout] 11 | #[derive(Copy, Clone, Default, Serialize, Deserialize)]
[INFO] [stdout]    |                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_Dma`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/io/dma.rs:11:43
[INFO] [stdout]    |
[INFO] [stdout] 11 | #[derive(Copy, Clone, Default, Serialize, Deserialize)]
[INFO] [stdout]    |                                           ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_Dma`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/io/dma.rs:20:32
[INFO] [stdout]    |
[INFO] [stdout] 20 | #[derive(Copy, Clone, Default, Serialize, Deserialize)]
[INFO] [stdout]    |                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_DmaCh`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/io/dma.rs:20:43
[INFO] [stdout]    |
[INFO] [stdout] 20 | #[derive(Copy, Clone, Default, Serialize, Deserialize)]
[INFO] [stdout]    |                                           ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_DmaCh`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/io/ppu/mod.rs:23:10
[INFO] [stdout]    |
[INFO] [stdout] 23 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]    |          ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_Ppu`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/io/ppu/mod.rs:23:21
[INFO] [stdout]    |
[INFO] [stdout] 23 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]    |                     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_Ppu`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/io/ppu/render/mod.rs:80:39
[INFO] [stdout]    |
[INFO] [stdout] 80 | #[derive(Default, Copy, Clone, Debug, Serialize, Deserialize)]
[INFO] [stdout]    |                                       ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_BgRef`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/io/ppu/render/mod.rs:80:50
[INFO] [stdout]    |
[INFO] [stdout] 80 | #[derive(Default, Copy, Clone, Debug, Serialize, Deserialize)]
[INFO] [stdout]    |                                                  ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_BgRef`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/io/timer.rs:10:32
[INFO] [stdout]    |
[INFO] [stdout] 10 | #[derive(Copy, Clone, Default, Serialize, Deserialize)]
[INFO] [stdout]    |                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_Timers`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/io/timer.rs:10:43
[INFO] [stdout]    |
[INFO] [stdout] 10 | #[derive(Copy, Clone, Default, Serialize, Deserialize)]
[INFO] [stdout]    |                                           ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_Timers`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]    --> src/mmu/gba/mod.rs:109:10
[INFO] [stdout]     |
[INFO] [stdout] 109 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]     |          ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_Gba`
[INFO] [stdout]     = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]     = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]     = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]    --> src/mmu/gba/mod.rs:109:21
[INFO] [stdout]     |
[INFO] [stdout] 109 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]     |                     ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_Gba`
[INFO] [stdout]     = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]     = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]     = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/mmu/gba/save/eeprom.rs:17:10
[INFO] [stdout]    |
[INFO] [stdout] 17 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]    |          ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_Eeprom`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/mmu/gba/save/eeprom.rs:17:21
[INFO] [stdout]    |
[INFO] [stdout] 17 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]    |                     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_Eeprom`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/mmu/gba/save/eeprom.rs:25:10
[INFO] [stdout]    |
[INFO] [stdout] 25 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]    |          ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_EepromInner`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/mmu/gba/save/eeprom.rs:25:21
[INFO] [stdout]    |
[INFO] [stdout] 25 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]    |                     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_EepromInner`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/mmu/gba/save/eeprom.rs:38:41
[INFO] [stdout]    |
[INFO] [stdout] 38 | #[derive(Copy, Clone, Debug, PartialEq, Serialize, Deserialize)]
[INFO] [stdout]    |                                         ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_State`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/mmu/gba/save/eeprom.rs:38:52
[INFO] [stdout]    |
[INFO] [stdout] 38 | #[derive(Copy, Clone, Debug, PartialEq, Serialize, Deserialize)]
[INFO] [stdout]    |                                                    ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_State`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]  --> src/mmu/ram.rs:6:10
[INFO] [stdout]   |
[INFO] [stdout] 6 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]   |          ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_Ram`
[INFO] [stdout]   = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]   = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]   = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]  --> src/mmu/ram.rs:6:21
[INFO] [stdout]   |
[INFO] [stdout] 6 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]   |                     ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_Ram`
[INFO] [stdout]   = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]   = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]   = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the type `gba::Gba<'_>` does not permit being left uninitialized
[INFO] [stdout]   --> src/gba/mod.rs:80:46
[INFO] [stdout]    |
[INFO] [stdout] 80 |             let mut gba: Box<Gba> = Box::new(mem::uninitialized());
[INFO] [stdout]    |                                              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |                                              |
[INFO] [stdout]    |                                              this code causes undefined behavior when executed
[INFO] [stdout]    |                                              help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
[INFO] [stdout]    |
[INFO] [stdout] note: in this struct field
[INFO] [stdout]   --> src/gba/mod.rs:61:5
[INFO] [stdout]    |
[INFO] [stdout] 61 |     opts: Options,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] note: booleans must be either `true` or `false` (in this struct field)
[INFO] [stdout]   --> src/gba/mod.rs:40:5
[INFO] [stdout]    |
[INFO] [stdout] 40 |     pub fps_limit: bool,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    = note: `#[warn(invalid_value)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the type `gba::Gba<'_>` does not permit being left uninitialized
[INFO] [stdout]   --> src/gba/save_state.rs:82:49
[INFO] [stdout]    |
[INFO] [stdout] 82 |                     let mut gba: Gba<'static> = mem::uninitialized();
[INFO] [stdout]    |                                                 ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |                                                 |
[INFO] [stdout]    |                                                 this code causes undefined behavior when executed
[INFO] [stdout]    |                                                 help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
[INFO] [stdout]    |
[INFO] [stdout] note: in this struct field
[INFO] [stdout]   --> src/gba/mod.rs:61:5
[INFO] [stdout]    |
[INFO] [stdout] 61 |     opts: Options,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] note: booleans must be either `true` or `false` (in this struct field)
[INFO] [stdout]   --> src/gba/mod.rs:40:5
[INFO] [stdout]    |
[INFO] [stdout] 40 |     pub fps_limit: bool,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 24 previous errors; 27 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `gba-rs` (bin "gba-rs") due to 25 previous errors; 27 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: function `mask_match` is never used
[INFO] [stdout]   --> src/bit_util.rs:10:8
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub fn mask_match(val: u32, mask: u32, test: u32) -> bool {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `set` is never used
[INFO] [stdout]   --> src/bit_util.rs:15:8
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub fn set(base: u32, off: u8, len: u8, val: u32) -> u32 {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `shift_asr` is never used
[INFO] [stdout]   --> src/bit_util.rs:55:8
[INFO] [stdout]    |
[INFO] [stdout] 55 | pub fn shift_asr(val: u32, rot: u32) -> (u32, u32) {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_pos` is never used
[INFO] [stdout]   --> src/bit_util.rs:72:8
[INFO] [stdout]    |
[INFO] [stdout] 72 | pub fn is_pos(val: u32) -> bool {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_neg` is never used
[INFO] [stdout]   --> src/bit_util.rs:77:8
[INFO] [stdout]    |
[INFO] [stdout] 77 | pub fn is_neg(val: u32) -> bool {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `add_flags` is never used
[INFO] [stdout]   --> src/bit_util.rs:83:8
[INFO] [stdout]    |
[INFO] [stdout] 83 | pub fn add_flags(lhs: u32, rhs: u32, carry: u32) -> (u32, u32, u32) {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `sub_flags` is never used
[INFO] [stdout]   --> src/bit_util.rs:99:8
[INFO] [stdout]    |
[INFO] [stdout] 99 | pub fn sub_flags(lhs: u32, rhs: u32, carry: u32) -> (u32, u32, u32) {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `combine64` is never used
[INFO] [stdout]    --> src/bit_util.rs:115:8
[INFO] [stdout]     |
[INFO] [stdout] 115 | pub fn combine64(hi: u32, lo: u32) -> u64 {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `split64` is never used
[INFO] [stdout]    --> src/bit_util.rs:122:8
[INFO] [stdout]     |
[INFO] [stdout] 122 | pub fn split64(quad: u64) -> (u32, u32) {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `SoundFifo` is never constructed
[INFO] [stdout]   --> src/io/dma.rs:31:5
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub enum Trigger {
[INFO] [stdout]    |          ------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 31 |     SoundFifo,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Trigger` 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: field `io` is never read
[INFO] [stdout]   --> src/io/spu/mod.rs:24:5
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub struct Spu<'a> {
[INFO] [stdout]    |            --- field in this struct
[INFO] [stdout] 24 |     io: Shared<IoReg<'a>>,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new_with_data` is never used
[INFO] [stdout]   --> src/mmu/ram.rs:18:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | impl Ram {
[INFO] [stdout]    | -------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 18 |     pub fn new_with_data(size: usize, data: &[u8]) -> Ram {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `INIT` is never used
[INFO] [stdout]  --> src/test.rs:5:8
[INFO] [stdout]   |
[INFO] [stdout] 5 | static INIT: Once = ONCE_INIT;
[INFO] [stdout]   |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `setup` is never used
[INFO] [stdout]  --> src/test.rs:7:8
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub fn setup() {
[INFO] [stdout]   |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]  --> src/cpu.rs:8:10
[INFO] [stdout]   |
[INFO] [stdout] 8 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]   |          ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_Cpu`
[INFO] [stdout]   = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]   = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]   = note: requested on the command line with `-D non-local-definitions`
[INFO] [stdout]   = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]  --> src/cpu.rs:8:21
[INFO] [stdout]   |
[INFO] [stdout] 8 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]   |                     ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_Cpu`
[INFO] [stdout]   = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]   = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]   = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/io/mod.rs:28:10
[INFO] [stdout]    |
[INFO] [stdout] 28 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]    |          ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_IoReg`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/io/mod.rs:28:21
[INFO] [stdout]    |
[INFO] [stdout] 28 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]    |                     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_IoReg`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/io/dma.rs:11:32
[INFO] [stdout]    |
[INFO] [stdout] 11 | #[derive(Copy, Clone, Default, Serialize, Deserialize)]
[INFO] [stdout]    |                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_Dma`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/io/dma.rs:11:43
[INFO] [stdout]    |
[INFO] [stdout] 11 | #[derive(Copy, Clone, Default, Serialize, Deserialize)]
[INFO] [stdout]    |                                           ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_Dma`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/io/dma.rs:20:32
[INFO] [stdout]    |
[INFO] [stdout] 20 | #[derive(Copy, Clone, Default, Serialize, Deserialize)]
[INFO] [stdout]    |                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_DmaCh`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/io/dma.rs:20:43
[INFO] [stdout]    |
[INFO] [stdout] 20 | #[derive(Copy, Clone, Default, Serialize, Deserialize)]
[INFO] [stdout]    |                                           ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_DmaCh`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/io/ppu/mod.rs:23:10
[INFO] [stdout]    |
[INFO] [stdout] 23 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]    |          ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_Ppu`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/io/ppu/mod.rs:23:21
[INFO] [stdout]    |
[INFO] [stdout] 23 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]    |                     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_Ppu`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/io/ppu/render/mod.rs:80:39
[INFO] [stdout]    |
[INFO] [stdout] 80 | #[derive(Default, Copy, Clone, Debug, Serialize, Deserialize)]
[INFO] [stdout]    |                                       ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_BgRef`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/io/ppu/render/mod.rs:80:50
[INFO] [stdout]    |
[INFO] [stdout] 80 | #[derive(Default, Copy, Clone, Debug, Serialize, Deserialize)]
[INFO] [stdout]    |                                                  ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_BgRef`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/io/timer.rs:10:32
[INFO] [stdout]    |
[INFO] [stdout] 10 | #[derive(Copy, Clone, Default, Serialize, Deserialize)]
[INFO] [stdout]    |                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_Timers`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/io/timer.rs:10:43
[INFO] [stdout]    |
[INFO] [stdout] 10 | #[derive(Copy, Clone, Default, Serialize, Deserialize)]
[INFO] [stdout]    |                                           ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_Timers`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]    --> src/mmu/gba/mod.rs:109:10
[INFO] [stdout]     |
[INFO] [stdout] 109 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]     |          ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_Gba`
[INFO] [stdout]     = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]     = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]     = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]    --> src/mmu/gba/mod.rs:109:21
[INFO] [stdout]     |
[INFO] [stdout] 109 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]     |                     ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_Gba`
[INFO] [stdout]     = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]     = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]     = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/mmu/gba/save/eeprom.rs:17:10
[INFO] [stdout]    |
[INFO] [stdout] 17 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]    |          ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_Eeprom`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/mmu/gba/save/eeprom.rs:17:21
[INFO] [stdout]    |
[INFO] [stdout] 17 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]    |                     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_Eeprom`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/mmu/gba/save/eeprom.rs:25:10
[INFO] [stdout]    |
[INFO] [stdout] 25 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]    |          ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_EepromInner`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/mmu/gba/save/eeprom.rs:25:21
[INFO] [stdout]    |
[INFO] [stdout] 25 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]    |                     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_EepromInner`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/mmu/gba/save/eeprom.rs:38:41
[INFO] [stdout]    |
[INFO] [stdout] 38 | #[derive(Copy, Clone, Debug, PartialEq, Serialize, Deserialize)]
[INFO] [stdout]    |                                         ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_State`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]   --> src/mmu/gba/save/eeprom.rs:38:52
[INFO] [stdout]    |
[INFO] [stdout] 38 | #[derive(Copy, Clone, Debug, PartialEq, Serialize, Deserialize)]
[INFO] [stdout]    |                                                    ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_State`
[INFO] [stdout]    = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]    = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]    = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]  --> src/mmu/ram.rs:6:10
[INFO] [stdout]   |
[INFO] [stdout] 6 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]   |          ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_Ram`
[INFO] [stdout]   = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]   = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]   = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation
[INFO] [stdout]  --> src/mmu/ram.rs:6:21
[INFO] [stdout]   |
[INFO] [stdout] 6 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]   |                     ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_Ram`
[INFO] [stdout]   = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block
[INFO] [stdout]   = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
[INFO] [stdout]   = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the type `gba::Gba<'_>` does not permit being left uninitialized
[INFO] [stdout]   --> src/gba/mod.rs:80:46
[INFO] [stdout]    |
[INFO] [stdout] 80 |             let mut gba: Box<Gba> = Box::new(mem::uninitialized());
[INFO] [stdout]    |                                              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |                                              |
[INFO] [stdout]    |                                              this code causes undefined behavior when executed
[INFO] [stdout]    |                                              help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
[INFO] [stdout]    |
[INFO] [stdout] note: in this struct field
[INFO] [stdout]   --> src/gba/mod.rs:61:5
[INFO] [stdout]    |
[INFO] [stdout] 61 |     opts: Options,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] note: booleans must be either `true` or `false` (in this struct field)
[INFO] [stdout]   --> src/gba/mod.rs:40:5
[INFO] [stdout]    |
[INFO] [stdout] 40 |     pub fps_limit: bool,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    = note: `#[warn(invalid_value)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the type `gba::Gba<'_>` does not permit being left uninitialized
[INFO] [stdout]   --> src/gba/save_state.rs:82:49
[INFO] [stdout]    |
[INFO] [stdout] 82 |                     let mut gba: Gba<'static> = mem::uninitialized();
[INFO] [stdout]    |                                                 ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |                                                 |
[INFO] [stdout]    |                                                 this code causes undefined behavior when executed
[INFO] [stdout]    |                                                 help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
[INFO] [stdout]    |
[INFO] [stdout] note: in this struct field
[INFO] [stdout]   --> src/gba/mod.rs:61:5
[INFO] [stdout]    |
[INFO] [stdout] 61 |     opts: Options,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] note: booleans must be either `true` or `false` (in this struct field)
[INFO] [stdout]   --> src/gba/mod.rs:40:5
[INFO] [stdout]    |
[INFO] [stdout] 40 |     pub fps_limit: bool,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 24 previous errors; 28 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `gba-rs` (bin "gba-rs" test) due to 25 previous errors; 28 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "a736cb483870548e926942dc7819fb8b0050203777a20616d728d3294cc21194", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a736cb483870548e926942dc7819fb8b0050203777a20616d728d3294cc21194", kill_on_drop: false }`
[INFO] [stdout] a736cb483870548e926942dc7819fb8b0050203777a20616d728d3294cc21194
