[INFO] cloning repository https://github.com/pokemium/toysnes [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pokemium/toysnes" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpokemium%2Ftoysnes", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpokemium%2Ftoysnes'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] db199e000d930768f4052b7e9e92a083e853c05e [INFO] checking pokemium/toysnes against try#6db1a6a7ebb2ad243051f3ff949f987dd70cde2b+rustflags=-Dreturn-local-variable-ptr for pr-134218 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpokemium%2Ftoysnes" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/pokemium/toysnes on toolchain 6db1a6a7ebb2ad243051f3ff949f987dd70cde2b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+6db1a6a7ebb2ad243051f3ff949f987dd70cde2b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/pokemium/toysnes [INFO] finished tweaking git repo https://github.com/pokemium/toysnes [INFO] tweaked toml for git repo https://github.com/pokemium/toysnes written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/pokemium/toysnes 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" "+6db1a6a7ebb2ad243051f3ff949f987dd70cde2b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+6db1a6a7ebb2ad243051f3ff949f987dd70cde2b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 06dbd894d28035486b1a91cef061877333d0843b6208cbe8156cacd6aa4b0384 [INFO] running `Command { std: "docker" "start" "-a" "06dbd894d28035486b1a91cef061877333d0843b6208cbe8156cacd6aa4b0384", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "06dbd894d28035486b1a91cef061877333d0843b6208cbe8156cacd6aa4b0384", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06dbd894d28035486b1a91cef061877333d0843b6208cbe8156cacd6aa4b0384", kill_on_drop: false }` [INFO] [stdout] 06dbd894d28035486b1a91cef061877333d0843b6208cbe8156cacd6aa4b0384 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dreturn-local-variable-ptr" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+6db1a6a7ebb2ad243051f3ff949f987dd70cde2b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c743db6ee27b687ac147654311493ced2d6d626660ff10b2171be1ac39c9fe5d [INFO] running `Command { std: "docker" "start" "-a" "c743db6ee27b687ac147654311493ced2d6d626660ff10b2171be1ac39c9fe5d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking once_cell v1.10.0 [INFO] [stderr] Compiling itertools v0.9.0 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling boolean_expression v0.3.11 [INFO] [stderr] Compiling modular-bitfield-impl v0.11.2 [INFO] [stderr] Compiling bitmatch v0.1.1 [INFO] [stderr] Checking modular-bitfield v0.11.2 [INFO] [stderr] Checking bytesize v1.1.0 [INFO] [stderr] Checking toysnes v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/constants.rs:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | pub const ROM_SIZE: usize = (MAX_ROM_SIZE + 0x200 + 0x8000); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 8 - pub const ROM_SIZE: usize = (MAX_ROM_SIZE + 0x200 + 0x8000); [INFO] [stdout] 8 + pub const ROM_SIZE: usize = MAX_ROM_SIZE + 0x200 + 0x8000; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `load8` [INFO] [stdout] --> src/sfc/cpu/instruction.rs:97:43 [INFO] [stdout] | [INFO] [stdout] 97 | use crate::sfc::{cpu::cycles, load16, load8}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/constants.rs:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | pub const ROM_SIZE: usize = (MAX_ROM_SIZE + 0x200 + 0x8000); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 8 - pub const ROM_SIZE: usize = (MAX_ROM_SIZE + 0x200 + 0x8000); [INFO] [stdout] 8 + pub const ROM_SIZE: usize = MAX_ROM_SIZE + 0x200 + 0x8000; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `load8` [INFO] [stdout] --> src/sfc/cpu/instruction.rs:97:43 [INFO] [stdout] | [INFO] [stdout] 97 | use crate::sfc::{cpu::cycles, load16, load8}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/sfc/mod.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 61 | todo!(); [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 62 | return 0; [INFO] [stdout] | ^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/sfc/mod.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 61 | todo!(); [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 62 | return 0; [INFO] [stdout] | ^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/sfc/cpu/instruction.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn op00(c: &mut Cpu, _: u8) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/sfc/cpu/instruction.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn op02(c: &mut Cpu, _: u8) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/sfc/cpu/io.rs:5:32 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn read_io8(&mut self, addr: u16) -> u8 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/sfc/cpu/io.rs:10:33 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn write_io8(&mut self, addr: u16, val: u8) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/sfc/cpu/io.rs:10:44 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn write_io8(&mut self, addr: u16, val: u8) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/sfc/cpu/instruction.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn op00(c: &mut Cpu, _: u8) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/sfc/cpu/instruction.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn op02(c: &mut Cpu, _: u8) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/sfc/cpu/mod.rs:135:41 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn set_active_region(&mut self, addr: u32) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/sfc/ppu/mod.rs:44:29 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn read8(&mut self, addr: u16) -> u8 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/sfc/ppu/mod.rs:49:30 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn write8(&mut self, addr: u16, val: u8) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/sfc/ppu/mod.rs:49:41 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn write8(&mut self, addr: u16, val: u8) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cycles` [INFO] [stdout] --> src/sfc/mod.rs:44:34 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn load8(bank: u8, ofs: u16, cycles: Option<&mut i64>) -> u8 { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cycles` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/sfc/cpu/io.rs:5:32 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn read_io8(&mut self, addr: u16) -> u8 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/sfc/cpu/io.rs:10:33 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn write_io8(&mut self, addr: u16, val: u8) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/sfc/cpu/io.rs:10:44 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn write_io8(&mut self, addr: u16, val: u8) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bank` [INFO] [stdout] --> src/sfc/mod.rs:70:15 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn load16(bank: u8, ofs: u16, cycles: Option<&mut i64>) -> u16 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bank` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ofs` [INFO] [stdout] --> src/sfc/mod.rs:70:25 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn load16(bank: u8, ofs: u16, cycles: Option<&mut i64>) -> u16 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ofs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cycles` [INFO] [stdout] --> src/sfc/mod.rs:70:35 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn load16(bank: u8, ofs: u16, cycles: Option<&mut i64>) -> u16 { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cycles` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bank` [INFO] [stdout] --> src/sfc/mod.rs:75:11 [INFO] [stdout] | [INFO] [stdout] 75 | fn store8(bank: u8, addr: u16, val: u8, cycles: Option<&mut i64>) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bank` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/sfc/mod.rs:75:21 [INFO] [stdout] | [INFO] [stdout] 75 | fn store8(bank: u8, addr: u16, val: u8, cycles: Option<&mut i64>) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/sfc/mod.rs:75:32 [INFO] [stdout] | [INFO] [stdout] 75 | fn store8(bank: u8, addr: u16, val: u8, cycles: Option<&mut i64>) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cycles` [INFO] [stdout] --> src/sfc/mod.rs:75:41 [INFO] [stdout] | [INFO] [stdout] 75 | fn store8(bank: u8, addr: u16, val: u8, cycles: Option<&mut i64>) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cycles` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bank` [INFO] [stdout] --> src/sfc/mod.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | fn store16(bank: u8, addr: u16, val: u16, cycles: Option<&mut i64>) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bank` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/sfc/mod.rs:80:22 [INFO] [stdout] | [INFO] [stdout] 80 | fn store16(bank: u8, addr: u16, val: u16, cycles: Option<&mut i64>) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/sfc/mod.rs:80:33 [INFO] [stdout] | [INFO] [stdout] 80 | fn store16(bank: u8, addr: u16, val: u16, cycles: Option<&mut i64>) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cycles` [INFO] [stdout] --> src/sfc/mod.rs:80:43 [INFO] [stdout] | [INFO] [stdout] 80 | fn store16(bank: u8, addr: u16, val: u16, cycles: Option<&mut i64>) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cycles` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get` is never used [INFO] [stdout] --> src/scheduler/mod.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn get() -> &'static Scheduler { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cycles` is never used [INFO] [stdout] --> src/scheduler/mod.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn cycles() -> i64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reschedule` is never used [INFO] [stdout] --> src/scheduler/mod.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn reschedule(e: &mut Event, after: i64) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `schedule_abs` is never used [INFO] [stdout] --> src/scheduler/mod.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn schedule_abs(e: &mut Event, when: i64) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deschedule` is never used [INFO] [stdout] --> src/scheduler/mod.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn deschedule(e: &mut Event) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cartridge_info` is never used [INFO] [stdout] --> src/sfc/mod.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl SuperFamicom { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn cartridge_info(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `rom` and `sram` are never read [INFO] [stdout] --> src/sfc/cartridge/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Cartridge { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | pub rom: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] 12 | pub sram: Box<[u8; SRAM_SIZE]>, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `map_mode` and `chipset` are never read [INFO] [stdout] --> src/sfc/cartridge/header.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Header { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | pub map_mode: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub chipset: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Header` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `wram` is never read [INFO] [stdout] --> src/sfc/cpu/mod.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Cpu { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 19 | pub cartridge: cartridge::Cartridge, [INFO] [stdout] 20 | pub wram: Box<[u8; WRAM_SIZE]>, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_active_region` is never used [INFO] [stdout] --> src/sfc/cpu/mod.rs:135:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl Cpu { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn set_active_region(&mut self, addr: u32) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `absolute_y`, `far`, and `far_y` are never used [INFO] [stdout] --> src/sfc/cpu/addr.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl Cpu { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn absolute_y(&mut self) -> (u8, u16) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn far(&mut self) -> (u8, u16) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn far_y(&mut self) -> (u8, u16) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `m0` is never used [INFO] [stdout] --> src/sfc/cpu/instruction.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn m0(c: &mut Cpu, _: u8) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `m1` is never used [INFO] [stdout] --> src/sfc/cpu/instruction.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn m1(c: &mut Cpu, _: u8) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `m0` is never used [INFO] [stdout] --> src/sfc/cpu/instruction.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn m0(c: &mut Cpu, _: u8) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `m0` is never used [INFO] [stdout] --> src/sfc/cpu/instruction.rs:132:12 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn m0(c: &mut Cpu, _: u8) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `m1` is never used [INFO] [stdout] --> src/sfc/cpu/instruction.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn m1(c: &mut Cpu, _: u8) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `m0` is never used [INFO] [stdout] --> src/sfc/cpu/instruction.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn m0(c: &mut Cpu, _: u8) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `m1` is never used [INFO] [stdout] --> src/sfc/cpu/instruction.rs:173:12 [INFO] [stdout] | [INFO] [stdout] 173 | pub fn m1(c: &mut Cpu, _: u8) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `m0` is never used [INFO] [stdout] --> src/sfc/cpu/instruction.rs:207:12 [INFO] [stdout] | [INFO] [stdout] 207 | pub fn m0(c: &mut Cpu, _: u8) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write_io8` is never used [INFO] [stdout] --> src/sfc/cpu/io.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Cpu { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 10 | pub fn write_io8(&mut self, addr: u16, val: u8) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `y` and `emulation` are never read [INFO] [stdout] --> src/sfc/cpu/register.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Register { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | pub y: u16, [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub emulation: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `word` and `set` are never used [INFO] [stdout] --> src/sfc/cpu/register.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl PC { [INFO] [stdout] | ------- methods in this implementation [INFO] [stdout] 39 | pub fn word(&self) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn set(&mut self, bank: u8, offset: u16) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `in_6502_emulation` is never used [INFO] [stdout] --> src/sfc/cpu/register.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 49 | impl Register { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 64 | fn in_6502_emulation(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `into_bytes` and `from_bytes` are never used [INFO] [stdout] --> src/sfc/cpu/register.rs:70:1 [INFO] [stdout] | [INFO] [stdout] 70 | pub struct Psr { [INFO] [stdout] | ^------------- [INFO] [stdout] | | [INFO] [stdout] | _associated items in this implementation [INFO] [stdout] | | [INFO] [stdout] 71 | | /// carry [INFO] [stdout] 72 | | pub c: B1, [INFO] [stdout] ... | [INFO] [stdout] 94 | | pub n: B1, [INFO] [stdout] 95 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `c`, `z`, `i`, `d`, `v`, and `n` are never used [INFO] [stdout] --> src/sfc/cpu/register.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 70 | pub struct Psr { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 71 | /// carry [INFO] [stdout] 72 | pub c: B1, [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub z: B1, [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub i: B1, [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub d: B1, [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub v: B1, [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub n: B1, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `vram` is never read [INFO] [stdout] --> src/sfc/ppu/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Ppu { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 7 | pub vram: Box<[u8; VRAM_SIZE]>, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get` is never used [INFO] [stdout] --> src/sfc/ppu/mod.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn get() -> &'static Ppu { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `read8` and `write8` are never used [INFO] [stdout] --> src/sfc/ppu/mod.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl Ppu { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 43 | /// This func is inspired by snes9x's S9xGetPPU [INFO] [stdout] 44 | pub fn read8(&mut self, addr: u16) -> u8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn write8(&mut self, addr: u16, val: u8) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/sfc/cpu/mod.rs:135:41 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn set_active_region(&mut self, addr: u32) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/sfc/ppu/mod.rs:44:29 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn read8(&mut self, addr: u16) -> u8 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/sfc/ppu/mod.rs:49:30 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn write8(&mut self, addr: u16, val: u8) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/sfc/ppu/mod.rs:49:41 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn write8(&mut self, addr: u16, val: u8) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cycles` [INFO] [stdout] --> src/sfc/mod.rs:44:34 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn load8(bank: u8, ofs: u16, cycles: Option<&mut i64>) -> u8 { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cycles` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bank` [INFO] [stdout] --> src/sfc/mod.rs:70:15 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn load16(bank: u8, ofs: u16, cycles: Option<&mut i64>) -> u16 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bank` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ofs` [INFO] [stdout] --> src/sfc/mod.rs:70:25 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn load16(bank: u8, ofs: u16, cycles: Option<&mut i64>) -> u16 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ofs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cycles` [INFO] [stdout] --> src/sfc/mod.rs:70:35 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn load16(bank: u8, ofs: u16, cycles: Option<&mut i64>) -> u16 { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cycles` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/scheduler/mod.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | return unsafe { &SCHEDULER }; [INFO] [stdout] | ^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 28 | return unsafe { &raw const SCHEDULER }; [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/scheduler/mod.rs:32:21 [INFO] [stdout] | [INFO] [stdout] 32 | return unsafe { &mut SCHEDULER }; [INFO] [stdout] | ^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 32 | return unsafe { &raw mut SCHEDULER }; [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/scheduler/mod.rs:48:22 [INFO] [stdout] | [INFO] [stdout] 48 | for event in &SCHEDULER.root { [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 48 | for event in &raw const SCHEDULER.root { [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/scheduler/mod.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | SCHEDULER.root.pop_front(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/scheduler/mod.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | SCHEDULER.root.pop_front(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/scheduler/mod.rs:79:18 [INFO] [stdout] | [INFO] [stdout] 79 | for e in &SCHEDULER.root { [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 79 | for e in &raw const SCHEDULER.root { [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/scheduler/mod.rs:87:25 [INFO] [stdout] | [INFO] [stdout] 87 | let mut split = SCHEDULER.root.split_off(idx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/scheduler/mod.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | SCHEDULER.root.push_back(e); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/scheduler/mod.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | SCHEDULER.root.append(&mut split); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/scheduler/mod.rs:107:18 [INFO] [stdout] | [INFO] [stdout] 107 | for e in &SCHEDULER.root { [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 107 | for e in &raw const SCHEDULER.root { [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/scheduler/mod.rs:114:25 [INFO] [stdout] | [INFO] [stdout] 114 | let mut split = SCHEDULER.root.split_off(idx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/scheduler/mod.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | SCHEDULER.root.append(&mut split); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/sfc/cpu/mod.rs:44:21 [INFO] [stdout] | [INFO] [stdout] 44 | return unsafe { &CPU }; [INFO] [stdout] | ^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 44 | return unsafe { &raw const CPU }; [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/sfc/cpu/mod.rs:48:21 [INFO] [stdout] | [INFO] [stdout] 48 | return unsafe { &mut CPU }; [INFO] [stdout] | ^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 48 | return unsafe { &raw mut CPU }; [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `opA9` should have a snake case name [INFO] [stdout] --> src/sfc/cpu/instruction.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | pub mod opA9 { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `op_a9` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `opAA` should have a snake case name [INFO] [stdout] --> src/sfc/cpu/instruction.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | pub mod opAA {} [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `op_aa` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `opC6` should have a snake case name [INFO] [stdout] --> src/sfc/cpu/instruction.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 183 | pub mod opC6 { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `op_c6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `opD6` should have a snake case name [INFO] [stdout] --> src/sfc/cpu/instruction.rs:203:9 [INFO] [stdout] | [INFO] [stdout] 203 | pub mod opD6 { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `op_d6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `opE6` should have a snake case name [INFO] [stdout] --> src/sfc/cpu/instruction.rs:223:9 [INFO] [stdout] | [INFO] [stdout] 223 | pub mod opE6 { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `op_e6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `opEE` should have a snake case name [INFO] [stdout] --> src/sfc/cpu/instruction.rs:243:9 [INFO] [stdout] | [INFO] [stdout] 243 | pub mod opEE { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `op_ee` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `opFE` should have a snake case name [INFO] [stdout] --> src/sfc/cpu/instruction.rs:263:9 [INFO] [stdout] | [INFO] [stdout] 263 | pub mod opFE { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `op_fe` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bank` [INFO] [stdout] --> src/sfc/mod.rs:75:11 [INFO] [stdout] | [INFO] [stdout] 75 | fn store8(bank: u8, addr: u16, val: u8, cycles: Option<&mut i64>) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bank` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/sfc/mod.rs:75:21 [INFO] [stdout] | [INFO] [stdout] 75 | fn store8(bank: u8, addr: u16, val: u8, cycles: Option<&mut i64>) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/sfc/mod.rs:75:32 [INFO] [stdout] | [INFO] [stdout] 75 | fn store8(bank: u8, addr: u16, val: u8, cycles: Option<&mut i64>) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cycles` [INFO] [stdout] --> src/sfc/mod.rs:75:41 [INFO] [stdout] | [INFO] [stdout] 75 | fn store8(bank: u8, addr: u16, val: u8, cycles: Option<&mut i64>) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cycles` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bank` [INFO] [stdout] --> src/sfc/mod.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | fn store16(bank: u8, addr: u16, val: u16, cycles: Option<&mut i64>) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bank` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/sfc/mod.rs:80:22 [INFO] [stdout] | [INFO] [stdout] 80 | fn store16(bank: u8, addr: u16, val: u16, cycles: Option<&mut i64>) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/sfc/mod.rs:80:33 [INFO] [stdout] | [INFO] [stdout] 80 | fn store16(bank: u8, addr: u16, val: u16, cycles: Option<&mut i64>) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cycles` [INFO] [stdout] --> src/sfc/mod.rs:80:43 [INFO] [stdout] | [INFO] [stdout] 80 | fn store16(bank: u8, addr: u16, val: u16, cycles: Option<&mut i64>) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cycles` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/sfc/ppu/mod.rs:25:21 [INFO] [stdout] | [INFO] [stdout] 25 | return unsafe { &PPU }; [INFO] [stdout] | ^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 25 | return unsafe { &raw const PPU }; [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/sfc/ppu/mod.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | return unsafe { &mut PPU }; [INFO] [stdout] | ^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 29 | return unsafe { &raw mut PPU }; [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get` is never used [INFO] [stdout] --> src/scheduler/mod.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn get() -> &'static Scheduler { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cycles` is never used [INFO] [stdout] --> src/scheduler/mod.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn cycles() -> i64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reschedule` is never used [INFO] [stdout] --> src/scheduler/mod.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn reschedule(e: &mut Event, after: i64) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `schedule_abs` is never used [INFO] [stdout] --> src/scheduler/mod.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn schedule_abs(e: &mut Event, when: i64) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deschedule` is never used [INFO] [stdout] --> src/scheduler/mod.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn deschedule(e: &mut Event) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `cartridge_info` and `unimplemented_opcode` are never used [INFO] [stdout] --> src/sfc/mod.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl SuperFamicom { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn cartridge_info(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn unimplemented_opcode(&self) -> [bool; 256] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `rom` and `sram` are never read [INFO] [stdout] --> src/sfc/cartridge/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Cartridge { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | pub rom: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] 12 | pub sram: Box<[u8; SRAM_SIZE]>, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `map_mode` and `chipset` are never read [INFO] [stdout] --> src/sfc/cartridge/header.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Header { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | pub map_mode: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub chipset: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Header` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `wram` is never read [INFO] [stdout] --> src/sfc/cpu/mod.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Cpu { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 19 | pub cartridge: cartridge::Cartridge, [INFO] [stdout] 20 | pub wram: Box<[u8; WRAM_SIZE]>, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get` is never used [INFO] [stdout] --> src/sfc/cpu/mod.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn get() -> &'static Cpu { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `unimplemented` and `set_active_region` are never used [INFO] [stdout] --> src/sfc/cpu/mod.rs:130:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl Cpu { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 130 | pub fn unimplemented(&self) -> [bool; 256] { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn set_active_region(&mut self, addr: u32) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `absolute_y`, `far`, and `far_y` are never used [INFO] [stdout] --> src/sfc/cpu/addr.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl Cpu { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn absolute_y(&mut self) -> (u8, u16) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn far(&mut self) -> (u8, u16) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn far_y(&mut self) -> (u8, u16) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `m0` is never used [INFO] [stdout] --> src/sfc/cpu/instruction.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn m0(c: &mut Cpu, _: u8) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `m1` is never used [INFO] [stdout] --> src/sfc/cpu/instruction.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn m1(c: &mut Cpu, _: u8) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `m0` is never used [INFO] [stdout] --> src/sfc/cpu/instruction.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn m0(c: &mut Cpu, _: u8) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `m0` is never used [INFO] [stdout] --> src/sfc/cpu/instruction.rs:132:12 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn m0(c: &mut Cpu, _: u8) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `m1` is never used [INFO] [stdout] --> src/sfc/cpu/instruction.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn m1(c: &mut Cpu, _: u8) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `m0` is never used [INFO] [stdout] --> src/sfc/cpu/instruction.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn m0(c: &mut Cpu, _: u8) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `m1` is never used [INFO] [stdout] --> src/sfc/cpu/instruction.rs:173:12 [INFO] [stdout] | [INFO] [stdout] 173 | pub fn m1(c: &mut Cpu, _: u8) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `m0` is never used [INFO] [stdout] --> src/sfc/cpu/instruction.rs:207:12 [INFO] [stdout] | [INFO] [stdout] 207 | pub fn m0(c: &mut Cpu, _: u8) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write_io8` is never used [INFO] [stdout] --> src/sfc/cpu/io.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Cpu { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 10 | pub fn write_io8(&mut self, addr: u16, val: u8) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `y` and `emulation` are never read [INFO] [stdout] --> src/sfc/cpu/register.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Register { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | pub y: u16, [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub emulation: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `word` and `set` are never used [INFO] [stdout] --> src/sfc/cpu/register.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl PC { [INFO] [stdout] | ------- methods in this implementation [INFO] [stdout] 39 | pub fn word(&self) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn set(&mut self, bank: u8, offset: u16) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `in_6502_emulation` is never used [INFO] [stdout] --> src/sfc/cpu/register.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 49 | impl Register { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 64 | fn in_6502_emulation(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `into_bytes` and `from_bytes` are never used [INFO] [stdout] --> src/sfc/cpu/register.rs:70:1 [INFO] [stdout] | [INFO] [stdout] 70 | pub struct Psr { [INFO] [stdout] | ^------------- [INFO] [stdout] | | [INFO] [stdout] | _associated items in this implementation [INFO] [stdout] | | [INFO] [stdout] 71 | | /// carry [INFO] [stdout] 72 | | pub c: B1, [INFO] [stdout] ... | [INFO] [stdout] 94 | | pub n: B1, [INFO] [stdout] 95 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `c`, `z`, `i`, `d`, `v`, and `n` are never used [INFO] [stdout] --> src/sfc/cpu/register.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 70 | pub struct Psr { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 71 | /// carry [INFO] [stdout] 72 | pub c: B1, [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub z: B1, [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub i: B1, [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub d: B1, [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub v: B1, [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub n: B1, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `unimplemented` is never used [INFO] [stdout] --> src/sfc/cpu/table.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl OpcodeTable { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 30 | pub fn unimplemented(&self) -> [bool; 256] { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `vram` is never read [INFO] [stdout] --> src/sfc/ppu/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Ppu { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 7 | pub vram: Box<[u8; VRAM_SIZE]>, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get` is never used [INFO] [stdout] --> src/sfc/ppu/mod.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn get() -> &'static Ppu { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `read8` and `write8` are never used [INFO] [stdout] --> src/sfc/ppu/mod.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl Ppu { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 43 | /// This func is inspired by snes9x's S9xGetPPU [INFO] [stdout] 44 | pub fn read8(&mut self, addr: u16) -> u8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn write8(&mut self, addr: u16, val: u8) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/scheduler/mod.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | return unsafe { &SCHEDULER }; [INFO] [stdout] | ^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 28 | return unsafe { &raw const SCHEDULER }; [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/scheduler/mod.rs:32:21 [INFO] [stdout] | [INFO] [stdout] 32 | return unsafe { &mut SCHEDULER }; [INFO] [stdout] | ^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 32 | return unsafe { &raw mut SCHEDULER }; [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/scheduler/mod.rs:48:22 [INFO] [stdout] | [INFO] [stdout] 48 | for event in &SCHEDULER.root { [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 48 | for event in &raw const SCHEDULER.root { [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/scheduler/mod.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | SCHEDULER.root.pop_front(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/scheduler/mod.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | SCHEDULER.root.pop_front(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/scheduler/mod.rs:79:18 [INFO] [stdout] | [INFO] [stdout] 79 | for e in &SCHEDULER.root { [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 79 | for e in &raw const SCHEDULER.root { [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/scheduler/mod.rs:87:25 [INFO] [stdout] | [INFO] [stdout] 87 | let mut split = SCHEDULER.root.split_off(idx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/scheduler/mod.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | SCHEDULER.root.push_back(e); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/scheduler/mod.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | SCHEDULER.root.append(&mut split); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/scheduler/mod.rs:107:18 [INFO] [stdout] | [INFO] [stdout] 107 | for e in &SCHEDULER.root { [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 107 | for e in &raw const SCHEDULER.root { [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/scheduler/mod.rs:114:25 [INFO] [stdout] | [INFO] [stdout] 114 | let mut split = SCHEDULER.root.split_off(idx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/scheduler/mod.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | SCHEDULER.root.append(&mut split); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/sfc/cpu/mod.rs:44:21 [INFO] [stdout] | [INFO] [stdout] 44 | return unsafe { &CPU }; [INFO] [stdout] | ^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 44 | return unsafe { &raw const CPU }; [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/sfc/cpu/mod.rs:48:21 [INFO] [stdout] | [INFO] [stdout] 48 | return unsafe { &mut CPU }; [INFO] [stdout] | ^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 48 | return unsafe { &raw mut CPU }; [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `opA9` should have a snake case name [INFO] [stdout] --> src/sfc/cpu/instruction.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | pub mod opA9 { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `op_a9` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `opAA` should have a snake case name [INFO] [stdout] --> src/sfc/cpu/instruction.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | pub mod opAA {} [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `op_aa` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `opC6` should have a snake case name [INFO] [stdout] --> src/sfc/cpu/instruction.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 183 | pub mod opC6 { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `op_c6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `opD6` should have a snake case name [INFO] [stdout] --> src/sfc/cpu/instruction.rs:203:9 [INFO] [stdout] | [INFO] [stdout] 203 | pub mod opD6 { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `op_d6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `opE6` should have a snake case name [INFO] [stdout] --> src/sfc/cpu/instruction.rs:223:9 [INFO] [stdout] | [INFO] [stdout] 223 | pub mod opE6 { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `op_e6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `opEE` should have a snake case name [INFO] [stdout] --> src/sfc/cpu/instruction.rs:243:9 [INFO] [stdout] | [INFO] [stdout] 243 | pub mod opEE { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `op_ee` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `opFE` should have a snake case name [INFO] [stdout] --> src/sfc/cpu/instruction.rs:263:9 [INFO] [stdout] | [INFO] [stdout] 263 | pub mod opFE { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `op_fe` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/sfc/ppu/mod.rs:25:21 [INFO] [stdout] | [INFO] [stdout] 25 | return unsafe { &PPU }; [INFO] [stdout] | ^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 25 | return unsafe { &raw const PPU }; [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/sfc/ppu/mod.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | return unsafe { &mut PPU }; [INFO] [stdout] | ^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 29 | return unsafe { &raw mut PPU }; [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.74s [INFO] running `Command { std: "docker" "inspect" "c743db6ee27b687ac147654311493ced2d6d626660ff10b2171be1ac39c9fe5d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c743db6ee27b687ac147654311493ced2d6d626660ff10b2171be1ac39c9fe5d", kill_on_drop: false }` [INFO] [stdout] c743db6ee27b687ac147654311493ced2d6d626660ff10b2171be1ac39c9fe5d