[INFO] cloning repository https://github.com/SuperTails/riscv-sim [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SuperTails/riscv-sim" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSuperTails%2Friscv-sim", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSuperTails%2Friscv-sim'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1df9335e71231eee2fbf34186684a927fa03dfa4 [INFO] checking SuperTails/riscv-sim against try#93086cfebfccb79083c59d0d3b2052944bba643c for pr-146440-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSuperTails%2Friscv-sim" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/SuperTails/riscv-sim [INFO] finished tweaking git repo https://github.com/SuperTails/riscv-sim [INFO] tweaked toml for git repo https://github.com/SuperTails/riscv-sim written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/SuperTails/riscv-sim on toolchain 93086cfebfccb79083c59d0d3b2052944bba643c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/SuperTails/riscv-sim 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" "+93086cfebfccb79083c59d0d3b2052944bba643c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 37e57fa7924bcf0d5a24a63872094a9dbc3eda4a3ae0af6fbdda649de7372599 [INFO] running `Command { std: "docker" "start" "-a" "37e57fa7924bcf0d5a24a63872094a9dbc3eda4a3ae0af6fbdda649de7372599", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "37e57fa7924bcf0d5a24a63872094a9dbc3eda4a3ae0af6fbdda649de7372599", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "37e57fa7924bcf0d5a24a63872094a9dbc3eda4a3ae0af6fbdda649de7372599", kill_on_drop: false }` [INFO] [stdout] 37e57fa7924bcf0d5a24a63872094a9dbc3eda4a3ae0af6fbdda649de7372599 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d60a41cf883d3bd79ffb5e99c559757e4a6a853bc68663c9de3337ef7bef6f95 [INFO] running `Command { std: "docker" "start" "-a" "d60a41cf883d3bd79ffb5e99c559757e4a6a853bc68663c9de3337ef7bef6f95", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking bytemuck v1.24.0 [INFO] [stderr] Checking bitfield v0.15.0 [INFO] [stderr] Checking elf v0.7.4 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.68 [INFO] [stderr] Compiling smart-default v0.7.1 [INFO] [stderr] Checking sim v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/cpu.rs:437:21 [INFO] [stdout] | [INFO] [stdout] 436 | todo!(); [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 437 | self.disk = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/cpu.rs:534:9 [INFO] [stdout] | [INFO] [stdout] 532 | return None; [INFO] [stdout] | ----------- any code following this expression is unreachable [INFO] [stdout] 533 | [INFO] [stdout] 534 | let mut paddr = None; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/cpu.rs:437:21 [INFO] [stdout] | [INFO] [stdout] 436 | todo!(); [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 437 | self.disk = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/cpu.rs:564:9 [INFO] [stdout] | [INFO] [stdout] 562 | return None; [INFO] [stdout] | ----------- any code following this expression is unreachable [INFO] [stdout] 563 | [INFO] [stdout] 564 | / if let Some((v, p)) = self.load && v == vaddr & !0xFFF { [INFO] [stdout] 565 | | self.hit += 1; [INFO] [stdout] 566 | | return Some(p | (vaddr & 0xFFF)); [INFO] [stdout] 567 | | } [INFO] [stdout] | |_________^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/cpu.rs:534:9 [INFO] [stdout] | [INFO] [stdout] 532 | return None; [INFO] [stdout] | ----------- any code following this expression is unreachable [INFO] [stdout] 533 | [INFO] [stdout] 534 | let mut paddr = None; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/cpu.rs:564:9 [INFO] [stdout] | [INFO] [stdout] 562 | return None; [INFO] [stdout] | ----------- any code following this expression is unreachable [INFO] [stdout] 563 | [INFO] [stdout] 564 | / if let Some((v, p)) = self.load && v == vaddr & !0xFFF { [INFO] [stdout] 565 | | self.hit += 1; [INFO] [stdout] 566 | | return Some(p | (vaddr & 0xFFF)); [INFO] [stdout] 567 | | } [INFO] [stdout] | |_________^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/cpu.rs:423:29 [INFO] [stdout] | [INFO] [stdout] 423 | pub fn store(&mut self, memory: &mut Memory, addr: u32, data: u32) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vaddr` [INFO] [stdout] --> src/cpu.rs:531:28 [INFO] [stdout] | [INFO] [stdout] 531 | pub fn exec(&mut self, vaddr: u32) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_vaddr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memory` [INFO] [stdout] --> src/cpu.rs:423:29 [INFO] [stdout] | [INFO] [stdout] 423 | pub fn store(&mut self, memory: &mut Memory, addr: u32, data: u32) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vaddr` [INFO] [stdout] --> src/cpu.rs:561:28 [INFO] [stdout] | [INFO] [stdout] 561 | pub fn load(&mut self, vaddr: u32) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_vaddr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vaddr` [INFO] [stdout] --> src/cpu.rs:531:28 [INFO] [stdout] | [INFO] [stdout] 531 | pub fn exec(&mut self, vaddr: u32) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_vaddr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vaddr` [INFO] [stdout] --> src/cpu.rs:561:28 [INFO] [stdout] | [INFO] [stdout] 561 | pub fn load(&mut self, vaddr: u32) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_vaddr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cpu.rs:781:13 [INFO] [stdout] | [INFO] [stdout] 781 | let mut pte = PageTableEntry(memory.read(root_table_addr + 4 * vpn1).map_err(|_| Exception::LoadAccessFault { addr })?); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cpu.rs:781:13 [INFO] [stdout] | [INFO] [stdout] 781 | let mut pte = PageTableEntry(memory.read(root_table_addr + 4 * vpn1).map_err(|_| Exception::LoadAccessFault { addr })?); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cpu.rs:820:17 [INFO] [stdout] | [INFO] [stdout] 820 | let mut pte = PageTableEntry(memory.read(table_addr + 4 * vpn0).map_err(|_| Exception::LoadAccessFault { addr })?); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cpu.rs:820:17 [INFO] [stdout] | [INFO] [stdout] 820 | let mut pte = PageTableEntry(memory.read(table_addr + 4 * vpn0).map_err(|_| Exception::LoadAccessFault { addr })?); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cpu.rs:896:13 [INFO] [stdout] | [INFO] [stdout] 896 | let mut pte = PageTableEntry(memory.read(root_table_addr + 4 * vpn1).map_err(|_| Exception::StoreAccessFault { addr })?); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cpu.rs:933:17 [INFO] [stdout] | [INFO] [stdout] 933 | let mut pte = PageTableEntry(memory.read(table_addr + 4 * vpn0).map_err(|_| Exception::LoadAccessFault { addr })?); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cpu.rs:896:13 [INFO] [stdout] | [INFO] [stdout] 896 | let mut pte = PageTableEntry(memory.read(root_table_addr + 4 * vpn1).map_err(|_| Exception::StoreAccessFault { addr })?); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cpu.rs:933:17 [INFO] [stdout] | [INFO] [stdout] 933 | let mut pte = PageTableEntry(memory.read(table_addr + 4 * vpn0).map_err(|_| Exception::LoadAccessFault { addr })?); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/mem.rs:172:28 [INFO] [stdout] | [INFO] [stdout] 172 | pub fn step(&mut self, cpu: &RV32ICore) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `off` [INFO] [stdout] --> src/mem.rs:193:30 [INFO] [stdout] | [INFO] [stdout] 193 | (AddrKind::Disk, off) => todo!(), /*Ok(self.disk.load(off)),*/ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_off` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `off` [INFO] [stdout] --> src/mem.rs:226:30 [INFO] [stdout] | [INFO] [stdout] 226 | (AddrKind::Disk, off) => todo!(), /*{ self.disk.store(off, value); Ok(()) }*/ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_off` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/mem.rs:172:28 [INFO] [stdout] | [INFO] [stdout] 172 | pub fn step(&mut self, cpu: &RV32ICore) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `off` [INFO] [stdout] --> src/mem.rs:193:30 [INFO] [stdout] | [INFO] [stdout] 193 | (AddrKind::Disk, off) => todo!(), /*Ok(self.disk.load(off)),*/ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_off` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `off` [INFO] [stdout] --> src/mem.rs:226:30 [INFO] [stdout] | [INFO] [stdout] 226 | (AddrKind::Disk, off) => todo!(), /*{ self.disk.store(off, value); Ok(()) }*/ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_off` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src_offset` [INFO] [stdout] --> src/virtio.rs:175:29 [INFO] [stdout] | [INFO] [stdout] 175 | let src_offset = (req.sector + s) * 512 + i * 4; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_src_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src` [INFO] [stdout] --> src/virtio.rs:191:29 [INFO] [stdout] | [INFO] [stdout] 191 | let src = ram.load_32(src_addr.try_into().unwrap()).unwrap().to_le_bytes(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_src` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dst_offset` [INFO] [stdout] --> src/virtio.rs:192:29 [INFO] [stdout] | [INFO] [stdout] 192 | let dst_offset = (req.sector + s) * 512 + i * 4; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dst_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src_offset` [INFO] [stdout] --> src/virtio.rs:175:29 [INFO] [stdout] | [INFO] [stdout] 175 | let src_offset = (req.sector + s) * 512 + i * 4; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_src_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src` [INFO] [stdout] --> src/virtio.rs:191:29 [INFO] [stdout] | [INFO] [stdout] 191 | let src = ram.load_32(src_addr.try_into().unwrap()).unwrap().to_le_bytes(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_src` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dst_offset` [INFO] [stdout] --> src/virtio.rs:192:29 [INFO] [stdout] | [INFO] [stdout] 192 | let dst_offset = (req.sector + s) * 512 + i * 4; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dst_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: struct `BlkRequest` is never constructed [INFO] [stdout] --> src/virtio.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 83 | pub struct BlkRequest { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `pub` struct has private fields, no public constructor, and is not otherwise reachable through the external API, so consider providing a public constructor or removing it [INFO] [stdout] = note: `#[deny(unused_unconstructable_pub_structs)]` (part of `#[deny(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAXIMUM_VQUEUE_SIZE` is never used [INFO] [stdout] --> src/virtio.rs:71:7 [INFO] [stdout] | [INFO] [stdout] 71 | const MAXIMUM_VQUEUE_SIZE: u32 = 8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `typ` and `sector` are never read [INFO] [stdout] --> src/virtio.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 83 | pub struct BlkRequest { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 84 | typ: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 85 | sector: u64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BlkRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VirtioDevice` is never constructed [INFO] [stdout] --> src/virtio.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | struct VirtioDevice { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/virtio.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 106 | impl VirtioDevice { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 107 | fn vqueue_addr(&self, queue: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | fn descriptor_addr(&self, queue: u32, index: u16) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | fn avail_ring_addr(&self, queue: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | fn used_ring_addr(&self, queue: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn descriptor(&self, ram: &Ram, queue: u32, index: u16) -> VirtqDesc { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | pub fn avail_ring_idx(&self, ram: &Ram, queue: u32) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | pub fn avail_ring_entry(&self, ram: &Ram, queue: u32, index: u16) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn handle_descriptor(&mut self, ram: &mut Ram, queue: u32, index: u16) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 216 | pub fn append_to_used_ring(&mut self, ram: &mut Ram, queue: u32, id: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 230 | pub fn step(&mut self, ram: &mut Ram) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 244 | pub fn load(&mut self, addr: u32) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 263 | pub fn store(&mut self, addr: u32, data: u32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 337 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: struct `BlkRequest` is never constructed [INFO] [stdout] --> src/virtio.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 83 | pub struct BlkRequest { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `pub` struct has private fields, no public constructor, and is not otherwise reachable through the external API, so consider providing a public constructor or removing it [INFO] [stdout] = note: `#[deny(unused_unconstructable_pub_structs)]` (part of `#[deny(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAXIMUM_VQUEUE_SIZE` is never used [INFO] [stdout] --> src/virtio.rs:71:7 [INFO] [stdout] | [INFO] [stdout] 71 | const MAXIMUM_VQUEUE_SIZE: u32 = 8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `typ` and `sector` are never read [INFO] [stdout] --> src/virtio.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 83 | pub struct BlkRequest { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 84 | typ: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 85 | sector: u64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BlkRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VirtioDevice` is never constructed [INFO] [stdout] --> src/virtio.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | struct VirtioDevice { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/virtio.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 106 | impl VirtioDevice { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 107 | fn vqueue_addr(&self, queue: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | fn descriptor_addr(&self, queue: u32, index: u16) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | fn avail_ring_addr(&self, queue: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | fn used_ring_addr(&self, queue: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn descriptor(&self, ram: &Ram, queue: u32, index: u16) -> VirtqDesc { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | pub fn avail_ring_idx(&self, ram: &Ram, queue: u32) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | pub fn avail_ring_entry(&self, ram: &Ram, queue: u32, index: u16) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn handle_descriptor(&mut self, ram: &mut Ram, queue: u32, index: u16) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 216 | pub fn append_to_used_ring(&mut self, ram: &mut Ram, queue: u32, id: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 230 | pub fn step(&mut self, ram: &mut Ram) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 244 | pub fn load(&mut self, addr: u32) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 263 | pub fn store(&mut self, addr: u32, data: u32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 337 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `sim` (lib) due to 1 previous error; 20 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `sim` (lib test) due to 1 previous error; 20 warnings emitted [INFO] running `Command { std: "docker" "inspect" "d60a41cf883d3bd79ffb5e99c559757e4a6a853bc68663c9de3337ef7bef6f95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d60a41cf883d3bd79ffb5e99c559757e4a6a853bc68663c9de3337ef7bef6f95", kill_on_drop: false }` [INFO] [stdout] d60a41cf883d3bd79ffb5e99c559757e4a6a853bc68663c9de3337ef7bef6f95