[INFO] cloning repository https://github.com/pleasewhy/riscv-vm-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pleasewhy/riscv-vm-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpleasewhy%2Friscv-vm-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpleasewhy%2Friscv-vm-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9121a8245472de13860dd768df00011d6acb53eb [INFO] building pleasewhy/riscv-vm-rust against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpleasewhy%2Friscv-vm-rust" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/pleasewhy/riscv-vm-rust on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/pleasewhy/riscv-vm-rust [INFO] finished tweaking git repo https://github.com/pleasewhy/riscv-vm-rust [INFO] tweaked toml for git repo https://github.com/pleasewhy/riscv-vm-rust written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/pleasewhy/riscv-vm-rust 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating git repository `https://github.com/pleasewhy/riscv-decode` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded elf v0.0.10 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 86156e575ee165bb9790856450d070b003528168cee472df6aa122a1505fcf76 [INFO] running `Command { std: "docker" "start" "-a" "86156e575ee165bb9790856450d070b003528168cee472df6aa122a1505fcf76", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "86156e575ee165bb9790856450d070b003528168cee472df6aa122a1505fcf76", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "86156e575ee165bb9790856450d070b003528168cee472df6aa122a1505fcf76", kill_on_drop: false }` [INFO] [stdout] 86156e575ee165bb9790856450d070b003528168cee472df6aa122a1505fcf76 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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 -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fe3fe123c3ca38c47b2d8b7771de5db8f4ccdc3579744c05f692818cdf235487 [INFO] running `Command { std: "docker" "start" "-a" "fe3fe123c3ca38c47b2d8b7771de5db8f4ccdc3579744c05f692818cdf235487", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.112 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling time-macros v0.2.3 [INFO] [stderr] Compiling byteorder v0.5.3 [INFO] [stderr] Compiling riscv-decode v0.2.0 (https://github.com/pleasewhy/riscv-decode?rev=b7668c11c8fdcc4db2da50c7e5b041f60736b135#b7668c11) [INFO] [stderr] Compiling elf v0.0.10 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling colored v1.9.3 [INFO] [stderr] Compiling time v0.3.5 [INFO] [stderr] Compiling simple_logger v1.16.0 [INFO] [stderr] Compiling riscv-vm-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `elf::types::PT_LOAD` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use elf::types::PT_LOAD; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Debug` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::fmt::Debug; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::os::unix::prelude::FileExt` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::os::unix::prelude::FileExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::riscv_vm::memory` [INFO] [stdout] --> src/riscv_core/riscv.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::riscv_vm::memory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `riscv_mem_fetch_inst` should have an upper camel case name [INFO] [stdout] --> src/riscv_core/riscv.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub type riscv_mem_fetch_inst = Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `RiscvMemFetchInst` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/riscv_vm/memory.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | for i in 0..0xffff { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/riscv_vm/memory.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rd` is never read [INFO] [stdout] --> src/riscv_core/riscv.rs:155:13 [INFO] [stdout] | [INFO] [stdout] 155 | let mut rd = 0; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/riscv_core/riscv.rs:202:9 [INFO] [stdout] | [INFO] [stdout] 202 | let mut rd; [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: value assigned to `rd` is never read [INFO] [stdout] --> src/riscv_core/riscv.rs:260:13 [INFO] [stdout] | [INFO] [stdout] 260 | let mut rd = 0; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `imm` is never read [INFO] [stdout] --> src/riscv_core/riscv.rs:276:13 [INFO] [stdout] | [INFO] [stdout] 276 | let mut imm = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `taken` is never read [INFO] [stdout] --> src/riscv_core/riscv.rs:277:13 [INFO] [stdout] | [INFO] [stdout] 277 | let mut taken = false; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut mem = Arc::new(Mutex::new(Memory::new())); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InstructionError` and `MemoryError` are never constructed [INFO] [stdout] --> src/riscv_vm/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum RuntimeError { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 6 | /// Instruction Error. [INFO] [stdout] 7 | InstructionError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | /// Memory Error. [INFO] [stdout] 9 | MemoryError, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RuntimeError` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VmState` is never constructed [INFO] [stdout] --> src/riscv_vm/state.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct VmState { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/riscv_core/exception.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Exception { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 3 | InstructionMisaligned, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 4 | InstructionFault, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | IllegalInstruction, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 6 | Breakpoint, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 7 | LoadFault, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 8 | StoreMisaligned, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | StoreFault, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 10 | UserEnvCall, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 11 | InstructionPageFault, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | LoadPageFault, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 13 | StorePageFault, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 14 | Unknown, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Exception` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `RiscvFloat` is never used [INFO] [stdout] --> src/riscv_core/riscv.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | pub type RiscvFloat = f32; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `riscv_mem_fetch_inst` is never used [INFO] [stdout] --> src/riscv_core/riscv.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub type riscv_mem_fetch_inst = Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cal_addr` is never used [INFO] [stdout] --> src/riscv_core/riscv.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn cal_addr(rv: &RiscvCore, reg: u32, imm: u32) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_opcode` is never used [INFO] [stdout] --> src/riscv_core/riscv.rs:397:4 [INFO] [stdout] | [INFO] [stdout] 397 | fn get_opcode(inst: &Instruction) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_ra` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | pub(crate) const rv_reg_ra: u8 = 1; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_gp` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) const rv_reg_gp: u8 = 3; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_tp` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) const rv_reg_tp: u8 = 4; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_t0` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) const rv_reg_t0: u8 = 5; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_t1` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) const rv_reg_t1: u8 = 6; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_t2` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | pub(crate) const rv_reg_t2: u8 = 7; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s0` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) const rv_reg_s0: u8 = 8; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s1` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) const rv_reg_s1: u8 = 9; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_a1` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | pub(crate) const rv_reg_a1: u8 = 11; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_a2` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | pub(crate) const rv_reg_a2: u8 = 12; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_a3` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 14 | pub(crate) const rv_reg_a3: u8 = 13; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_a4` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | pub(crate) const rv_reg_a4: u8 = 14; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_a5` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 16 | pub(crate) const rv_reg_a5: u8 = 15; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_a6` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) const rv_reg_a6: u8 = 16; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_a7` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:18:18 [INFO] [stdout] | [INFO] [stdout] 18 | pub(crate) const rv_reg_a7: u8 = 17; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s2` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:19:18 [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) const rv_reg_s2: u8 = 18; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s3` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 20 | pub(crate) const rv_reg_s3: u8 = 19; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s4` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | pub(crate) const rv_reg_s4: u8 = 20; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s5` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 22 | pub(crate) const rv_reg_s5: u8 = 21; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s6` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 23 | pub(crate) const rv_reg_s6: u8 = 22; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s7` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) const rv_reg_s7: u8 = 23; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s8` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:25:18 [INFO] [stdout] | [INFO] [stdout] 25 | pub(crate) const rv_reg_s8: u8 = 24; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s9` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) const rv_reg_s9: u8 = 25; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s10` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) const rv_reg_s10: u8 = 26; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s11` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:28:18 [INFO] [stdout] | [INFO] [stdout] 28 | pub(crate) const rv_reg_s11: u8 = 27; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_t3` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:29:18 [INFO] [stdout] | [INFO] [stdout] 29 | pub(crate) const rv_reg_t3: u8 = 28; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_t4` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:30:18 [INFO] [stdout] | [INFO] [stdout] 30 | pub(crate) const rv_reg_t4: u8 = 29; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_t5` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:31:18 [INFO] [stdout] | [INFO] [stdout] 31 | pub(crate) const rv_reg_t5: u8 = 30; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_t6` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:32:18 [INFO] [stdout] | [INFO] [stdout] 32 | pub(crate) const rv_reg_t6: u8 = 31; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `PC` should have a snake case name [INFO] [stdout] --> src/riscv_core/riscv.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub PC: RiscvWord, [INFO] [stdout] | ^^ help: convert the identifier to snake case: `pc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `opcode_handler` should have an upper case name [INFO] [stdout] --> src/riscv_core/riscv.rs:362:11 [INFO] [stdout] | [INFO] [stdout] 362 | pub const opcode_handler: [Option; 32] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper case: `OPCODE_HANDLER` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_zero` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) const rv_reg_zero: u8 = 0; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_ZERO` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_ra` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | pub(crate) const rv_reg_ra: u8 = 1; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_RA` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_sp` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) const rv_reg_sp: u8 = 2; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_SP` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_gp` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) const rv_reg_gp: u8 = 3; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_GP` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_tp` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) const rv_reg_tp: u8 = 4; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_TP` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_t0` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) const rv_reg_t0: u8 = 5; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_T0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_t1` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) const rv_reg_t1: u8 = 6; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_T1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_t2` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | pub(crate) const rv_reg_t2: u8 = 7; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_T2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s0` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) const rv_reg_s0: u8 = 8; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_S0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s1` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) const rv_reg_s1: u8 = 9; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_S1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_a0` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) const rv_reg_a0: u8 = 10; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_A0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_a1` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | pub(crate) const rv_reg_a1: u8 = 11; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_A1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_a2` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | pub(crate) const rv_reg_a2: u8 = 12; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_A2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_a3` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 14 | pub(crate) const rv_reg_a3: u8 = 13; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_A3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_a4` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | pub(crate) const rv_reg_a4: u8 = 14; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_A4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_a5` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 16 | pub(crate) const rv_reg_a5: u8 = 15; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_A5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_a6` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) const rv_reg_a6: u8 = 16; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_A6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_a7` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:18:18 [INFO] [stdout] | [INFO] [stdout] 18 | pub(crate) const rv_reg_a7: u8 = 17; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_A7` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s2` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:19:18 [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) const rv_reg_s2: u8 = 18; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_S2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s3` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 20 | pub(crate) const rv_reg_s3: u8 = 19; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_S3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s4` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | pub(crate) const rv_reg_s4: u8 = 20; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_S4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s5` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 22 | pub(crate) const rv_reg_s5: u8 = 21; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_S5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s6` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 23 | pub(crate) const rv_reg_s6: u8 = 22; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_S6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s7` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) const rv_reg_s7: u8 = 23; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_S7` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s8` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:25:18 [INFO] [stdout] | [INFO] [stdout] 25 | pub(crate) const rv_reg_s8: u8 = 24; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_S8` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s9` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) const rv_reg_s9: u8 = 25; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_S9` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s10` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) const rv_reg_s10: u8 = 26; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_S10` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s11` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:28:18 [INFO] [stdout] | [INFO] [stdout] 28 | pub(crate) const rv_reg_s11: u8 = 27; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_S11` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_t3` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:29:18 [INFO] [stdout] | [INFO] [stdout] 29 | pub(crate) const rv_reg_t3: u8 = 28; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_T3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_t4` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:30:18 [INFO] [stdout] | [INFO] [stdout] 30 | pub(crate) const rv_reg_t4: u8 = 29; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_T4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_t5` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:31:18 [INFO] [stdout] | [INFO] [stdout] 31 | pub(crate) const rv_reg_t5: u8 = 30; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_T5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_t6` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:32:18 [INFO] [stdout] | [INFO] [stdout] 32 | pub(crate) const rv_reg_t6: u8 = 31; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_T6` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.63s [INFO] running `Command { std: "docker" "inspect" "fe3fe123c3ca38c47b2d8b7771de5db8f4ccdc3579744c05f692818cdf235487", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fe3fe123c3ca38c47b2d8b7771de5db8f4ccdc3579744c05f692818cdf235487", kill_on_drop: false }` [INFO] [stdout] fe3fe123c3ca38c47b2d8b7771de5db8f4ccdc3579744c05f692818cdf235487 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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 -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 59c1ac9ff857845dff564b53b5afdfbf728ef5372d4952174e559b701dab2965 [INFO] running `Command { std: "docker" "start" "-a" "59c1ac9ff857845dff564b53b5afdfbf728ef5372d4952174e559b701dab2965", kill_on_drop: false }` [INFO] [stderr] Compiling riscv-vm-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `elf::types::PT_LOAD` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use elf::types::PT_LOAD; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Debug` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::fmt::Debug; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::os::unix::prelude::FileExt` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::os::unix::prelude::FileExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::riscv_vm::memory` [INFO] [stdout] --> src/riscv_core/riscv.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::riscv_vm::memory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `riscv_mem_fetch_inst` should have an upper camel case name [INFO] [stdout] --> src/riscv_core/riscv.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub type riscv_mem_fetch_inst = Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `RiscvMemFetchInst` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/riscv_vm/memory.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | for i in 0..0xffff { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/riscv_vm/memory.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rd` is never read [INFO] [stdout] --> src/riscv_core/riscv.rs:155:13 [INFO] [stdout] | [INFO] [stdout] 155 | let mut rd = 0; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/riscv_core/riscv.rs:202:9 [INFO] [stdout] | [INFO] [stdout] 202 | let mut rd; [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: value assigned to `rd` is never read [INFO] [stdout] --> src/riscv_core/riscv.rs:260:13 [INFO] [stdout] | [INFO] [stdout] 260 | let mut rd = 0; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `imm` is never read [INFO] [stdout] --> src/riscv_core/riscv.rs:276:13 [INFO] [stdout] | [INFO] [stdout] 276 | let mut imm = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `taken` is never read [INFO] [stdout] --> src/riscv_core/riscv.rs:277:13 [INFO] [stdout] | [INFO] [stdout] 277 | let mut taken = false; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut mem = Arc::new(Mutex::new(Memory::new())); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InstructionError` and `MemoryError` are never constructed [INFO] [stdout] --> src/riscv_vm/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum RuntimeError { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 6 | /// Instruction Error. [INFO] [stdout] 7 | InstructionError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | /// Memory Error. [INFO] [stdout] 9 | MemoryError, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RuntimeError` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VmState` is never constructed [INFO] [stdout] --> src/riscv_vm/state.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct VmState { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/riscv_core/exception.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Exception { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 3 | InstructionMisaligned, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 4 | InstructionFault, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | IllegalInstruction, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 6 | Breakpoint, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 7 | LoadFault, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 8 | StoreMisaligned, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | StoreFault, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 10 | UserEnvCall, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 11 | InstructionPageFault, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | LoadPageFault, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 13 | StorePageFault, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 14 | Unknown, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Exception` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `RiscvFloat` is never used [INFO] [stdout] --> src/riscv_core/riscv.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | pub type RiscvFloat = f32; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `riscv_mem_fetch_inst` is never used [INFO] [stdout] --> src/riscv_core/riscv.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub type riscv_mem_fetch_inst = Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cal_addr` is never used [INFO] [stdout] --> src/riscv_core/riscv.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn cal_addr(rv: &RiscvCore, reg: u32, imm: u32) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_opcode` is never used [INFO] [stdout] --> src/riscv_core/riscv.rs:397:4 [INFO] [stdout] | [INFO] [stdout] 397 | fn get_opcode(inst: &Instruction) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_ra` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | pub(crate) const rv_reg_ra: u8 = 1; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_gp` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) const rv_reg_gp: u8 = 3; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_tp` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) const rv_reg_tp: u8 = 4; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_t0` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) const rv_reg_t0: u8 = 5; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_t1` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) const rv_reg_t1: u8 = 6; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_t2` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | pub(crate) const rv_reg_t2: u8 = 7; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s0` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) const rv_reg_s0: u8 = 8; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s1` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) const rv_reg_s1: u8 = 9; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_a1` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | pub(crate) const rv_reg_a1: u8 = 11; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_a2` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | pub(crate) const rv_reg_a2: u8 = 12; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_a3` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 14 | pub(crate) const rv_reg_a3: u8 = 13; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_a4` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | pub(crate) const rv_reg_a4: u8 = 14; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_a5` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 16 | pub(crate) const rv_reg_a5: u8 = 15; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_a6` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) const rv_reg_a6: u8 = 16; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_a7` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:18:18 [INFO] [stdout] | [INFO] [stdout] 18 | pub(crate) const rv_reg_a7: u8 = 17; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s2` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:19:18 [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) const rv_reg_s2: u8 = 18; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s3` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 20 | pub(crate) const rv_reg_s3: u8 = 19; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s4` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | pub(crate) const rv_reg_s4: u8 = 20; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s5` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 22 | pub(crate) const rv_reg_s5: u8 = 21; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s6` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 23 | pub(crate) const rv_reg_s6: u8 = 22; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s7` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) const rv_reg_s7: u8 = 23; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s8` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:25:18 [INFO] [stdout] | [INFO] [stdout] 25 | pub(crate) const rv_reg_s8: u8 = 24; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s9` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) const rv_reg_s9: u8 = 25; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s10` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) const rv_reg_s10: u8 = 26; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s11` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:28:18 [INFO] [stdout] | [INFO] [stdout] 28 | pub(crate) const rv_reg_s11: u8 = 27; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_t3` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:29:18 [INFO] [stdout] | [INFO] [stdout] 29 | pub(crate) const rv_reg_t3: u8 = 28; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_t4` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:30:18 [INFO] [stdout] | [INFO] [stdout] 30 | pub(crate) const rv_reg_t4: u8 = 29; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_t5` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:31:18 [INFO] [stdout] | [INFO] [stdout] 31 | pub(crate) const rv_reg_t5: u8 = 30; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_t6` is never used [INFO] [stdout] --> src/riscv_core/consts.rs:32:18 [INFO] [stdout] | [INFO] [stdout] 32 | pub(crate) const rv_reg_t6: u8 = 31; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `PC` should have a snake case name [INFO] [stdout] --> src/riscv_core/riscv.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub PC: RiscvWord, [INFO] [stdout] | ^^ help: convert the identifier to snake case: `pc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `opcode_handler` should have an upper case name [INFO] [stdout] --> src/riscv_core/riscv.rs:362:11 [INFO] [stdout] | [INFO] [stdout] 362 | pub const opcode_handler: [Option; 32] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper case: `OPCODE_HANDLER` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_zero` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) const rv_reg_zero: u8 = 0; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_ZERO` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_ra` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | pub(crate) const rv_reg_ra: u8 = 1; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_RA` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_sp` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) const rv_reg_sp: u8 = 2; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_SP` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_gp` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) const rv_reg_gp: u8 = 3; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_GP` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_tp` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) const rv_reg_tp: u8 = 4; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_TP` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_t0` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) const rv_reg_t0: u8 = 5; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_T0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_t1` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) const rv_reg_t1: u8 = 6; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_T1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_t2` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | pub(crate) const rv_reg_t2: u8 = 7; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_T2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s0` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) const rv_reg_s0: u8 = 8; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_S0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s1` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) const rv_reg_s1: u8 = 9; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_S1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_a0` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) const rv_reg_a0: u8 = 10; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_A0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_a1` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | pub(crate) const rv_reg_a1: u8 = 11; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_A1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_a2` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | pub(crate) const rv_reg_a2: u8 = 12; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_A2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_a3` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 14 | pub(crate) const rv_reg_a3: u8 = 13; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_A3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_a4` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | pub(crate) const rv_reg_a4: u8 = 14; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_A4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_a5` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 16 | pub(crate) const rv_reg_a5: u8 = 15; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_A5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_a6` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) const rv_reg_a6: u8 = 16; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_A6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_a7` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:18:18 [INFO] [stdout] | [INFO] [stdout] 18 | pub(crate) const rv_reg_a7: u8 = 17; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_A7` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s2` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:19:18 [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) const rv_reg_s2: u8 = 18; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_S2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s3` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 20 | pub(crate) const rv_reg_s3: u8 = 19; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_S3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s4` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | pub(crate) const rv_reg_s4: u8 = 20; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_S4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s5` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 22 | pub(crate) const rv_reg_s5: u8 = 21; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_S5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s6` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 23 | pub(crate) const rv_reg_s6: u8 = 22; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_S6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s7` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) const rv_reg_s7: u8 = 23; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_S7` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s8` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:25:18 [INFO] [stdout] | [INFO] [stdout] 25 | pub(crate) const rv_reg_s8: u8 = 24; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_S8` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s9` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) const rv_reg_s9: u8 = 25; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_S9` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s10` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) const rv_reg_s10: u8 = 26; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_S10` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_s11` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:28:18 [INFO] [stdout] | [INFO] [stdout] 28 | pub(crate) const rv_reg_s11: u8 = 27; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_S11` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_t3` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:29:18 [INFO] [stdout] | [INFO] [stdout] 29 | pub(crate) const rv_reg_t3: u8 = 28; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_T3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_t4` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:30:18 [INFO] [stdout] | [INFO] [stdout] 30 | pub(crate) const rv_reg_t4: u8 = 29; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_T4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_t5` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:31:18 [INFO] [stdout] | [INFO] [stdout] 31 | pub(crate) const rv_reg_t5: u8 = 30; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_T5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `rv_reg_t6` should have an upper case name [INFO] [stdout] --> src/riscv_core/consts.rs:32:18 [INFO] [stdout] | [INFO] [stdout] 32 | pub(crate) const rv_reg_t6: u8 = 31; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `RV_REG_T6` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.41s [INFO] running `Command { std: "docker" "inspect" "59c1ac9ff857845dff564b53b5afdfbf728ef5372d4952174e559b701dab2965", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "59c1ac9ff857845dff564b53b5afdfbf728ef5372d4952174e559b701dab2965", kill_on_drop: false }` [INFO] [stdout] 59c1ac9ff857845dff564b53b5afdfbf728ef5372d4952174e559b701dab2965