[INFO] cloning repository https://github.com/and00h/ohBoi-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/and00h/ohBoi-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fand00h%2FohBoi-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fand00h%2FohBoi-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0689923911aa939c53ce3fd06674f071387906ea [INFO] checking and00h/ohBoi-rs against master#9ba3d315b4b2bea7485071eaf4b2681320cd2a27 for pr-124592 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fand00h%2FohBoi-rs" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/and00h/ohBoi-rs on toolchain 9ba3d315b4b2bea7485071eaf4b2681320cd2a27 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9ba3d315b4b2bea7485071eaf4b2681320cd2a27" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/and00h/ohBoi-rs [INFO] finished tweaking git repo https://github.com/and00h/ohBoi-rs [INFO] tweaked toml for git repo https://github.com/and00h/ohBoi-rs written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/and00h/ohBoi-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" "+9ba3d315b4b2bea7485071eaf4b2681320cd2a27" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded imgui v0.11.0 [INFO] [stderr] Downloaded bitfield v0.15.0 [INFO] [stderr] Downloaded imgui-glow-renderer v0.11.0 [INFO] [stderr] Downloaded imgui-sdl2-support v0.11.0 [INFO] [stderr] Downloaded imgui-sys v0.11.0 [INFO] [stderr] Downloaded openal-sys v1.16.0 [INFO] [stderr] Downloaded openal v0.2.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+9ba3d315b4b2bea7485071eaf4b2681320cd2a27" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f57152406ccc9c7b73cf524fb1a7bc142f2766839a06231dd36ec28967bd0ee6 [INFO] running `Command { std: "docker" "start" "-a" "f57152406ccc9c7b73cf524fb1a7bc142f2766839a06231dd36ec28967bd0ee6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f57152406ccc9c7b73cf524fb1a7bc142f2766839a06231dd36ec28967bd0ee6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f57152406ccc9c7b73cf524fb1a7bc142f2766839a06231dd36ec28967bd0ee6", kill_on_drop: false }` [INFO] [stdout] f57152406ccc9c7b73cf524fb1a7bc142f2766839a06231dd36ec28967bd0ee6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+9ba3d315b4b2bea7485071eaf4b2681320cd2a27" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8cd5e0806063b85f81a76ea367d67af5982c99747eb267ace3754ef32bd7abe0 [INFO] running `Command { std: "docker" "start" "-a" "8cd5e0806063b85f81a76ea367d67af5982c99747eb267ace3754ef32bd7abe0", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling cc v1.0.95 [INFO] [stderr] Compiling proc-macro2 v1.0.81 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling version-compare v0.0.10 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking chlorine v1.0.10 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking mint v0.5.9 [INFO] [stderr] Compiling sdl2 v0.34.5 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Checking anstyle-query v1.0.2 [INFO] [stderr] Compiling serde v1.0.199 [INFO] [stderr] Checking anstyle v1.0.6 [INFO] [stderr] Checking anstyle-parse v0.2.3 [INFO] [stderr] Compiling serde_json v1.0.116 [INFO] [stderr] Checking clap_lex v0.7.0 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Compiling sdl2-sys v0.34.5 [INFO] [stderr] Checking glow v0.12.3 [INFO] [stderr] Checking ryu v1.0.17 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Checking bitfield v0.15.0 [INFO] [stderr] Checking glow v0.13.1 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Checking anstream v0.6.13 [INFO] [stderr] Checking clap_builder v4.5.2 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling imgui-sys v0.11.0 [INFO] [stderr] Compiling tinyfiledialogs v3.9.1 [INFO] [stderr] Compiling syn v2.0.60 [INFO] [stderr] Checking is-terminal v0.4.12 [INFO] [stderr] Checking openal-sys v1.16.0 [INFO] [stderr] Checking openal v0.2.2 [INFO] [stderr] Checking colored v1.9.4 [INFO] [stderr] Checking parking_lot v0.12.2 [INFO] [stderr] Checking fern v0.6.2 [INFO] [stderr] Checking clap v4.5.4 [INFO] [stderr] Compiling serde_derive v1.0.199 [INFO] [stderr] Checking imgui v0.11.0 [INFO] [stderr] Checking imgui-sdl2-support v0.11.0 [INFO] [stderr] Checking imgui-glow-renderer v0.11.0 [INFO] [stderr] Checking ohBoi-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::ops::Index` [INFO] [stdout] --> src/core/traits.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Index; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Weak` [INFO] [stdout] --> src/core/joypad.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use std::rc::{Rc, Weak}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/core/joypad.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Serialize, Deserialize}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Interrupt` [INFO] [stdout] --> src/core/bus.rs:8:31 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::core::interrupts::{Interrupt, InterruptController}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DmaState` [INFO] [stdout] --> src/core/bus.rs:12:47 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::core::memory::dma::{DmaController, DmaState}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/core/cpu/instructions.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use log::{debug, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NoArgs`, `OneArg`, `TwoArgs` [INFO] [stdout] --> src/core/cpu/instructions.rs:17:23 [INFO] [stdout] | [INFO] [stdout] 17 | use InstructionType::{NoArgs, OneArg, TwoArgs}; [INFO] [stdout] | ^^^^^^ ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Register::*` [INFO] [stdout] --> src/core/cpu/prefixed_insts.rs:218:5 [INFO] [stdout] | [INFO] [stdout] 218 | use Register::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ref` [INFO] [stdout] --> src/core/cpu/mod.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::cell::{Ref, RefCell}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Weak` [INFO] [stdout] --> src/core/cpu/mod.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | use std::rc::{Rc, Weak}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `info`, `warn` [INFO] [stdout] --> src/core/cpu/mod.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | use log::{debug, info, trace, warn}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Bus` [INFO] [stdout] --> src/core/cpu/mod.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::core::bus::{Bus, BusController}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `InstructionType`, `MNEMONICS`, `NARGS` [INFO] [stdout] --> src/core/cpu/mod.rs:51:61 [INFO] [stdout] | [INFO] [stdout] 51 | use crate::core::cpu::instructions::{InstArg, INSTRUCTIONS, InstructionType, MNEMONICS, NARGS}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Cartridge` [INFO] [stdout] --> src/core/memory/cartridge/mbc/mod.rs:2:38 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::core::memory::cartridge::{Cartridge, CartridgeHeader, CartridgeType}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RAM_SIZE_MAP`, `calc_rom_size` [INFO] [stdout] --> src/core/memory/cartridge/mbc/mbc1.rs:3:56 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::core::memory::cartridge::mbc::{BankingMode, calc_rom_size, RAM_BANK_SIZE, RAM_SIZE_MAP, ROM_BANK_SIZE}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Index` [INFO] [stdout] --> src/core/traits.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Index; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Weak` [INFO] [stdout] --> src/core/joypad.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use std::rc::{Rc, Weak}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/core/joypad.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Serialize, Deserialize}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Interrupt` [INFO] [stdout] --> src/core/bus.rs:8:31 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::core::interrupts::{Interrupt, InterruptController}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DmaState` [INFO] [stdout] --> src/core/bus.rs:12:47 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::core::memory::dma::{DmaController, DmaState}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/core/cpu/instructions.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use log::{debug, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NoArgs`, `OneArg`, `TwoArgs` [INFO] [stdout] --> src/core/cpu/instructions.rs:17:23 [INFO] [stdout] | [INFO] [stdout] 17 | use InstructionType::{NoArgs, OneArg, TwoArgs}; [INFO] [stdout] | ^^^^^^ ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Register::*` [INFO] [stdout] --> src/core/cpu/prefixed_insts.rs:218:5 [INFO] [stdout] | [INFO] [stdout] 218 | use Register::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ref` [INFO] [stdout] --> src/core/cpu/mod.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::cell::{Ref, RefCell}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Weak` [INFO] [stdout] --> src/core/cpu/mod.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | use std::rc::{Rc, Weak}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `info`, `warn` [INFO] [stdout] --> src/core/cpu/mod.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | use log::{debug, info, trace, warn}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Bus` [INFO] [stdout] --> src/core/cpu/mod.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::core::bus::{Bus, BusController}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `InstructionType`, `MNEMONICS`, `NARGS` [INFO] [stdout] --> src/core/cpu/mod.rs:51:61 [INFO] [stdout] | [INFO] [stdout] 51 | use crate::core::cpu::instructions::{InstArg, INSTRUCTIONS, InstructionType, MNEMONICS, NARGS}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Cartridge` [INFO] [stdout] --> src/core/memory/cartridge/mbc/mod.rs:2:38 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::core::memory::cartridge::{Cartridge, CartridgeHeader, CartridgeType}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RAM_SIZE_MAP`, `calc_rom_size` [INFO] [stdout] --> src/core/memory/cartridge/mbc/mbc1.rs:3:56 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::core::memory::cartridge::mbc::{BankingMode, calc_rom_size, RAM_BANK_SIZE, RAM_SIZE_MAP, ROM_BANK_SIZE}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/core/memory/cartridge/mbc/mbc1.rs:48:46 [INFO] [stdout] | [INFO] [stdout] 48 | 0..=0x1FFF => self.ram_enabled = (val & 0xF == 0xA), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 48 - 0..=0x1FFF => self.ram_enabled = (val & 0xF == 0xA), [INFO] [stdout] 48 + 0..=0x1FFF => self.ram_enabled = val & 0xF == 0xA, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `MBC1_RAM` should have an upper camel case name [INFO] [stdout] --> src/core/memory/cartridge/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | MBC1_RAM = 0x02, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Mbc1Ram` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `MBC1_RAM_BATTERY` should have an upper camel case name [INFO] [stdout] --> src/core/memory/cartridge/mod.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | MBC1_RAM_BATTERY = 0x03 [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Mbc1RamBattery` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> src/core/gpu.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/core/gpu.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use log::{debug, trace, warn}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/core/gpu.rs:627:33 [INFO] [stdout] | [INFO] [stdout] 627 | let visible_range = (sprite.y..(sprite.y.wrapping_add(obj_size))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 627 - let visible_range = (sprite.y..(sprite.y.wrapping_add(obj_size))); [INFO] [stdout] 627 + let visible_range = sprite.y..(sprite.y.wrapping_add(obj_size)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ohBoi` should have an upper camel case name [INFO] [stdout] --> src/ohboi.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct ohBoi; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `OhBoi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EventPump` [INFO] [stdout] --> src/ui/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | use sdl2::{EventPump, Sdl}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::JoinHandle` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::thread::JoinHandle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Renderer` [INFO] [stdout] --> src/main.rs:10:27 [INFO] [stdout] | [INFO] [stdout] 10 | use imgui_glow_renderer::{Renderer}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `imgui_glow_renderer::glow::HasContext` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use imgui_glow_renderer::glow::HasContext; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `imgui_sdl2_support::SdlPlatform` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use imgui_sdl2_support::SdlPlatform; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug`, `error`, `trace`, `warn` [INFO] [stdout] --> src/main.rs:13:17 [INFO] [stdout] | [INFO] [stdout] 13 | use log::{info, error, warn, debug, trace}; [INFO] [stdout] | ^^^^^ ^^^^ ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::event::Event` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use sdl2::event::Event; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::keyboard::Keycode` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use sdl2::keyboard::Keycode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::video::GLProfile` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use sdl2::video::GLProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::joypad::Key` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use crate::core::joypad::Key; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GameWindow` [INFO] [stdout] --> src/main.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::ui::{GameWindow, OhBoiUi}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/core/memory/cartridge/mbc/mbc1.rs:48:46 [INFO] [stdout] | [INFO] [stdout] 48 | 0..=0x1FFF => self.ram_enabled = (val & 0xF == 0xA), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 48 - 0..=0x1FFF => self.ram_enabled = (val & 0xF == 0xA), [INFO] [stdout] 48 + 0..=0x1FFF => self.ram_enabled = val & 0xF == 0xA, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `MBC1_RAM` should have an upper camel case name [INFO] [stdout] --> src/core/memory/cartridge/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | MBC1_RAM = 0x02, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Mbc1Ram` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `MBC1_RAM_BATTERY` should have an upper camel case name [INFO] [stdout] --> src/core/memory/cartridge/mod.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | MBC1_RAM_BATTERY = 0x03 [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Mbc1RamBattery` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> src/core/gpu.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/core/gpu.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use log::{debug, trace, warn}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/core/gpu.rs:627:33 [INFO] [stdout] | [INFO] [stdout] 627 | let visible_range = (sprite.y..(sprite.y.wrapping_add(obj_size))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 627 - let visible_range = (sprite.y..(sprite.y.wrapping_add(obj_size))); [INFO] [stdout] 627 + let visible_range = sprite.y..(sprite.y.wrapping_add(obj_size)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ohBoi` should have an upper camel case name [INFO] [stdout] --> src/ohboi.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct ohBoi; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `OhBoi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EventPump` [INFO] [stdout] --> src/ui/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | use sdl2::{EventPump, Sdl}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::JoinHandle` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::thread::JoinHandle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Renderer` [INFO] [stdout] --> src/main.rs:10:27 [INFO] [stdout] | [INFO] [stdout] 10 | use imgui_glow_renderer::{Renderer}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `imgui_glow_renderer::glow::HasContext` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use imgui_glow_renderer::glow::HasContext; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `imgui_sdl2_support::SdlPlatform` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use imgui_sdl2_support::SdlPlatform; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug`, `error`, `trace`, `warn` [INFO] [stdout] --> src/main.rs:13:17 [INFO] [stdout] | [INFO] [stdout] 13 | use log::{info, error, warn, debug, trace}; [INFO] [stdout] | ^^^^^ ^^^^ ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::event::Event` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use sdl2::event::Event; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::keyboard::Keycode` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use sdl2::keyboard::Keycode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::video::GLProfile` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use sdl2::video::GLProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::joypad::Key` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use crate::core::joypad::Key; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GameWindow` [INFO] [stdout] --> src/main.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::ui::{GameWindow, OhBoiUi}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hasher` [INFO] [stdout] --> src/logging.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::hash::Hasher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/core/joypad.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hasher` [INFO] [stdout] --> src/logging.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::hash::Hasher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/core/joypad.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/core/joypad.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | _ => {} [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/core/joypad.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | _ => {} [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/core/joypad.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | _ => {} [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/core/bus.rs:154:17 [INFO] [stdout] | [INFO] [stdout] 154 | _ => unreachable!() [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/core/joypad.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | _ => {} [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/core/bus.rs:172:17 [INFO] [stdout] | [INFO] [stdout] 172 | _ => unimplemented!() [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/core/bus.rs:187:13 [INFO] [stdout] | [INFO] [stdout] 187 | _ => unimplemented!() [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/core/bus.rs:201:13 [INFO] [stdout] | [INFO] [stdout] 201 | _ => unimplemented!() [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/core/bus.rs:154:17 [INFO] [stdout] | [INFO] [stdout] 154 | _ => unreachable!() [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/core/bus.rs:172:17 [INFO] [stdout] | [INFO] [stdout] 172 | _ => unimplemented!() [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/core/bus.rs:187:13 [INFO] [stdout] | [INFO] [stdout] 187 | _ => unimplemented!() [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/core/bus.rs:201:13 [INFO] [stdout] | [INFO] [stdout] 201 | _ => unimplemented!() [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/core/cpu/mod.rs:482:25 [INFO] [stdout] | [INFO] [stdout] 482 | let mut data = self.bus.read(addr).wrapping_sub(1); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `condition` [INFO] [stdout] --> src/core/cpu/mod.rs:971:23 [INFO] [stdout] | [INFO] [stdout] 971 | fn ret(&mut self, condition: bool) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_condition` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reg` [INFO] [stdout] --> src/core/cpu/mod.rs:1301:33 [INFO] [stdout] | [INFO] [stdout] 1301 | fn load_indirect(&mut self, reg: Register8, src: Register16) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_reg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/core/cpu/mod.rs:482:25 [INFO] [stdout] | [INFO] [stdout] 482 | let mut data = self.bus.read(addr).wrapping_sub(1); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/core/memory/cartridge/mbc/mod.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | t => { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ram` [INFO] [stdout] --> src/core/memory/cartridge/mbc/mod.rs:46:64 [INFO] [stdout] | [INFO] [stdout] 46 | pub(super) fn make_mbc(header: &CartridgeHeader, rom: Vec, ram: Option>) -> Box { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ram` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `condition` [INFO] [stdout] --> src/core/cpu/mod.rs:971:23 [INFO] [stdout] | [INFO] [stdout] 971 | fn ret(&mut self, condition: bool) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_condition` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reg` [INFO] [stdout] --> src/core/cpu/mod.rs:1301:33 [INFO] [stdout] | [INFO] [stdout] 1301 | fn load_indirect(&mut self, reg: Register8, src: Register16) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_reg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/core/memory/cartridge/mbc/mod.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | t => { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ram` [INFO] [stdout] --> src/core/memory/cartridge/mbc/mod.rs:46:64 [INFO] [stdout] | [INFO] [stdout] 46 | pub(super) fn make_mbc(header: &CartridgeHeader, rom: Vec, ram: Option>) -> Box { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ram` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `timer` [INFO] [stdout] --> src/core/audio/mod.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn new(timer: Rc>) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_timer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/core/audio/mod.rs:11:24 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn read(&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/core/audio/mod.rs:15:29 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn write(&mut self, addr: u16, data: u8) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/core/audio/mod.rs:15:40 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn write(&mut self, addr: u16, data: u8) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `timer` [INFO] [stdout] --> src/core/audio/mod.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn new(timer: Rc>) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_timer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/core/audio/mod.rs:11:24 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn read(&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/core/audio/mod.rs:15:29 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn write(&mut self, addr: u16, data: u8) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/core/audio/mod.rs:15:40 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn write(&mut self, addr: u16, data: u8) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `buffer`, `buffer_pointer`, `downsample`, and `audio_callback` are never read [INFO] [stdout] --> src/core/mod.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Audio { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 28 | buffer: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 29 | buffer_pointer: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 30 | downsample: Counter, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 31 | audio_callback: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `AddressSpace` is never used [INFO] [stdout] --> src/core/traits.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | trait AddressSpace { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Clock` is never used [INFO] [stdout] --> src/core/traits.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | trait Clock { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `keys_enabled` and `keys_pressed` are never used [INFO] [stdout] --> src/core/joypad.rs:118:8 [INFO] [stdout] | [INFO] [stdout] 45 | impl Joypad { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 118 | fn keys_enabled(&self) -> bool { (self.key_state_buttons & key_masks::KEY_GROUPS) != key_masks::KEY_GROUPS } [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 119 | #[inline] [INFO] [stdout] 120 | fn keys_pressed(&self) -> bool { (self.key_state_buttons & key_masks::KEYS) != key_masks::KEYS } [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KEYS` is never used [INFO] [stdout] --> src/core/joypad.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | pub const KEYS: u8 = RIGHT_A | LEFT_B | UP_SELECT | DOWN_START; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TIMER_INCREMENTS` is never used [INFO] [stdout] --> src/core/timers.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const TIMER_INCREMENTS: [u32; 4] = [1024, 16, 64, 256]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cgb` is never read [INFO] [stdout] --> src/core/cpu/mod.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 44 | pub(crate) struct Registers { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 45 | regs: Vec, [INFO] [stdout] 46 | cgb: bool [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reset` is never used [INFO] [stdout] --> src/core/cpu/mod.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl Registers { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ALU16ReadHi` is never constructed [INFO] [stdout] --> src/core/cpu/mod.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 156 | pub(crate) enum CpuState { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 165 | ALU16ReadHi, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CpuState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cgb` is never read [INFO] [stdout] --> src/core/cpu/mod.rs:218:5 [INFO] [stdout] | [INFO] [stdout] 201 | pub(crate) struct Cpu { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 218 | cgb: bool, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `store_hl_immediate` is never used [INFO] [stdout] --> src/core/cpu/mod.rs:496:8 [INFO] [stdout] | [INFO] [stdout] 221 | impl Cpu { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 496 | fn store_hl_immediate(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `NoArgOp` is never used [INFO] [stdout] --> src/core/cpu/instructions.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | type NoArgOp = fn(&mut Cpu); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `OneArgOp` is never used [INFO] [stdout] --> src/core/cpu/instructions.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | type OneArgOp = fn(&mut Cpu, u8); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `TwoArgOp` is never used [INFO] [stdout] --> src/core/cpu/instructions.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | type TwoArgOp = fn(&mut Cpu, u16); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InstructionType` is never used [INFO] [stdout] --> src/core/cpu/instructions.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | pub(super) enum InstructionType { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `NARGS` is never used [INFO] [stdout] --> src/core/cpu/instructions.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub static NARGS: [usize; 256] = [ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `MNEMONICS` is never used [INFO] [stdout] --> src/core/cpu/instructions.rs:280:12 [INFO] [stdout] | [INFO] [stdout] 280 | pub static MNEMONICS: [&'static str; 256] = [ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `hi` is never used [INFO] [stdout] --> src/core/cpu/instructions.rs:569:12 [INFO] [stdout] | [INFO] [stdout] 549 | impl InstArg { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 569 | pub fn hi(&self) -> u8 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Inst` is never constructed [INFO] [stdout] --> src/core/cpu/instructions.rs:581:8 [INFO] [stdout] | [INFO] [stdout] 581 | struct Inst { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `advance` are never used [INFO] [stdout] --> src/core/cpu/instructions.rs:587:12 [INFO] [stdout] | [INFO] [stdout] 586 | impl Inst { [INFO] [stdout] | -------------------------------- associated items in this implementation [INFO] [stdout] 587 | pub fn new(inst_type: InstructionType, transition_func: F) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 594 | pub fn advance(&mut self, cpu: &mut Cpu) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Register` is never used [INFO] [stdout] --> src/core/cpu/prefixed_insts.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | enum Register { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `switch_bank` is never used [INFO] [stdout] --> src/core/memory/mod.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl WRAM { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn switch_bank(&mut self, new_bank: usize) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `state` is never used [INFO] [stdout] --> src/core/memory/dma.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl DmaController { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn state(&self) -> DmaState { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/core/memory/cartridge/mod.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 32 | struct CartridgeHeader { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 33 | entry_point: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 34 | logo: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 35 | title: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 36 | manufacturer_code: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 37 | cgb: bool, [INFO] [stdout] 38 | new_licensee_code: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 39 | sgb: bool, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | dest_code: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 44 | old_licensee_code: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 45 | version: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 46 | header_checksum: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 47 | global_checksum: Vec [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `rom_path` and `sav_path` are never read [INFO] [stdout] --> src/core/memory/cartridge/mod.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 97 | pub struct Cartridge { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 98 | rom_path: PathBuf, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 99 | sav_path: PathBuf, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RAM_SIZE_MAP` is never used [INFO] [stdout] --> src/core/memory/cartridge/mbc/mod.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const RAM_SIZE_MAP: [usize; 6] = [ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_rom_size` is never used [INFO] [stdout] --> src/core/memory/cartridge/mbc/mod.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn calc_rom_size(header_rom_size: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/core/memory/cartridge/mbc/mod.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub(super) trait Mbc { [INFO] [stdout] | --- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 35 | fn num_banks(&self) -> usize { 2 } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 36 | fn num_ram_banks(&self) -> usize { 0 } [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 37 | [INFO] [stdout] 38 | fn has_battery(&self) -> bool { false } [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 39 | fn has_rtc(&self) -> bool { false } [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 40 | fn has_ram(&self) -> bool { false } [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 41 | [INFO] [stdout] 42 | fn ram(&self) -> Option<&Vec> { None } [INFO] [stdout] | ^^^ [INFO] [stdout] 43 | fn rom(&self) -> &Vec; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `battery` is never read [INFO] [stdout] --> src/core/memory/cartridge/mbc/mbc1.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub(super) struct Mbc1 { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | battery: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/core/gpu.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 64 | impl Tile { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 65 | pub fn new(data: &[u8]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `oam_offset` is never read [INFO] [stdout] --> src/core/gpu.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 102 | struct SpritePixel { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 103 | pixel: TilePixel, [INFO] [stdout] 104 | oam_offset: u8 [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `cgb_palette_number` and `vram_bank` are never used [INFO] [stdout] --> src/core/gpu.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 117 | impl Sprite { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn cgb_palette_number(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | pub fn vram_bank(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `value` is never used [INFO] [stdout] --> src/core/gpu.rs:379:12 [INFO] [stdout] | [INFO] [stdout] 353 | impl DmgPalette { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 379 | pub fn value(&self) -> u8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MODE` is never used [INFO] [stdout] --> src/core/gpu.rs:40:15 [INFO] [stdout] | [INFO] [stdout] 40 | pub const MODE: u8 = 0b00000011; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LY_COMPARE_INTERRUPT` is never used [INFO] [stdout] --> src/core/gpu.rs:45:15 [INFO] [stdout] | [INFO] [stdout] 45 | pub const LY_COMPARE_INTERRUPT: u8 = 0b01000000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CGB_PALETTE_NUMBER` is never used [INFO] [stdout] --> src/core/gpu.rs:50:15 [INFO] [stdout] | [INFO] [stdout] 50 | pub const CGB_PALETTE_NUMBER: u8 = 0b00000111; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VRAM_BANK` is never used [INFO] [stdout] --> src/core/gpu.rs:51:15 [INFO] [stdout] | [INFO] [stdout] 51 | pub const VRAM_BANK: u8 = 0b00001000; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cnt`, `limit`, `period`, and `period_cnt` are never read [INFO] [stdout] --> src/core/utils.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) struct Counter { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 2 | cnt: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 3 | pub limit: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 4 | period: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 5 | period_cnt: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `step`, `reset`, and `expired` are never used [INFO] [stdout] --> src/core/utils.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Counter { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 9 | pub fn new(limit: u32, period: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn step(&mut self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn expired(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FallingEdgeDetector` is never constructed [INFO] [stdout] --> src/core/utils.rs:37:19 [INFO] [stdout] | [INFO] [stdout] 37 | pub(crate) struct FallingEdgeDetector { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_initial_value`, and `detect` are never used [INFO] [stdout] --> src/core/utils.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl FallingEdgeDetector { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 42 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn with_initial_value(initial: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn detect(&mut self, new: bool) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ohBoi` is never constructed [INFO] [stdout] --> src/ohboi.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct ohBoi; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ohboi.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl ohBoi { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 4 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `KeyPress` is never constructed [INFO] [stdout] --> src/ui/mod.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum GameWindowEvent { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 23 | KeyPress(Keycode), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `gl_context` is never read [INFO] [stdout] --> src/ui/mod.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct OhBoiUi { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 99 | gl_context: GLContext, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 96 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `buffer`, `buffer_pointer`, `downsample`, and `audio_callback` are never read [INFO] [stdout] --> src/core/mod.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Audio { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 28 | buffer: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 29 | buffer_pointer: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 30 | downsample: Counter, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 31 | audio_callback: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `AddressSpace` is never used [INFO] [stdout] --> src/core/traits.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | trait AddressSpace { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Clock` is never used [INFO] [stdout] --> src/core/traits.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | trait Clock { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_pressed`, `keys_enabled`, and `keys_pressed` are never used [INFO] [stdout] --> src/core/joypad.rs:101:18 [INFO] [stdout] | [INFO] [stdout] 45 | impl Joypad { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 101 | pub(self) fn is_pressed(&self, key: Key) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | fn keys_enabled(&self) -> bool { (self.key_state_buttons & key_masks::KEY_GROUPS) != key_masks::KEY_GROUPS } [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 119 | #[inline] [INFO] [stdout] 120 | fn keys_pressed(&self) -> bool { (self.key_state_buttons & key_masks::KEYS) != key_masks::KEYS } [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KEYS` is never used [INFO] [stdout] --> src/core/joypad.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | pub const KEYS: u8 = RIGHT_A | LEFT_B | UP_SELECT | DOWN_START; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TIMER_INCREMENTS` is never used [INFO] [stdout] --> src/core/timers.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const TIMER_INCREMENTS: [u32; 4] = [1024, 16, 64, 256]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cgb` is never read [INFO] [stdout] --> src/core/cpu/mod.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 44 | pub(crate) struct Registers { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 45 | regs: Vec, [INFO] [stdout] 46 | cgb: bool [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reset` is never used [INFO] [stdout] --> src/core/cpu/mod.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl Registers { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ALU16ReadHi` is never constructed [INFO] [stdout] --> src/core/cpu/mod.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 156 | pub(crate) enum CpuState { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 165 | ALU16ReadHi, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CpuState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cgb` is never read [INFO] [stdout] --> src/core/cpu/mod.rs:218:5 [INFO] [stdout] | [INFO] [stdout] 201 | pub(crate) struct Cpu { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 218 | cgb: bool, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `store_hl_immediate` is never used [INFO] [stdout] --> src/core/cpu/mod.rs:496:8 [INFO] [stdout] | [INFO] [stdout] 221 | impl Cpu { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 496 | fn store_hl_immediate(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `NoArgOp` is never used [INFO] [stdout] --> src/core/cpu/instructions.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | type NoArgOp = fn(&mut Cpu); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `OneArgOp` is never used [INFO] [stdout] --> src/core/cpu/instructions.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | type OneArgOp = fn(&mut Cpu, u8); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `TwoArgOp` is never used [INFO] [stdout] --> src/core/cpu/instructions.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | type TwoArgOp = fn(&mut Cpu, u16); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InstructionType` is never used [INFO] [stdout] --> src/core/cpu/instructions.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | pub(super) enum InstructionType { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `NARGS` is never used [INFO] [stdout] --> src/core/cpu/instructions.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub static NARGS: [usize; 256] = [ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `MNEMONICS` is never used [INFO] [stdout] --> src/core/cpu/instructions.rs:280:12 [INFO] [stdout] | [INFO] [stdout] 280 | pub static MNEMONICS: [&'static str; 256] = [ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `hi` is never used [INFO] [stdout] --> src/core/cpu/instructions.rs:569:12 [INFO] [stdout] | [INFO] [stdout] 549 | impl InstArg { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 569 | pub fn hi(&self) -> u8 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Inst` is never constructed [INFO] [stdout] --> src/core/cpu/instructions.rs:581:8 [INFO] [stdout] | [INFO] [stdout] 581 | struct Inst { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `advance` are never used [INFO] [stdout] --> src/core/cpu/instructions.rs:587:12 [INFO] [stdout] | [INFO] [stdout] 586 | impl Inst { [INFO] [stdout] | -------------------------------- associated items in this implementation [INFO] [stdout] 587 | pub fn new(inst_type: InstructionType, transition_func: F) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 594 | pub fn advance(&mut self, cpu: &mut Cpu) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Register` is never used [INFO] [stdout] --> src/core/cpu/prefixed_insts.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | enum Register { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `switch_bank` is never used [INFO] [stdout] --> src/core/memory/mod.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl WRAM { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn switch_bank(&mut self, new_bank: usize) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `state` is never used [INFO] [stdout] --> src/core/memory/dma.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl DmaController { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn state(&self) -> DmaState { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/core/memory/cartridge/mod.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 32 | struct CartridgeHeader { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 33 | entry_point: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 34 | logo: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 35 | title: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 36 | manufacturer_code: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 37 | cgb: bool, [INFO] [stdout] 38 | new_licensee_code: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 39 | sgb: bool, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | dest_code: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 44 | old_licensee_code: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 45 | version: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 46 | header_checksum: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 47 | global_checksum: Vec [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `rom_path` and `sav_path` are never read [INFO] [stdout] --> src/core/memory/cartridge/mod.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 97 | pub struct Cartridge { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 98 | rom_path: PathBuf, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 99 | sav_path: PathBuf, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RAM_SIZE_MAP` is never used [INFO] [stdout] --> src/core/memory/cartridge/mbc/mod.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const RAM_SIZE_MAP: [usize; 6] = [ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_rom_size` is never used [INFO] [stdout] --> src/core/memory/cartridge/mbc/mod.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn calc_rom_size(header_rom_size: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/core/memory/cartridge/mbc/mod.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub(super) trait Mbc { [INFO] [stdout] | --- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 35 | fn num_banks(&self) -> usize { 2 } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 36 | fn num_ram_banks(&self) -> usize { 0 } [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 37 | [INFO] [stdout] 38 | fn has_battery(&self) -> bool { false } [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 39 | fn has_rtc(&self) -> bool { false } [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 40 | fn has_ram(&self) -> bool { false } [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 41 | [INFO] [stdout] 42 | fn ram(&self) -> Option<&Vec> { None } [INFO] [stdout] | ^^^ [INFO] [stdout] 43 | fn rom(&self) -> &Vec; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `battery` is never read [INFO] [stdout] --> src/core/memory/cartridge/mbc/mbc1.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub(super) struct Mbc1 { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | battery: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/core/gpu.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 64 | impl Tile { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 65 | pub fn new(data: &[u8]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `oam_offset` is never read [INFO] [stdout] --> src/core/gpu.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 102 | struct SpritePixel { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 103 | pixel: TilePixel, [INFO] [stdout] 104 | oam_offset: u8 [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `cgb_palette_number` and `vram_bank` are never used [INFO] [stdout] --> src/core/gpu.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 117 | impl Sprite { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn cgb_palette_number(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | pub fn vram_bank(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `value` is never used [INFO] [stdout] --> src/core/gpu.rs:379:12 [INFO] [stdout] | [INFO] [stdout] 353 | impl DmgPalette { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 379 | pub fn value(&self) -> u8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MODE` is never used [INFO] [stdout] --> src/core/gpu.rs:40:15 [INFO] [stdout] | [INFO] [stdout] 40 | pub const MODE: u8 = 0b00000011; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LY_COMPARE_INTERRUPT` is never used [INFO] [stdout] --> src/core/gpu.rs:45:15 [INFO] [stdout] | [INFO] [stdout] 45 | pub const LY_COMPARE_INTERRUPT: u8 = 0b01000000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CGB_PALETTE_NUMBER` is never used [INFO] [stdout] --> src/core/gpu.rs:50:15 [INFO] [stdout] | [INFO] [stdout] 50 | pub const CGB_PALETTE_NUMBER: u8 = 0b00000111; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VRAM_BANK` is never used [INFO] [stdout] --> src/core/gpu.rs:51:15 [INFO] [stdout] | [INFO] [stdout] 51 | pub const VRAM_BANK: u8 = 0b00001000; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cnt`, `limit`, `period`, and `period_cnt` are never read [INFO] [stdout] --> src/core/utils.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) struct Counter { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 2 | cnt: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 3 | pub limit: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 4 | period: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 5 | period_cnt: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `step`, `reset`, and `expired` are never used [INFO] [stdout] --> src/core/utils.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Counter { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 9 | pub fn new(limit: u32, period: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn step(&mut self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn expired(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FallingEdgeDetector` is never constructed [INFO] [stdout] --> src/core/utils.rs:37:19 [INFO] [stdout] | [INFO] [stdout] 37 | pub(crate) struct FallingEdgeDetector { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_initial_value`, and `detect` are never used [INFO] [stdout] --> src/core/utils.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl FallingEdgeDetector { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 42 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn with_initial_value(initial: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn detect(&mut self, new: bool) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ohBoi` is never constructed [INFO] [stdout] --> src/ohboi.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct ohBoi; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ohboi.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl ohBoi { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 4 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `KeyPress` is never constructed [INFO] [stdout] --> src/ui/mod.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum GameWindowEvent { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 23 | KeyPress(Keycode), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `gl_context` is never read [INFO] [stdout] --> src/ui/mod.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct OhBoiUi { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 99 | gl_context: GLContext, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 96 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.06s [INFO] running `Command { std: "docker" "inspect" "8cd5e0806063b85f81a76ea367d67af5982c99747eb267ace3754ef32bd7abe0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8cd5e0806063b85f81a76ea367d67af5982c99747eb267ace3754ef32bd7abe0", kill_on_drop: false }` [INFO] [stdout] 8cd5e0806063b85f81a76ea367d67af5982c99747eb267ace3754ef32bd7abe0 [INFO] checking and00h/ohBoi-rs against try#2466b92ed5feb282a98bb984f45d1e6d39f8c1aa for pr-124592 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fand00h%2FohBoi-rs" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/and00h/ohBoi-rs on toolchain 2466b92ed5feb282a98bb984f45d1e6d39f8c1aa [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2466b92ed5feb282a98bb984f45d1e6d39f8c1aa" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/and00h/ohBoi-rs [INFO] finished tweaking git repo https://github.com/and00h/ohBoi-rs [INFO] tweaked toml for git repo https://github.com/and00h/ohBoi-rs written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/and00h/ohBoi-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" "+2466b92ed5feb282a98bb984f45d1e6d39f8c1aa" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+2466b92ed5feb282a98bb984f45d1e6d39f8c1aa" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ef96f113aa4e85fba52f28276baaa3abeb8af89d6a1d2c66ff2da56be5cb2506 [INFO] running `Command { std: "docker" "start" "-a" "ef96f113aa4e85fba52f28276baaa3abeb8af89d6a1d2c66ff2da56be5cb2506", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ef96f113aa4e85fba52f28276baaa3abeb8af89d6a1d2c66ff2da56be5cb2506", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef96f113aa4e85fba52f28276baaa3abeb8af89d6a1d2c66ff2da56be5cb2506", kill_on_drop: false }` [INFO] [stdout] ef96f113aa4e85fba52f28276baaa3abeb8af89d6a1d2c66ff2da56be5cb2506 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+2466b92ed5feb282a98bb984f45d1e6d39f8c1aa" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d21c515fc80d5f8cc05556dbcd2187b27e07df618cd2f6c11373a85defe59c82 [INFO] running `Command { std: "docker" "start" "-a" "d21c515fc80d5f8cc05556dbcd2187b27e07df618cd2f6c11373a85defe59c82", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling cc v1.0.95 [INFO] [stderr] Compiling proc-macro2 v1.0.81 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling version-compare v0.0.10 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking chlorine v1.0.10 [INFO] [stderr] Checking mint v0.5.9 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Checking anstyle v1.0.6 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Compiling sdl2 v0.34.5 [INFO] [stderr] Compiling serde v1.0.199 [INFO] [stderr] Checking anstyle-query v1.0.2 [INFO] [stderr] Checking clap_lex v0.7.0 [INFO] [stderr] Checking anstyle-parse v0.2.3 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Compiling serde_json v1.0.116 [INFO] [stderr] Checking ryu v1.0.17 [INFO] [stderr] Compiling sdl2-sys v0.34.5 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking glow v0.12.3 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Checking anstream v0.6.13 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking glow v0.13.1 [INFO] [stderr] Checking bitfield v0.15.0 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Checking clap_builder v4.5.2 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling imgui-sys v0.11.0 [INFO] [stderr] Compiling tinyfiledialogs v3.9.1 [INFO] [stderr] Compiling syn v2.0.60 [INFO] [stderr] Checking is-terminal v0.4.12 [INFO] [stderr] Checking openal-sys v1.16.0 [INFO] [stderr] Checking colored v1.9.4 [INFO] [stderr] Checking openal v0.2.2 [INFO] [stderr] Checking fern v0.6.2 [INFO] [stderr] Checking parking_lot v0.12.2 [INFO] [stderr] Checking clap v4.5.4 [INFO] [stderr] Compiling serde_derive v1.0.199 [INFO] [stderr] Checking imgui v0.11.0 [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/imgui-0.11.0/src/input_widget.rs:639:44 [INFO] [stdout] | [INFO] [stdout] 608 | impl<'ui, 'p, L, T> $InputFloatN<'ui, 'p, L, T> [INFO] [stdout] | - found this type parameter [INFO] [stdout] ... [INFO] [stdout] 639 | let mut value: [f32; $N] = value.into(); [INFO] [stdout] | --------- ^^^^^^^^^^^^ expected `[f32; 2]`, found type parameter `T` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] ... [INFO] [stdout] 662 | impl_input_floatn!(InputFloat2, MintVec2, 2, igInputFloat2); [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected array `[f32; 2]` [INFO] [stdout] found type parameter `T` [INFO] [stdout] = note: this error originates in the macro `impl_input_floatn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/imgui-0.11.0/src/input_widget.rs:639:44 [INFO] [stdout] | [INFO] [stdout] 608 | impl<'ui, 'p, L, T> $InputFloatN<'ui, 'p, L, T> [INFO] [stdout] | - found this type parameter [INFO] [stdout] ... [INFO] [stdout] 639 | let mut value: [f32; $N] = value.into(); [INFO] [stdout] | --------- ^^^^^^^^^^^^ expected `[f32; 3]`, found type parameter `T` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] ... [INFO] [stdout] 663 | impl_input_floatn!(InputFloat3, MintVec3, 3, igInputFloat3); [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected array `[f32; 3]` [INFO] [stdout] found type parameter `T` [INFO] [stdout] = note: this error originates in the macro `impl_input_floatn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/imgui-0.11.0/src/input_widget.rs:639:44 [INFO] [stdout] | [INFO] [stdout] 608 | impl<'ui, 'p, L, T> $InputFloatN<'ui, 'p, L, T> [INFO] [stdout] | - found this type parameter [INFO] [stdout] ... [INFO] [stdout] 639 | let mut value: [f32; $N] = value.into(); [INFO] [stdout] | --------- ^^^^^^^^^^^^ expected `[f32; 4]`, found type parameter `T` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] ... [INFO] [stdout] 664 | impl_input_floatn!(InputFloat4, MintVec4, 4, igInputFloat4); [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected array `[f32; 4]` [INFO] [stdout] found type parameter `T` [INFO] [stdout] = note: this error originates in the macro `impl_input_floatn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/imgui-0.11.0/src/input_widget.rs:693:44 [INFO] [stdout] | [INFO] [stdout] 676 | impl<'ui, 'p, L, T> $InputIntN<'ui, 'p, L, T> [INFO] [stdout] | - found this type parameter [INFO] [stdout] ... [INFO] [stdout] 693 | let mut value: [i32; $N] = value.into(); [INFO] [stdout] | --------- ^^^^^^^^^^^^ expected `[i32; 2]`, found type parameter `T` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] ... [INFO] [stdout] 716 | impl_input_intn!(InputInt2, MintIVec2, 2, igInputInt2); [INFO] [stdout] | ------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected array `[i32; 2]` [INFO] [stdout] found type parameter `T` [INFO] [stdout] = note: this error originates in the macro `impl_input_intn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/imgui-0.11.0/src/input_widget.rs:693:44 [INFO] [stdout] | [INFO] [stdout] 676 | impl<'ui, 'p, L, T> $InputIntN<'ui, 'p, L, T> [INFO] [stdout] | - found this type parameter [INFO] [stdout] ... [INFO] [stdout] 693 | let mut value: [i32; $N] = value.into(); [INFO] [stdout] | --------- ^^^^^^^^^^^^ expected `[i32; 3]`, found type parameter `T` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] ... [INFO] [stdout] 717 | impl_input_intn!(InputInt3, MintIVec3, 3, igInputInt3); [INFO] [stdout] | ------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected array `[i32; 3]` [INFO] [stdout] found type parameter `T` [INFO] [stdout] = note: this error originates in the macro `impl_input_intn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/imgui-0.11.0/src/input_widget.rs:693:44 [INFO] [stdout] | [INFO] [stdout] 676 | impl<'ui, 'p, L, T> $InputIntN<'ui, 'p, L, T> [INFO] [stdout] | - found this type parameter [INFO] [stdout] ... [INFO] [stdout] 693 | let mut value: [i32; $N] = value.into(); [INFO] [stdout] | --------- ^^^^^^^^^^^^ expected `[i32; 4]`, found type parameter `T` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] ... [INFO] [stdout] 718 | impl_input_intn!(InputInt4, MintIVec4, 4, igInputInt4); [INFO] [stdout] | ------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected array `[i32; 4]` [INFO] [stdout] found type parameter `T` [INFO] [stdout] = note: this error originates in the macro `impl_input_intn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/imgui-0.11.0/src/widget/color_editors.rs:334:37 [INFO] [stdout] | [INFO] [stdout] 195 | impl<'ui, 'a, Label, C> ColorEdit3<'ui, 'a, Label, C> [INFO] [stdout] | - found this type parameter [INFO] [stdout] ... [INFO] [stdout] 334 | let mut as_vec3: [f32; 3] = as_vec3.into(); [INFO] [stdout] | -------- ^^^^^^^^^^^^^^ expected `[f32; 3]`, found type parameter `C` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] | [INFO] [stdout] = note: expected array `[f32; 3]` [INFO] [stdout] found type parameter `C` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/imgui-0.11.0/src/widget/color_editors.rs:552:37 [INFO] [stdout] | [INFO] [stdout] 415 | impl<'ui, 'a, T, C> ColorEdit4<'ui, 'a, T, C> [INFO] [stdout] | - found this type parameter [INFO] [stdout] ... [INFO] [stdout] 552 | let mut as_vec4: [f32; 4] = as_vec4.into(); [INFO] [stdout] | -------- ^^^^^^^^^^^^^^ expected `[f32; 4]`, found type parameter `C` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] | [INFO] [stdout] = note: expected array `[f32; 4]` [INFO] [stdout] found type parameter `C` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/imgui-0.11.0/src/widget/color_editors.rs:777:35 [INFO] [stdout] | [INFO] [stdout] 633 | impl<'ui, 'a, Label, Color> ColorPicker3<'ui, 'a, Label, Color> [INFO] [stdout] | ----- found this type parameter [INFO] [stdout] ... [INFO] [stdout] 777 | let mut value: [f32; 3] = (*self.value).into().into(); [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `[f32; 3]`, found type parameter `Color` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] | [INFO] [stdout] = note: expected array `[f32; 3]` [INFO] [stdout] found type parameter `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/imgui-0.11.0/src/widget/color_editors.rs:999:31 [INFO] [stdout] | [INFO] [stdout] 857 | impl<'ui, 'a, Label, Color> ColorPicker4<'ui, 'a, Label, Color> [INFO] [stdout] | ----- found this type parameter [INFO] [stdout] ... [INFO] [stdout] 999 | self.ref_color = Some(ref_color.into().into()); [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^^^^^ expected `[f32; 4]`, found type parameter `Color` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected array `[f32; 4]` [INFO] [stdout] found type parameter `Color` [INFO] [stdout] help: the type constructed contains `Color` due to the type of the argument passed [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/imgui-0.11.0/src/widget/color_editors.rs:999:26 [INFO] [stdout] | [INFO] [stdout] 999 | self.ref_color = Some(ref_color.into().into()); [INFO] [stdout] | ^^^^^-----------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/2466b92ed5feb282a98bb984f45d1e6d39f8c1aa/library/core/src/option.rs:579:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/imgui-0.11.0/src/widget/color_editors.rs:1007:35 [INFO] [stdout] | [INFO] [stdout] 857 | impl<'ui, 'a, Label, Color> ColorPicker4<'ui, 'a, Label, Color> [INFO] [stdout] | ----- found this type parameter [INFO] [stdout] ... [INFO] [stdout] 1007 | let mut value: [f32; 4] = (*self.value).into().into(); [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `[f32; 4]`, found type parameter `Color` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] | [INFO] [stdout] = note: expected array `[f32; 4]` [INFO] [stdout] found type parameter `Color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `imgui` (lib) due to 12 previous errors [INFO] running `Command { std: "docker" "inspect" "d21c515fc80d5f8cc05556dbcd2187b27e07df618cd2f6c11373a85defe59c82", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d21c515fc80d5f8cc05556dbcd2187b27e07df618cd2f6c11373a85defe59c82", kill_on_drop: false }` [INFO] [stdout] d21c515fc80d5f8cc05556dbcd2187b27e07df618cd2f6c11373a85defe59c82