[INFO] cloning repository https://github.com/todaymare/riscv-emulator [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/todaymare/riscv-emulator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftodaymare%2Friscv-emulator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftodaymare%2Friscv-emulator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 86d085c8fbd2fe0875aee1af0b3f138d4096b9bb [INFO] checking todaymare/riscv-emulator against try#39605810efb1a0d52f955bfba9e4eec7a01d5deb for pr-153692 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftodaymare%2Friscv-emulator" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/todaymare/riscv-emulator [INFO] finished tweaking git repo https://github.com/todaymare/riscv-emulator [INFO] tweaked toml for git repo https://github.com/todaymare/riscv-emulator written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/todaymare/riscv-emulator on toolchain 39605810efb1a0d52f955bfba9e4eec7a01d5deb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+39605810efb1a0d52f955bfba9e4eec7a01d5deb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/todaymare/riscv-emulator 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" "+39605810efb1a0d52f955bfba9e4eec7a01d5deb" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+39605810efb1a0d52f955bfba9e4eec7a01d5deb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0151e42212231bb81cd8997bdb893d237dfb6a5e7a25d112a9d4e631d3300c62 [INFO] running `Command { std: "docker" "start" "-a" "0151e42212231bb81cd8997bdb893d237dfb6a5e7a25d112a9d4e631d3300c62", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0151e42212231bb81cd8997bdb893d237dfb6a5e7a25d112a9d4e631d3300c62", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0151e42212231bb81cd8997bdb893d237dfb6a5e7a25d112a9d4e631d3300c62", kill_on_drop: false }` [INFO] [stdout] 0151e42212231bb81cd8997bdb893d237dfb6a5e7a25d112a9d4e631d3300c62 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+39605810efb1a0d52f955bfba9e4eec7a01d5deb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 55955974c6994a33e1dc7a3978341f574b9add2c9972b61101132d17b6a849cd [INFO] running `Command { std: "docker" "start" "-a" "55955974c6994a33e1dc7a3978341f574b9add2c9972b61101132d17b6a849cd", kill_on_drop: false }` [INFO] [stderr] Checking libloading v0.8.9 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Checking linux-raw-sys v0.11.0 [INFO] [stderr] Compiling wayland-sys v0.31.7 [INFO] [stderr] Compiling cc v1.2.45 [INFO] [stderr] Compiling quick-xml v0.37.5 [INFO] [stderr] Compiling wayland-client v0.31.11 [INFO] [stderr] Checking bytemuck v1.24.0 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Checking getrandom v0.3.4 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling syn v2.0.110 [INFO] [stderr] Checking hashbrown v0.16.0 [INFO] [stderr] Checking linux-raw-sys v0.4.15 [INFO] [stderr] Compiling khronos-egl v6.0.0 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking dlib v0.5.2 [INFO] [stderr] Compiling wgpu-hal v0.19.5 [INFO] [stderr] Checking gpu-alloc-types v0.3.0 [INFO] [stderr] Checking spirv v0.3.0+sdk-1.3.268.0 [INFO] [stderr] Checking gpu-descriptor-types v0.1.2 [INFO] [stderr] Checking libloading v0.7.4 [INFO] [stderr] Checking raw-window-handle v0.6.2 [INFO] [stderr] Checking gpu-alloc v0.6.0 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking indexmap v2.12.0 [INFO] [stderr] Compiling wgpu-core v0.19.4 [INFO] [stderr] Checking wgpu-types v0.19.2 [INFO] [stderr] Checking ash v0.37.3+1.3.251 [INFO] [stderr] Compiling smithay-client-toolkit v0.19.2 [INFO] [stderr] Checking glow v0.13.1 [INFO] [stderr] Checking xkeysym v0.2.1 [INFO] [stderr] Checking cursor-icon v1.2.0 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking tiny-skia-path v0.11.4 [INFO] [stderr] Checking safe_arch v0.7.4 [INFO] [stderr] Compiling wayland-scanner v0.31.7 [INFO] [stderr] Checking memmap2 v0.9.9 [INFO] [stderr] Compiling wgpu v0.19.4 [INFO] [stderr] Checking ab_glyph v0.2.32 [INFO] [stderr] Compiling winit v0.30.12 [INFO] [stderr] Checking wide v0.7.33 [INFO] [stderr] Checking x11rb-protocol v0.13.2 [INFO] [stderr] Checking as-raw-xcb-connection v1.0.1 [INFO] [stderr] Checking tiny-skia v0.11.4 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Checking x11-dl v2.21.0 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking xkbcommon-dl v0.4.2 [INFO] [stderr] Checking dpi v0.1.2 [INFO] [stderr] Checking smol_str v0.2.2 [INFO] [stderr] Checking colourful v0.1.0 (https://github.com/todaymare/colourful#38f807d2) [INFO] [stderr] Checking elf v0.8.0 [INFO] [stderr] Checking gpu-descriptor v0.2.4 [INFO] [stderr] Compiling wayland-backend v0.3.11 [INFO] [stderr] Checking ultraviolet v0.9.2 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking naga v0.19.2 [INFO] [stderr] Checking polling v3.11.0 [INFO] [stderr] Checking gethostname v1.1.0 [INFO] [stderr] Checking calloop v0.13.0 [INFO] [stderr] Checking wayland-csd-frame v0.3.0 [INFO] [stderr] Checking wayland-protocols v0.32.9 [INFO] [stderr] Checking calloop-wayland-source v0.3.0 [INFO] [stderr] Checking wayland-cursor v0.31.11 [INFO] [stderr] Checking x11rb v0.13.2 [INFO] [stderr] Checking wayland-protocols-wlr v0.3.9 [INFO] [stderr] Checking wayland-protocols-plasma v0.3.9 [INFO] [stderr] Checking sctk-adwaita v0.10.1 [INFO] [stderr] Checking pixels v0.15.0 [INFO] [stderr] Checking riscv-emulator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `AtomicU8`, `alloc`, and `thread::park_timeout` [INFO] [stdout] --> src/mem.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{alloc::{alloc, alloc_zeroed, dealloc, Layout}, ops::Range, sync::atomic::{AtomicU32, AtomicU8}, thread::park_timeout}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ubfx_32` and `ubfx_64` [INFO] [stdout] --> src/mem.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{utils::{ubfx_32, ubfx_64}, Priv}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Layout`, `dealloc`, and `hint::unreachable_unchecked` [INFO] [stdout] --> src/instrs.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{alloc::{dealloc, Layout}, collections::HashMap, hint::unreachable_unchecked, ptr::null}; [INFO] [stdout] | ^^^^^^^ ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Emulator` and `sbfx_64` [INFO] [stdout] --> src/instrs.rs:3:71 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{mem::{Memory, PhysPtr, VirtPtr}, utils::{bfi_32, sbfx_32, sbfx_64, ubfx_32}, Emulator}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `Deref`, `Rem`, `hint::cold_path`, `mem::discriminant`, `process::exit`, `ptr::null`, and `thread::sleep_ms` [INFO] [stdout] --> src/lib.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | ...::{hint::cold_path, mem::discriminant, ops::{Deref, Range, Rem}, process::exit, ptr::null, sync::{atomic::{AtomicU64, Ordering}, Arc, Mutex}, thread::sleep_ms, t... [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^ ^^^ ^^^^^^^^^^^^^ ^^^^^^^^^ ^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `colourful::ColourBrush` [INFO] [stdout] --> src/lib.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use colourful::ColourBrush; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `elf::abi::SHT_STRTAB` [INFO] [stdout] --> src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use elf::abi::SHT_STRTAB; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `bfi_32`, `sbfx_32`, `sbfx_64`, and `ubfx_32` [INFO] [stdout] --> src/lib.rs:14:92 [INFO] [stdout] | [INFO] [stdout] 14 | ...}, mem::{Memory, PhysPtr, VirtPtr}, utils::{bfi_32, bfi_64, sbfx_32, sbfx_64, ubfx_32, ubfx_64}}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:1289:28 [INFO] [stdout] | [INFO] [stdout] 1289 | sstatus |= (m & (3 << 32)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1289 - sstatus |= (m & (3 << 32)); [INFO] [stdout] 1289 + sstatus |= m & (3 << 32); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::thread::sleep_ms`: replaced by `std::thread::sleep` [INFO] [stdout] --> src/lib.rs:9:158 [INFO] [stdout] | [INFO] [stdout] 9 | ..., sync::{atomic::{AtomicU64, Ordering}, Arc, Mutex}, thread::sleep_ms, time::Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `cold_path` has been stable since 1.95.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(cold_path)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicU8`, `alloc`, and `thread::park_timeout` [INFO] [stdout] --> src/mem.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{alloc::{alloc, alloc_zeroed, dealloc, Layout}, ops::Range, sync::atomic::{AtomicU32, AtomicU8}, thread::park_timeout}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ubfx_32` and `ubfx_64` [INFO] [stdout] --> src/mem.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{utils::{ubfx_32, ubfx_64}, Priv}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Layout`, `dealloc`, and `hint::unreachable_unchecked` [INFO] [stdout] --> src/instrs.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{alloc::{dealloc, Layout}, collections::HashMap, hint::unreachable_unchecked, ptr::null}; [INFO] [stdout] | ^^^^^^^ ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Emulator` and `sbfx_64` [INFO] [stdout] --> src/instrs.rs:3:71 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{mem::{Memory, PhysPtr, VirtPtr}, utils::{bfi_32, sbfx_32, sbfx_64, ubfx_32}, Emulator}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `Deref`, `Rem`, `hint::cold_path`, `mem::discriminant`, `process::exit`, `ptr::null`, and `thread::sleep_ms` [INFO] [stdout] --> src/lib.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | ...::{hint::cold_path, mem::discriminant, ops::{Deref, Range, Rem}, process::exit, ptr::null, sync::{atomic::{AtomicU64, Ordering}, Arc, Mutex}, thread::sleep_ms, t... [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^ ^^^ ^^^^^^^^^^^^^ ^^^^^^^^^ ^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `colourful::ColourBrush` [INFO] [stdout] --> src/lib.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use colourful::ColourBrush; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `elf::abi::SHT_STRTAB` [INFO] [stdout] --> src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use elf::abi::SHT_STRTAB; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `bfi_32`, `sbfx_32`, `sbfx_64`, and `ubfx_32` [INFO] [stdout] --> src/lib.rs:14:92 [INFO] [stdout] | [INFO] [stdout] 14 | ...}, mem::{Memory, PhysPtr, VirtPtr}, utils::{bfi_32, bfi_64, sbfx_32, sbfx_64, ubfx_32, ubfx_64}}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:1289:28 [INFO] [stdout] | [INFO] [stdout] 1289 | sstatus |= (m & (3 << 32)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1289 - sstatus |= (m & (3 << 32)); [INFO] [stdout] 1289 + sstatus |= m & (3 << 32); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ptr` [INFO] [stdout] --> src/lib.rs:1069:25 [INFO] [stdout] | [INFO] [stdout] 1069 | let ptr = VirtPtr(ptr); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ptr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/lib.rs:1071:25 [INFO] [stdout] | [INFO] [stdout] 1071 | let slice = &rs2_val.to_ne_bytes(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::thread::sleep_ms`: replaced by `std::thread::sleep` [INFO] [stdout] --> src/lib.rs:9:158 [INFO] [stdout] | [INFO] [stdout] 9 | ..., sync::{atomic::{AtomicU64, Ordering}, Arc, Mutex}, thread::sleep_ms, time::Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `cold_path` has been stable since 1.95.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(cold_path)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `phys_ppn` [INFO] [stdout] --> src/lib.rs:1871:25 [INFO] [stdout] | [INFO] [stdout] 1871 | let phys_ppn = ppn; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_phys_ppn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AccessType` is more private than the item `Local::read_u8` [INFO] [stdout] --> src/lib.rs:1733:5 [INFO] [stdout] | [INFO] [stdout] 1733 | pub fn read_u8(&mut self, shared: &Shared, code_ptr: CodePtr, ty: AccessType, ptr: VirtPtr) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `Local::read_u8` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AccessType` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:1905:1 [INFO] [stdout] | [INFO] [stdout] 1905 | enum AccessType { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AccessType` is more private than the item `Local::read_u16` [INFO] [stdout] --> src/lib.rs:1739:5 [INFO] [stdout] | [INFO] [stdout] 1739 | pub fn read_u16(&mut self, shared: &Shared, code_ptr: CodePtr, ty: AccessType, ptr: VirtPtr) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `Local::read_u16` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AccessType` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:1905:1 [INFO] [stdout] | [INFO] [stdout] 1905 | enum AccessType { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AccessType` is more private than the item `Local::read_u32` [INFO] [stdout] --> src/lib.rs:1745:5 [INFO] [stdout] | [INFO] [stdout] 1745 | pub fn read_u32(&mut self, shared: &Shared, code_ptr: CodePtr, ty: AccessType, ptr: VirtPtr) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `Local::read_u32` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AccessType` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:1905:1 [INFO] [stdout] | [INFO] [stdout] 1905 | enum AccessType { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AccessType` is more private than the item `Local::read_u64` [INFO] [stdout] --> src/lib.rs:1751:5 [INFO] [stdout] | [INFO] [stdout] 1751 | pub fn read_u64(&mut self, shared: &Shared, code_ptr: CodePtr, ty: AccessType, ptr: VirtPtr) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `Local::read_u64` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AccessType` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:1905:1 [INFO] [stdout] | [INFO] [stdout] 1905 | enum AccessType { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AccessType` is more private than the item `Local::mmu_translate` [INFO] [stdout] --> src/lib.rs:1764:5 [INFO] [stdout] | [INFO] [stdout] 1764 | pub fn mmu_translate(&mut self, shared: &Shared, code_ptr: CodePtr, ty: AccessType, ptr: VirtPtr) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `Local::mmu_translate` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AccessType` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:1905:1 [INFO] [stdout] | [INFO] [stdout] 1905 | enum AccessType { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REGIONS` is never used [INFO] [stdout] --> src/mem.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const REGIONS : [Region; 5] = [ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `range` and `perm` are never read [INFO] [stdout] --> src/mem.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct Region { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 44 | range: Range, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 45 | perm : Priv, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Region` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INSTR_INDEX_MASK` is never used [INFO] [stdout] --> src/instrs.rs:110:7 [INFO] [stdout] | [INFO] [stdout] 110 | const INSTR_INDEX_MASK : u64 = PAGE_INSTR_SIZE as u64 - 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: feature `array_ptr_get` is declared but not used [INFO] [stdout] --> src/lib.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(array_ptr_get)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_features)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ptr` [INFO] [stdout] --> src/lib.rs:1069:25 [INFO] [stdout] | [INFO] [stdout] 1069 | let ptr = VirtPtr(ptr); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ptr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/lib.rs:1071:25 [INFO] [stdout] | [INFO] [stdout] 1071 | let slice = &rs2_val.to_ne_bytes(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `phys_ppn` [INFO] [stdout] --> src/lib.rs:1871:25 [INFO] [stdout] | [INFO] [stdout] 1871 | let phys_ppn = ppn; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_phys_ppn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AccessType` is more private than the item `Local::read_u8` [INFO] [stdout] --> src/lib.rs:1733:5 [INFO] [stdout] | [INFO] [stdout] 1733 | pub fn read_u8(&mut self, shared: &Shared, code_ptr: CodePtr, ty: AccessType, ptr: VirtPtr) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `Local::read_u8` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AccessType` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:1905:1 [INFO] [stdout] | [INFO] [stdout] 1905 | enum AccessType { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AccessType` is more private than the item `Local::read_u16` [INFO] [stdout] --> src/lib.rs:1739:5 [INFO] [stdout] | [INFO] [stdout] 1739 | pub fn read_u16(&mut self, shared: &Shared, code_ptr: CodePtr, ty: AccessType, ptr: VirtPtr) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `Local::read_u16` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AccessType` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:1905:1 [INFO] [stdout] | [INFO] [stdout] 1905 | enum AccessType { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AccessType` is more private than the item `Local::read_u32` [INFO] [stdout] --> src/lib.rs:1745:5 [INFO] [stdout] | [INFO] [stdout] 1745 | pub fn read_u32(&mut self, shared: &Shared, code_ptr: CodePtr, ty: AccessType, ptr: VirtPtr) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `Local::read_u32` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AccessType` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:1905:1 [INFO] [stdout] | [INFO] [stdout] 1905 | enum AccessType { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AccessType` is more private than the item `Local::read_u64` [INFO] [stdout] --> src/lib.rs:1751:5 [INFO] [stdout] | [INFO] [stdout] 1751 | pub fn read_u64(&mut self, shared: &Shared, code_ptr: CodePtr, ty: AccessType, ptr: VirtPtr) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `Local::read_u64` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AccessType` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:1905:1 [INFO] [stdout] | [INFO] [stdout] 1905 | enum AccessType { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AccessType` is more private than the item `Local::mmu_translate` [INFO] [stdout] --> src/lib.rs:1764:5 [INFO] [stdout] | [INFO] [stdout] 1764 | pub fn mmu_translate(&mut self, shared: &Shared, code_ptr: CodePtr, ty: AccessType, ptr: VirtPtr) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `Local::mmu_translate` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AccessType` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:1905:1 [INFO] [stdout] | [INFO] [stdout] 1905 | enum AccessType { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REGIONS` is never used [INFO] [stdout] --> src/mem.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const REGIONS : [Region; 5] = [ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `range` and `perm` are never read [INFO] [stdout] --> src/mem.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct Region { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 44 | range: Range, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 45 | perm : Priv, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Region` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INSTR_INDEX_MASK` is never used [INFO] [stdout] --> src/instrs.rs:110:7 [INFO] [stdout] | [INFO] [stdout] 110 | const INSTR_INDEX_MASK : u64 = PAGE_INSTR_SIZE as u64 - 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: feature `array_ptr_get` is declared but not used [INFO] [stdout] --> src/lib.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(array_ptr_get)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_features)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Csr`, `INT_EXT_S`, and `Memory` [INFO] [stdout] --> src/main.rs:6:28 [INFO] [stdout] | [INFO] [stdout] 6 | use riscv_emulator::{mem::{Memory, PhysPtr}, Csr, Emulator, Shared, CSR_MIP, INT_EXT_M, INT_EXT_S}; [INFO] [stdout] | ^^^^^^ ^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Csr`, `INT_EXT_S`, and `Memory` [INFO] [stdout] --> src/main.rs:6:28 [INFO] [stdout] | [INFO] [stdout] 6 | use riscv_emulator::{mem::{Memory, PhysPtr}, Csr, Emulator, Shared, CSR_MIP, INT_EXT_M, INT_EXT_S}; [INFO] [stdout] | ^^^^^^ ^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:371:9 [INFO] [stdout] | [INFO] [stdout] 371 | let mut now = Instant::now(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `now` [INFO] [stdout] --> src/main.rs:371:9 [INFO] [stdout] | [INFO] [stdout] 371 | let mut now = Instant::now(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_now` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `window_id` [INFO] [stdout] --> src/main.rs:482:9 [INFO] [stdout] | [INFO] [stdout] 482 | window_id: winit::window::WindowId, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_window_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `device_id` [INFO] [stdout] --> src/main.rs:526:56 [INFO] [stdout] | [INFO] [stdout] 526 | winit::event::WindowEvent::KeyboardInput { device_id, event, is_synthetic } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `device_id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_synthetic` [INFO] [stdout] --> src/main.rs:526:74 [INFO] [stdout] | [INFO] [stdout] 526 | winit::event::WindowEvent::KeyboardInput { device_id, event, is_synthetic } => { [INFO] [stdout] | ^^^^^^^^^^^^ help: try ignoring the field: `is_synthetic: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:234:10 [INFO] [stdout] | [INFO] [stdout] 234 | Pass(Emulator), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 234 - Pass(Emulator), [INFO] [stdout] 234 + Pass(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:371:9 [INFO] [stdout] | [INFO] [stdout] 371 | let mut now = Instant::now(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `now` [INFO] [stdout] --> src/main.rs:371:9 [INFO] [stdout] | [INFO] [stdout] 371 | let mut now = Instant::now(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_now` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `window_id` [INFO] [stdout] --> src/main.rs:482:9 [INFO] [stdout] | [INFO] [stdout] 482 | window_id: winit::window::WindowId, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_window_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `device_id` [INFO] [stdout] --> src/main.rs:526:56 [INFO] [stdout] | [INFO] [stdout] 526 | winit::event::WindowEvent::KeyboardInput { device_id, event, is_synthetic } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `device_id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_synthetic` [INFO] [stdout] --> src/main.rs:526:74 [INFO] [stdout] | [INFO] [stdout] 526 | winit::event::WindowEvent::KeyboardInput { device_id, event, is_synthetic } => { [INFO] [stdout] | ^^^^^^^^^^^^ help: try ignoring the field: `is_synthetic: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:234:10 [INFO] [stdout] | [INFO] [stdout] 234 | Pass(Emulator), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 234 - Pass(Emulator), [INFO] [stdout] 234 + Pass(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 53.00s [INFO] running `Command { std: "docker" "inspect" "55955974c6994a33e1dc7a3978341f574b9add2c9972b61101132d17b6a849cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "55955974c6994a33e1dc7a3978341f574b9add2c9972b61101132d17b6a849cd", kill_on_drop: false }` [INFO] [stdout] 55955974c6994a33e1dc7a3978341f574b9add2c9972b61101132d17b6a849cd