[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 master#bca37a20bd376ce3fd138e7cdee7fe704e0f8814 for pr-150727 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftodaymare%2Friscv-emulator" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/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-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/todaymare/riscv-emulator on toolchain bca37a20bd376ce3fd138e7cdee7fe704e0f8814 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "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" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/todaymare/colourful` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pixels v0.15.0 [INFO] [stderr] Downloaded elf v0.8.0 [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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c7bf99d1b61727787bf4ea6c1a04372dd2bd177e3a1e99ac8bc731263d09c1ef [INFO] running `Command { std: "docker" "start" "-a" "c7bf99d1b61727787bf4ea6c1a04372dd2bd177e3a1e99ac8bc731263d09c1ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c7bf99d1b61727787bf4ea6c1a04372dd2bd177e3a1e99ac8bc731263d09c1ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7bf99d1b61727787bf4ea6c1a04372dd2bd177e3a1e99ac8bc731263d09c1ef", kill_on_drop: false }` [INFO] [stdout] c7bf99d1b61727787bf4ea6c1a04372dd2bd177e3a1e99ac8bc731263d09c1ef [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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fc0bc6ac705d823dc47aafcebd806687be27ef4f65dbac2405c7167933890635 [INFO] running `Command { std: "docker" "start" "-a" "fc0bc6ac705d823dc47aafcebd806687be27ef4f65dbac2405c7167933890635", kill_on_drop: false }` [INFO] [stderr] Checking log v0.4.28 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling find-msvc-tools v0.1.4 [INFO] [stderr] Compiling syn v2.0.110 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Compiling wayland-sys v0.31.7 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Checking bytemuck v1.24.0 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling wayland-scanner v0.31.7 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking hashbrown v0.16.0 [INFO] [stderr] Compiling khronos-egl v6.0.0 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Compiling ash v0.37.3+1.3.251 [INFO] [stderr] Checking linux-raw-sys v0.4.15 [INFO] [stderr] Checking codespan-reporting v0.11.1 [INFO] [stderr] Checking bit-set v0.5.3 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Compiling wgpu-hal v0.19.5 [INFO] [stderr] Compiling cc v1.2.45 [INFO] [stderr] Checking spirv v0.3.0+sdk-1.3.268.0 [INFO] [stderr] Checking gpu-alloc-types v0.3.0 [INFO] [stderr] Checking gpu-descriptor-types v0.1.2 [INFO] [stderr] Checking unicode-xid v0.2.6 [INFO] [stderr] Checking hexf-parse v0.2.1 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Compiling wgpu-core v0.19.4 [INFO] [stderr] Checking wgpu-types v0.19.2 [INFO] [stderr] Checking gpu-alloc v0.6.0 [INFO] [stderr] Checking xcursor v0.3.10 [INFO] [stderr] Checking cursor-icon v1.2.0 [INFO] [stderr] Compiling smithay-client-toolkit v0.19.2 [INFO] [stderr] Checking ttf-parser v0.25.1 [INFO] [stderr] Checking profiling v1.0.17 [INFO] [stderr] Checking renderdoc-sys v1.1.0 [INFO] [stderr] Checking glow v0.13.1 [INFO] [stderr] Checking strict-num v0.1.1 [INFO] [stderr] Checking indexmap v2.12.0 [INFO] [stderr] Checking safe_arch v0.7.4 [INFO] [stderr] Checking memmap2 v0.9.9 [INFO] [stderr] Checking tiny-skia-path v0.11.4 [INFO] [stderr] Compiling wgpu v0.19.4 [INFO] [stderr] Checking ab_glyph_rasterizer v0.1.10 [INFO] [stderr] Compiling winit v0.30.12 [INFO] [stderr] Checking x11rb-protocol v0.13.2 [INFO] [stderr] Checking wide v0.7.33 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Checking as-raw-xcb-connection v1.0.1 [INFO] [stderr] Checking x11-dl v2.21.0 [INFO] [stderr] Checking xkbcommon-dl v0.4.2 [INFO] [stderr] Checking smol_str v0.2.2 [INFO] [stderr] Checking tiny-skia v0.11.4 [INFO] [stderr] Checking pollster v0.3.0 [INFO] [stderr] Checking elf v0.8.0 [INFO] [stderr] Checking colourful v0.1.0 (https://github.com/todaymare/colourful#38f807d2) [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling wayland-backend v0.3.11 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking naga v0.19.2 [INFO] [stderr] Checking gpu-descriptor v0.2.4 [INFO] [stderr] Checking ultraviolet v0.9.2 [INFO] [stderr] Checking owned_ttf_parser v0.25.1 [INFO] [stderr] Checking ab_glyph v0.2.32 [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-client v0.31.11 [INFO] [stderr] Checking wayland-csd-frame v0.3.0 [INFO] [stderr] Checking wayland-protocols v0.32.9 [INFO] [stderr] Checking wayland-cursor v0.31.11 [INFO] [stderr] Checking calloop-wayland-source v0.3.0 [INFO] [stderr] Checking wayland-protocols-wlr v0.3.9 [INFO] [stderr] Checking wayland-protocols-plasma v0.3.9 [INFO] [stderr] Checking x11rb v0.13.2 [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: 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: 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: 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: 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: 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: 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 1m 05s [INFO] running `Command { std: "docker" "inspect" "fc0bc6ac705d823dc47aafcebd806687be27ef4f65dbac2405c7167933890635", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc0bc6ac705d823dc47aafcebd806687be27ef4f65dbac2405c7167933890635", kill_on_drop: false }` [INFO] [stdout] fc0bc6ac705d823dc47aafcebd806687be27ef4f65dbac2405c7167933890635