[INFO] cloning repository https://github.com/0xtiger5/Hvisor-CPU-Verification [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/0xtiger5/Hvisor-CPU-Verification" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0xtiger5%2FHvisor-CPU-Verification", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0xtiger5%2FHvisor-CPU-Verification'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1733a580e34865080f934b08f170dd4d26a9c08b [INFO] checking 0xtiger5/Hvisor-CPU-Verification against try#012cd62c9add58ab3910e44c137d87db3ab70f61 for pr-155915 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0xtiger5%2FHvisor-CPU-Verification" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/0xtiger5/Hvisor-CPU-Verification [INFO] finished tweaking git repo https://github.com/0xtiger5/Hvisor-CPU-Verification [INFO] tweaked toml for git repo https://github.com/0xtiger5/Hvisor-CPU-Verification written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/0xtiger5/Hvisor-CPU-Verification on toolchain 012cd62c9add58ab3910e44c137d87db3ab70f61 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+012cd62c9add58ab3910e44c137d87db3ab70f61" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/0xtiger5/Hvisor-CPU-Verification 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" "+012cd62c9add58ab3910e44c137d87db3ab70f61" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+012cd62c9add58ab3910e44c137d87db3ab70f61" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5088bd0cac7a9c7bc624636ec5525dec1bc806b635d892e02533d2a99228e424 [INFO] running `Command { std: "docker" "start" "-a" "5088bd0cac7a9c7bc624636ec5525dec1bc806b635d892e02533d2a99228e424", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5088bd0cac7a9c7bc624636ec5525dec1bc806b635d892e02533d2a99228e424", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5088bd0cac7a9c7bc624636ec5525dec1bc806b635d892e02533d2a99228e424", kill_on_drop: false }` [INFO] [stdout] 5088bd0cac7a9c7bc624636ec5525dec1bc806b635d892e02533d2a99228e424 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+012cd62c9add58ab3910e44c137d87db3ab70f61" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 43981dbc2b9148ab6ac88fbaef18d2b668a8828d9492da74616f21b84098a0c6 [INFO] running `Command { std: "docker" "start" "-a" "43981dbc2b9148ab6ac88fbaef18d2b668a8828d9492da74616f21b84098a0c6", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.105 [INFO] [stderr] Compiling verus_syn v0.0.0-2025-11-16-0050 (https://github.com/verus-lang/verus#b5900fea) [INFO] [stderr] Compiling verus_prettyplease v0.0.0-2025-11-16-0050 (https://github.com/verus-lang/verus#b5900fea) [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling vstd v0.0.0-2026-01-11-0057 (https://github.com/verus-lang/verus#b5900fea) [INFO] [stderr] Checking verus_builtin v0.0.0-2026-01-11-0057 (https://github.com/verus-lang/verus#b5900fea) [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling quote v1.0.43 [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling verus_state_machines_macros v0.0.0-2025-11-23-0053 (https://github.com/verus-lang/verus#b5900fea) [INFO] [stderr] Compiling verus_builtin_macros v0.0.0-2025-12-07-0054 (https://github.com/verus-lang/verus#b5900fea) [INFO] [stderr] Checking hvisor-verification v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `cpu::*` [INFO] [stdout] --> src/arch/x86_64/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub use cpu::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `x86_64::*` [INFO] [stdout] --> src/arch/mod.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub use x86_64::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cpu::*` [INFO] [stdout] --> src/arch/x86_64/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub use cpu::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `x86_64::*` [INFO] [stdout] --> src/arch/mod.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub use x86_64::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpuid` [INFO] [stdout] --> src/arch/x86_64/cpu.rs:170:16 [INFO] [stdout] | [INFO] [stdout] 170 | pub fn new(cpuid: usize) -> (result: Self) [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_cpuid` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cr_idx` [INFO] [stdout] --> src/arch/x86_64/cpu.rs:215:22 [INFO] [stdout] | [INFO] [stdout] 215 | pub fn cr(&self, cr_idx: usize) -> (result: usize) [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cr_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instr_len` [INFO] [stdout] --> src/arch/x86_64/cpu.rs:226:41 [INFO] [stdout] | [INFO] [stdout] 226 | pub fn advance_guest_rip(&mut self, instr_len: u8) -> (result: Result<(), ()>) [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instr_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/arch/x86_64/cpu.rs:256:9 [INFO] [stdout] | [INFO] [stdout] 256 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry` [INFO] [stdout] --> src/arch/x86_64/cpu.rs:486:9 [INFO] [stdout] | [INFO] [stdout] 486 | entry: u64, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_entry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rsp` [INFO] [stdout] --> src/arch/x86_64/cpu.rs:487:9 [INFO] [stdout] | [INFO] [stdout] 487 | rsp: u64, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rsp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpuid` [INFO] [stdout] --> src/arch/x86_64/cpu.rs:630:18 [INFO] [stdout] | [INFO] [stdout] 630 | pub fn cpu_start(cpuid: usize, start_addr: usize, opaque: usize) [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_cpuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_addr` [INFO] [stdout] --> src/arch/x86_64/cpu.rs:630:32 [INFO] [stdout] | [INFO] [stdout] 630 | pub fn cpu_start(cpuid: usize, start_addr: usize, opaque: usize) [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opaque` [INFO] [stdout] --> src/arch/x86_64/cpu.rs:630:51 [INFO] [stdout] | [INFO] [stdout] 630 | pub fn cpu_start(cpuid: usize, start_addr: usize, opaque: usize) [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_opaque` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GeneralRegisters` is never constructed [INFO] [stdout] --> src/arch/x86_64/cpu.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct GeneralRegisters { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VirtLocalApic` is never constructed [INFO] [stdout] --> src/arch/x86_64/cpu.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct VirtLocalApic { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/arch/x86_64/cpu.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 61 | impl VirtLocalApic { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 62 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PhysLocalApic` is never constructed [INFO] [stdout] --> src/arch/x86_64/cpu.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 70 | pub struct PhysLocalApic; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `end_of_interrupt` is never used [INFO] [stdout] --> src/arch/x86_64/cpu.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 72 | impl PhysLocalApic { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn end_of_interrupt(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VmxRegion` is never constructed [INFO] [stdout] --> src/arch/x86_64/cpu.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 81 | pub struct VmxRegion { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `fake_init` and `new` are never used [INFO] [stdout] --> src/arch/x86_64/cpu.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 85 | impl VmxRegion { [INFO] [stdout] | -------------- associated functions in this implementation [INFO] [stdout] 86 | pub fn fake_init() -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_CPU_NUM` is never used [INFO] [stdout] --> src/arch/x86_64/cpu.rs:96:11 [INFO] [stdout] | [INFO] [stdout] 96 | pub const MAX_CPU_NUM: usize = 256; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PER_CPU_SIZE` is never used [INFO] [stdout] --> src/arch/x86_64/cpu.rs:97:11 [INFO] [stdout] | [INFO] [stdout] 97 | pub const PER_CPU_SIZE: usize = 524288; // 512 KB [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ArchCpu` is never constructed [INFO] [stdout] --> src/arch/x86_64/cpu.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 101 | pub struct ArchCpu { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `core_end` is never used [INFO] [stdout] --> src/arch/x86_64/cpu.rs:121:8 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn core_end() -> (result: u64) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `this_cpu_id` is never used [INFO] [stdout] --> src/arch/x86_64/cpu.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn this_cpu_id() -> (result: usize) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `cr`, and `advance_guest_rip` are never used [INFO] [stdout] --> src/arch/x86_64/cpu.rs:170:12 [INFO] [stdout] | [INFO] [stdout] 168 | impl ArchCpu { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 169 | /// 创建新的 ArchCpu 实例 [INFO] [stdout] 170 | pub fn new(cpuid: usize) -> (result: Self) [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 215 | pub fn cr(&self, cr_idx: usize) -> (result: usize) [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 226 | pub fn advance_guest_rip(&mut self, instr_len: u8) -> (result: Result<(), ()>) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/arch/x86_64/cpu.rs:246:8 [INFO] [stdout] | [INFO] [stdout] 243 | impl ArchCpu { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 246 | fn idle_clear_interrupt(&mut self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 262 | fn idle_verify_cpu_id(&self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 275 | fn idle_set_power_state(&mut self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 294 | fn idle_activate_vmx(&mut self) -> (result: Result<(), ()>) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 315 | fn idle_init_parking(&mut self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 330 | fn idle_setup_vmcs(&mut self) -> (result: Result<(), ()>) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 349 | fn idle_set_stack_top(&mut self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 378 | fn idle_activate_and_launch(&mut self) -> ! [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 388 | pub fn idle(&mut self) -> ! [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/arch/x86_64/cpu.rs:458:8 [INFO] [stdout] | [INFO] [stdout] 455 | impl ArchCpu { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 458 | fn vmx_entry_failed() -> ! [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 466 | pub fn activate_vmx(&mut self) -> (result: Result<(), ()>) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 484 | fn setup_vmcs( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 512 | fn vmexit_handler(&mut self) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 545 | unsafe extern "C" fn vmx_exit(&mut self) -> ! [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 569 | unsafe extern "C" fn vmx_launch(&mut self) -> ! [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 579 | pub fn launch_vm( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `this_apic_id` is never used [INFO] [stdout] --> src/arch/x86_64/cpu.rs:621:8 [INFO] [stdout] | [INFO] [stdout] 621 | pub fn this_apic_id() -> (result: usize) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cpu_start` is never used [INFO] [stdout] --> src/arch/x86_64/cpu.rs:630:8 [INFO] [stdout] | [INFO] [stdout] 630 | pub fn cpu_start(cpuid: usize, start_addr: usize, opaque: usize) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: feature `never_type` is declared but not used [INFO] [stdout] --> src/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(never_type)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_features)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpuid` [INFO] [stdout] --> src/arch/x86_64/cpu.rs:170:16 [INFO] [stdout] | [INFO] [stdout] 170 | pub fn new(cpuid: usize) -> (result: Self) [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_cpuid` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cr_idx` [INFO] [stdout] --> src/arch/x86_64/cpu.rs:215:22 [INFO] [stdout] | [INFO] [stdout] 215 | pub fn cr(&self, cr_idx: usize) -> (result: usize) [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cr_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instr_len` [INFO] [stdout] --> src/arch/x86_64/cpu.rs:226:41 [INFO] [stdout] | [INFO] [stdout] 226 | pub fn advance_guest_rip(&mut self, instr_len: u8) -> (result: Result<(), ()>) [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instr_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/arch/x86_64/cpu.rs:256:9 [INFO] [stdout] | [INFO] [stdout] 256 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry` [INFO] [stdout] --> src/arch/x86_64/cpu.rs:486:9 [INFO] [stdout] | [INFO] [stdout] 486 | entry: u64, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_entry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rsp` [INFO] [stdout] --> src/arch/x86_64/cpu.rs:487:9 [INFO] [stdout] | [INFO] [stdout] 487 | rsp: u64, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rsp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpuid` [INFO] [stdout] --> src/arch/x86_64/cpu.rs:630:18 [INFO] [stdout] | [INFO] [stdout] 630 | pub fn cpu_start(cpuid: usize, start_addr: usize, opaque: usize) [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_cpuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_addr` [INFO] [stdout] --> src/arch/x86_64/cpu.rs:630:32 [INFO] [stdout] | [INFO] [stdout] 630 | pub fn cpu_start(cpuid: usize, start_addr: usize, opaque: usize) [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opaque` [INFO] [stdout] --> src/arch/x86_64/cpu.rs:630:51 [INFO] [stdout] | [INFO] [stdout] 630 | pub fn cpu_start(cpuid: usize, start_addr: usize, opaque: usize) [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_opaque` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GeneralRegisters` is never constructed [INFO] [stdout] --> src/arch/x86_64/cpu.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct GeneralRegisters { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VirtLocalApic` is never constructed [INFO] [stdout] --> src/arch/x86_64/cpu.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct VirtLocalApic { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/arch/x86_64/cpu.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 61 | impl VirtLocalApic { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 62 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PhysLocalApic` is never constructed [INFO] [stdout] --> src/arch/x86_64/cpu.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 70 | pub struct PhysLocalApic; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `end_of_interrupt` is never used [INFO] [stdout] --> src/arch/x86_64/cpu.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 72 | impl PhysLocalApic { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn end_of_interrupt(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VmxRegion` is never constructed [INFO] [stdout] --> src/arch/x86_64/cpu.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 81 | pub struct VmxRegion { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `fake_init` and `new` are never used [INFO] [stdout] --> src/arch/x86_64/cpu.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 85 | impl VmxRegion { [INFO] [stdout] | -------------- associated functions in this implementation [INFO] [stdout] 86 | pub fn fake_init() -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_CPU_NUM` is never used [INFO] [stdout] --> src/arch/x86_64/cpu.rs:96:11 [INFO] [stdout] | [INFO] [stdout] 96 | pub const MAX_CPU_NUM: usize = 256; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PER_CPU_SIZE` is never used [INFO] [stdout] --> src/arch/x86_64/cpu.rs:97:11 [INFO] [stdout] | [INFO] [stdout] 97 | pub const PER_CPU_SIZE: usize = 524288; // 512 KB [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ArchCpu` is never constructed [INFO] [stdout] --> src/arch/x86_64/cpu.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 101 | pub struct ArchCpu { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `core_end` is never used [INFO] [stdout] --> src/arch/x86_64/cpu.rs:121:8 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn core_end() -> (result: u64) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `this_cpu_id` is never used [INFO] [stdout] --> src/arch/x86_64/cpu.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn this_cpu_id() -> (result: usize) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `cr`, and `advance_guest_rip` are never used [INFO] [stdout] --> src/arch/x86_64/cpu.rs:170:12 [INFO] [stdout] | [INFO] [stdout] 168 | impl ArchCpu { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 169 | /// 创建新的 ArchCpu 实例 [INFO] [stdout] 170 | pub fn new(cpuid: usize) -> (result: Self) [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 215 | pub fn cr(&self, cr_idx: usize) -> (result: usize) [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 226 | pub fn advance_guest_rip(&mut self, instr_len: u8) -> (result: Result<(), ()>) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/arch/x86_64/cpu.rs:246:8 [INFO] [stdout] | [INFO] [stdout] 243 | impl ArchCpu { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 246 | fn idle_clear_interrupt(&mut self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 262 | fn idle_verify_cpu_id(&self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 275 | fn idle_set_power_state(&mut self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 294 | fn idle_activate_vmx(&mut self) -> (result: Result<(), ()>) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 315 | fn idle_init_parking(&mut self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 330 | fn idle_setup_vmcs(&mut self) -> (result: Result<(), ()>) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 349 | fn idle_set_stack_top(&mut self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 378 | fn idle_activate_and_launch(&mut self) -> ! [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 388 | pub fn idle(&mut self) -> ! [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/arch/x86_64/cpu.rs:458:8 [INFO] [stdout] | [INFO] [stdout] 455 | impl ArchCpu { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 458 | fn vmx_entry_failed() -> ! [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 466 | pub fn activate_vmx(&mut self) -> (result: Result<(), ()>) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 484 | fn setup_vmcs( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 512 | fn vmexit_handler(&mut self) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 545 | unsafe extern "C" fn vmx_exit(&mut self) -> ! [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 569 | unsafe extern "C" fn vmx_launch(&mut self) -> ! [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 579 | pub fn launch_vm( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `this_apic_id` is never used [INFO] [stdout] --> src/arch/x86_64/cpu.rs:621:8 [INFO] [stdout] | [INFO] [stdout] 621 | pub fn this_apic_id() -> (result: usize) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cpu_start` is never used [INFO] [stdout] --> src/arch/x86_64/cpu.rs:630:8 [INFO] [stdout] | [INFO] [stdout] 630 | pub fn cpu_start(cpuid: usize, start_addr: usize, opaque: usize) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: feature `never_type` is declared but not used [INFO] [stdout] --> src/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(never_type)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_features)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 21.94s [INFO] running `Command { std: "docker" "inspect" "43981dbc2b9148ab6ac88fbaef18d2b668a8828d9492da74616f21b84098a0c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "43981dbc2b9148ab6ac88fbaef18d2b668a8828d9492da74616f21b84098a0c6", kill_on_drop: false }` [INFO] [stdout] 43981dbc2b9148ab6ac88fbaef18d2b668a8828d9492da74616f21b84098a0c6