[INFO] cloning repository https://github.com/cfeitong/cft-riscv-vm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/cfeitong/cft-riscv-vm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcfeitong%2Fcft-riscv-vm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcfeitong%2Fcft-riscv-vm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c578f95043030cf333870c2d3321cc3370050e86 [INFO] checking cfeitong/cft-riscv-vm against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcfeitong%2Fcft-riscv-vm" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/cfeitong/cft-riscv-vm on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/cfeitong/cft-riscv-vm [INFO] finished tweaking git repo https://github.com/cfeitong/cft-riscv-vm [INFO] tweaked toml for git repo https://github.com/cfeitong/cft-riscv-vm written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/cfeitong/cft-riscv-vm 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ruzstd v0.3.1 [INFO] [stderr] Downloaded tracing-attributes v0.1.24 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 964d47e94a534024f1f2bb43f87e5e709e1e523b9a11f065ca62d2cfb52d56fc [INFO] running `Command { std: "docker" "start" "-a" "964d47e94a534024f1f2bb43f87e5e709e1e523b9a11f065ca62d2cfb52d56fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "964d47e94a534024f1f2bb43f87e5e709e1e523b9a11f065ca62d2cfb52d56fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "964d47e94a534024f1f2bb43f87e5e709e1e523b9a11f065ca62d2cfb52d56fc", kill_on_drop: false }` [INFO] [stdout] 964d47e94a534024f1f2bb43f87e5e709e1e523b9a11f065ca62d2cfb52d56fc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 97b0c27345601e4946679ae62abc8da33ebc45a2616df20417c46eb7d31b626b [INFO] running `Command { std: "docker" "start" "-a" "97b0c27345601e4946679ae62abc8da33ebc45a2616df20417c46eb7d31b626b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.63 [INFO] [stderr] Compiling unicode-ident v1.0.9 [INFO] [stderr] Compiling quote v1.0.28 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling thiserror v1.0.40 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking twox-hash v1.6.3 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Checking thread_local v1.1.7 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking sharded-slab v0.1.4 [INFO] [stderr] Checking pin-project-lite v0.2.10 [INFO] [stderr] Checking smallvec v1.10.0 [INFO] [stderr] Compiling cc v1.0.79 [INFO] [stderr] Checking flate2 v1.0.26 [INFO] [stderr] Checking tracing-log v0.1.3 [INFO] [stderr] Compiling eyre v0.6.8 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Checking gimli v0.27.3 [INFO] [stderr] Compiling rustix v0.37.23 [INFO] [stderr] Checking tracing-subscriber v0.3.17 [INFO] [stderr] Checking rustc-demangle v0.1.23 [INFO] [stderr] Compiling syn v2.0.22 [INFO] [stderr] Checking owo-colors v3.5.0 [INFO] [stderr] Checking indenter v0.3.3 [INFO] [stderr] Compiling tempfile v3.6.0 [INFO] [stderr] Checking linux-raw-sys v0.3.8 [INFO] [stderr] Compiling backtrace v0.3.68 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Checking fastrand v1.9.0 [INFO] [stderr] Checking addr2line v0.20.0 [INFO] [stderr] Compiling thiserror-impl v1.0.40 [INFO] [stderr] Compiling tracing-attributes v0.1.24 [INFO] [stderr] Checking ruzstd v0.3.1 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking tracing-error v0.2.0 [INFO] [stderr] Checking color-spantrace v0.2.0 [INFO] [stderr] Checking object v0.31.1 [INFO] [stderr] Checking color-eyre v0.6.2 [INFO] [stderr] Checking cft-riscv-vm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `reg`, `pc`, and `bus` are never read [INFO] [stdout] --> src/cpu.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Cpu { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 7 | pub reg: [u64; 32], [INFO] [stdout] | ^^^ [INFO] [stdout] 8 | pub pc: u64, [INFO] [stdout] | ^^ [INFO] [stdout] 9 | pub bus: Bus, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mem` is never read [INFO] [stdout] --> src/cpu.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Bus { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 13 | mem: Mem, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `read` and `write` are never used [INFO] [stdout] --> src/cpu.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Bus { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 17 | pub fn read(&self, addr: u64, buf: &mut [u8]) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn write(&mut self, addr: u64, data: &[u8]) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/cpu.rs:37:16 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct Mem(pub Vec); [INFO] [stdout] | --- ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [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] 37 | pub struct Mem(()); [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `execute` are never used [INFO] [stdout] --> src/cpu.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl Cpu { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 40 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn execute(&mut self, ins_buf: &[u32]) -> Result<()>{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OPCODE_SIZE` is never used [INFO] [stdout] --> src/instruction/mod.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const OPCODE_SIZE: usize = 1 << 5; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `InsImpl` is never used [INFO] [stdout] --> src/instruction/mod.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | type InsImpl = fn(u32, &mut Cpu); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Instruction` is never constructed [INFO] [stdout] --> src/instruction/mod.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Instruction(pub u32); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Instruction` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `opcode` is never used [INFO] [stdout] --> src/instruction/mod.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Instruction { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 14 | pub fn opcode(self) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `instruction_array` is never used [INFO] [stdout] --> src/instruction/mod.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn instruction_array() -> &'static [InsImpl; OPCODE_SIZE] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nop` is never used [INFO] [stdout] --> src/instruction/mod.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn nop(_: u32, _: &mut Cpu) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `low_bitmask_u8` is never used [INFO] [stdout] --> src/instruction/mod.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn low_bitmask_u8(cnt: usize) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `low_bitmask_u32` is never used [INFO] [stdout] --> src/instruction/mod.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn low_bitmask_u32(cnt: usize) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RFormat` is never constructed [INFO] [stdout] --> src/instruction/format.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct RFormat(pub u32); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RFormat` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IFormat` is never constructed [INFO] [stdout] --> src/instruction/format.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct IFormat(pub u32); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IFormat` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `imm`, `rs1`, `funct3`, `rd`, and `opcode` are never used [INFO] [stdout] --> src/instruction/format.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl IFormat { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] 15 | pub fn imm(self) -> u32 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn rs1(self) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn funct3(self) -> u8 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn rd(self) -> u8 { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn opcode(self) -> u8 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SFormat` is never constructed [INFO] [stdout] --> src/instruction/format.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct SFormat(pub u32); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SFormat` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SBFormat` is never constructed [INFO] [stdout] --> src/instruction/format.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct SBFormat(pub u32); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SBFormat` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UFormat` is never constructed [INFO] [stdout] --> src/instruction/format.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct UFormat(pub u32); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UFormat` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `imm`, `rd`, and `opcode` are never used [INFO] [stdout] --> src/instruction/format.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 50 | impl UFormat { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] 51 | pub fn imm(self) -> u32 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn rd(self) -> u8 { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn opcode(self) -> u8{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UJFormat` is never constructed [INFO] [stdout] --> src/instruction/format.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct UJFormat(pub u32); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UJFormat` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `OPCODE2INS_IMPL` is never used [INFO] [stdout] --> src/instruction/rv32i.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub static OPCODE2INS_IMPL: LazyLock> = LazyLock::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lui` is never used [INFO] [stdout] --> src/instruction/rv32i.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn lui(instruction: u32, cpu: &mut Cpu) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `auipc` is never used [INFO] [stdout] --> src/instruction/rv32i.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn auipc(instruction: u32, cpu: &mut Cpu) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `addi` is never used [INFO] [stdout] --> src/instruction/rv32i.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn addi(instruction: u32, cpu: &mut Cpu) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `l` is never used [INFO] [stdout] --> src/instruction/rv32i.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn l(instruction: u32, cpu: &mut Cpu) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_mem` is never used [INFO] [stdout] --> src/instruction/rv32i.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn load_mem(instruction: IFormat, cpu: &mut Cpu) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_instructions` is never used [INFO] [stdout] --> src/instruction/rv32i.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn register_instructions(map: &mut BTreeMap) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sext` is never used [INFO] [stdout] --> src/instruction/rv32i.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn sext(imm: u32, msb: usize) -> u64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/instruction/rv32i.rs:123:17 [INFO] [stdout] | [INFO] [stdout] 123 | let mut cpu = Cpu::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/instruction/rv32i.rs:123:13 [INFO] [stdout] | [INFO] [stdout] 123 | let mut cpu = Cpu::new(); [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: struct `RFormat` is never constructed [INFO] [stdout] --> src/instruction/format.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct RFormat(pub u32); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RFormat` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `opcode` is never used [INFO] [stdout] --> src/instruction/format.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl IFormat { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn opcode(self) -> u8 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SFormat` is never constructed [INFO] [stdout] --> src/instruction/format.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct SFormat(pub u32); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SFormat` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SBFormat` is never constructed [INFO] [stdout] --> src/instruction/format.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct SBFormat(pub u32); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SBFormat` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `opcode` is never used [INFO] [stdout] --> src/instruction/format.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 50 | impl UFormat { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn opcode(self) -> u8{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UJFormat` is never constructed [INFO] [stdout] --> src/instruction/format.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct UJFormat(pub u32); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UJFormat` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 34.02s [INFO] running `Command { std: "docker" "inspect" "97b0c27345601e4946679ae62abc8da33ebc45a2616df20417c46eb7d31b626b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "97b0c27345601e4946679ae62abc8da33ebc45a2616df20417c46eb7d31b626b", kill_on_drop: false }` [INFO] [stdout] 97b0c27345601e4946679ae62abc8da33ebc45a2616df20417c46eb7d31b626b [INFO] checking cfeitong/cft-riscv-vm against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcfeitong%2Fcft-riscv-vm" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/cfeitong/cft-riscv-vm on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/cfeitong/cft-riscv-vm [INFO] finished tweaking git repo https://github.com/cfeitong/cft-riscv-vm [INFO] tweaked toml for git repo https://github.com/cfeitong/cft-riscv-vm written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/cfeitong/cft-riscv-vm 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 92bb9b9c364f476c4af0277755ba184aad0d99d249257bc0c7970c49f22734de [INFO] running `Command { std: "docker" "start" "-a" "92bb9b9c364f476c4af0277755ba184aad0d99d249257bc0c7970c49f22734de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "92bb9b9c364f476c4af0277755ba184aad0d99d249257bc0c7970c49f22734de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "92bb9b9c364f476c4af0277755ba184aad0d99d249257bc0c7970c49f22734de", kill_on_drop: false }` [INFO] [stdout] 92bb9b9c364f476c4af0277755ba184aad0d99d249257bc0c7970c49f22734de [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e6afa25f19964a669f65f83245e27426896f83a00081538390c87e8578f7f1db [INFO] running `Command { std: "docker" "start" "-a" "e6afa25f19964a669f65f83245e27426896f83a00081538390c87e8578f7f1db", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.63 [INFO] [stderr] Compiling unicode-ident v1.0.9 [INFO] [stderr] Compiling quote v1.0.28 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling thiserror v1.0.40 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking twox-hash v1.6.3 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Checking thread_local v1.1.7 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking sharded-slab v0.1.4 [INFO] [stderr] Compiling cc v1.0.79 [INFO] [stderr] Checking smallvec v1.10.0 [INFO] [stderr] Checking pin-project-lite v0.2.10 [INFO] [stderr] Checking flate2 v1.0.26 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Checking tracing-log v0.1.3 [INFO] [stderr] Compiling eyre v0.6.8 [INFO] [stderr] Checking gimli v0.27.3 [INFO] [stderr] Compiling syn v2.0.22 [INFO] [stderr] Checking tracing-subscriber v0.3.17 [INFO] [stderr] Checking rustc-demangle v0.1.23 [INFO] [stderr] Compiling rustix v0.37.23 [INFO] [stderr] Checking owo-colors v3.5.0 [INFO] [stderr] Checking indenter v0.3.3 [INFO] [stderr] Compiling tempfile v3.6.0 [INFO] [stderr] Checking linux-raw-sys v0.3.8 [INFO] [stderr] Compiling backtrace v0.3.68 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Checking fastrand v1.9.0 [INFO] [stderr] Checking addr2line v0.20.0 [INFO] [stderr] Compiling thiserror-impl v1.0.40 [INFO] [stderr] Compiling tracing-attributes v0.1.24 [INFO] [stderr] Checking ruzstd v0.3.1 [INFO] [stderr] Checking object v0.31.1 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking tracing-error v0.2.0 [INFO] [stderr] Checking color-spantrace v0.2.0 [INFO] [stderr] Checking color-eyre v0.6.2 [INFO] [stderr] Checking cft-riscv-vm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `reg`, `pc`, and `bus` are never read [INFO] [stdout] --> src/cpu.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Cpu { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 7 | pub reg: [u64; 32], [INFO] [stdout] | ^^^ [INFO] [stdout] 8 | pub pc: u64, [INFO] [stdout] | ^^ [INFO] [stdout] 9 | pub bus: Bus, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mem` is never read [INFO] [stdout] --> src/cpu.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Bus { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 13 | mem: Mem, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `read` and `write` are never used [INFO] [stdout] --> src/cpu.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Bus { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 17 | pub fn read(&self, addr: u64, buf: &mut [u8]) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn write(&mut self, addr: u64, data: &[u8]) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/cpu.rs:37:16 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct Mem(pub Vec); [INFO] [stdout] | --- ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [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] 37 | pub struct Mem(()); [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `execute` are never used [INFO] [stdout] --> src/cpu.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl Cpu { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 40 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn execute(&mut self, ins_buf: &[u32]) -> Result<()>{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OPCODE_SIZE` is never used [INFO] [stdout] --> src/instruction/mod.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const OPCODE_SIZE: usize = 1 << 5; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `InsImpl` is never used [INFO] [stdout] --> src/instruction/mod.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | type InsImpl = fn(u32, &mut Cpu); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Instruction` is never constructed [INFO] [stdout] --> src/instruction/mod.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Instruction(pub u32); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Instruction` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `opcode` is never used [INFO] [stdout] --> src/instruction/mod.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Instruction { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 14 | pub fn opcode(self) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `instruction_array` is never used [INFO] [stdout] --> src/instruction/mod.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn instruction_array() -> &'static [InsImpl; OPCODE_SIZE] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nop` is never used [INFO] [stdout] --> src/instruction/mod.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn nop(_: u32, _: &mut Cpu) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `low_bitmask_u8` is never used [INFO] [stdout] --> src/instruction/mod.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn low_bitmask_u8(cnt: usize) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `low_bitmask_u32` is never used [INFO] [stdout] --> src/instruction/mod.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn low_bitmask_u32(cnt: usize) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RFormat` is never constructed [INFO] [stdout] --> src/instruction/format.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct RFormat(pub u32); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RFormat` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IFormat` is never constructed [INFO] [stdout] --> src/instruction/format.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct IFormat(pub u32); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IFormat` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `imm`, `rs1`, `funct3`, `rd`, and `opcode` are never used [INFO] [stdout] --> src/instruction/format.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl IFormat { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] 15 | pub fn imm(self) -> u32 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn rs1(self) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn funct3(self) -> u8 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn rd(self) -> u8 { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn opcode(self) -> u8 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SFormat` is never constructed [INFO] [stdout] --> src/instruction/format.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct SFormat(pub u32); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SFormat` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SBFormat` is never constructed [INFO] [stdout] --> src/instruction/format.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct SBFormat(pub u32); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SBFormat` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UFormat` is never constructed [INFO] [stdout] --> src/instruction/format.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct UFormat(pub u32); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UFormat` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `imm`, `rd`, and `opcode` are never used [INFO] [stdout] --> src/instruction/format.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 50 | impl UFormat { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] 51 | pub fn imm(self) -> u32 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn rd(self) -> u8 { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn opcode(self) -> u8{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UJFormat` is never constructed [INFO] [stdout] --> src/instruction/format.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct UJFormat(pub u32); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UJFormat` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `OPCODE2INS_IMPL` is never used [INFO] [stdout] --> src/instruction/rv32i.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub static OPCODE2INS_IMPL: LazyLock> = LazyLock::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lui` is never used [INFO] [stdout] --> src/instruction/rv32i.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn lui(instruction: u32, cpu: &mut Cpu) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `auipc` is never used [INFO] [stdout] --> src/instruction/rv32i.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn auipc(instruction: u32, cpu: &mut Cpu) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `addi` is never used [INFO] [stdout] --> src/instruction/rv32i.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn addi(instruction: u32, cpu: &mut Cpu) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `l` is never used [INFO] [stdout] --> src/instruction/rv32i.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn l(instruction: u32, cpu: &mut Cpu) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_mem` is never used [INFO] [stdout] --> src/instruction/rv32i.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn load_mem(instruction: IFormat, cpu: &mut Cpu) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_instructions` is never used [INFO] [stdout] --> src/instruction/rv32i.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn register_instructions(map: &mut BTreeMap) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sext` is never used [INFO] [stdout] --> src/instruction/rv32i.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn sext(imm: u32, msb: usize) -> u64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/instruction/rv32i.rs:123:17 [INFO] [stdout] | [INFO] [stdout] 123 | let mut cpu = Cpu::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/instruction/rv32i.rs:123:13 [INFO] [stdout] | [INFO] [stdout] 123 | let mut cpu = Cpu::new(); [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: struct `RFormat` is never constructed [INFO] [stdout] --> src/instruction/format.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct RFormat(pub u32); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RFormat` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `opcode` is never used [INFO] [stdout] --> src/instruction/format.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl IFormat { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn opcode(self) -> u8 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SFormat` is never constructed [INFO] [stdout] --> src/instruction/format.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct SFormat(pub u32); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SFormat` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SBFormat` is never constructed [INFO] [stdout] --> src/instruction/format.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct SBFormat(pub u32); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SBFormat` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `opcode` is never used [INFO] [stdout] --> src/instruction/format.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 50 | impl UFormat { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn opcode(self) -> u8{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UJFormat` is never constructed [INFO] [stdout] --> src/instruction/format.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct UJFormat(pub u32); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UJFormat` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 34.79s [INFO] running `Command { std: "docker" "inspect" "e6afa25f19964a669f65f83245e27426896f83a00081538390c87e8578f7f1db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e6afa25f19964a669f65f83245e27426896f83a00081538390c87e8578f7f1db", kill_on_drop: false }` [INFO] [stdout] e6afa25f19964a669f65f83245e27426896f83a00081538390c87e8578f7f1db