[INFO] cloning repository https://github.com/915604903T/el2_code [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/915604903T/el2_code" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F915604903T%2Fel2_code", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F915604903T%2Fel2_code'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6c3040180e61d9082d24452e67bfb13e7ea0ede9 [INFO] checking 915604903T/el2_code/6c3040180e61d9082d24452e67bfb13e7ea0ede9 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F915604903T%2Fel2_code" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/915604903T/el2_code on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-4-tc2/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/915604903T/el2_code [INFO] finished tweaking git repo https://github.com/915604903T/el2_code [INFO] tweaked toml for git repo https://github.com/915604903T/el2_code written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/915604903T/el2_code 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 39e92ec003fa67b65cf8ad2085f69a62b4eb375a8fef5a8521ff20e67d6490df [INFO] running `Command { std: "docker" "start" "-a" "39e92ec003fa67b65cf8ad2085f69a62b4eb375a8fef5a8521ff20e67d6490df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "39e92ec003fa67b65cf8ad2085f69a62b4eb375a8fef5a8521ff20e67d6490df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "39e92ec003fa67b65cf8ad2085f69a62b4eb375a8fef5a8521ff20e67d6490df", kill_on_drop: false }` [INFO] [stdout] 39e92ec003fa67b65cf8ad2085f69a62b4eb375a8fef5a8521ff20e67d6490df [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 62918cc6faf180c7b7b63e8324671f92995aeaa61d4ec3febd91bf0859cbd92a [INFO] running `Command { std: "docker" "start" "-a" "62918cc6faf180c7b7b63e8324671f92995aeaa61d4ec3febd91bf0859cbd92a", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Checking tock-registers v0.8.1 [INFO] [stderr] Checking cortex-a v8.1.1 [INFO] [stderr] Checking aarch64-cpu v9.4.0 [INFO] [stderr] Checking el2_code v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `el2_code` [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/exception.rs:165:3 [INFO] [stdout] | [INFO] [stdout] 165 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] = note: `--force-warn unsafe-attr-outside-unsafe` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 165 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:54:3 [INFO] [stdout] | [INFO] [stdout] 54 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 54 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:56:3 [INFO] [stdout] | [INFO] [stdout] 56 | #[link_section = ".el2code.test"] [INFO] [stdout] | ^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 56 | #[unsafe(link_section = ".el2code.test")] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/exception.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | ($at_op:expr, $addr:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 55 | ($at_op:expr_2021, $addr:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] * src/exception.rs [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/exception.rs:55:25 [INFO] [stdout] | [INFO] [stdout] 55 | ($at_op:expr, $addr:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 55 | ($at_op:expr, $addr:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] * src/hvc.rs [INFO] [stdout] warning: unused import: `aarch64_cpu::registers::MIDR_EL1::Implementer::Infineon` [INFO] [stdout] --> src/sync.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use aarch64_cpu::registers::MIDR_EL1::Implementer::Infineon; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] * src/lib.rs [INFO] [stdout] warning: unused imports: `asm::barrier`, `asm`, and `registers::*` [INFO] [stdout] --> src/hvc.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use aarch64_cpu::{asm, asm::barrier, registers::*}; [INFO] [stdout] | ^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: unused import: `Readable` [INFO] [stdout] --> src/hvc.rs:3:49 [INFO] [stdout] | [INFO] [stdout] 3 | use tock_registers::interfaces::{ReadWriteable, Readable, Writeable}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stdout] warning: unused import: `VTTBR_EL2` [INFO] [stdout] --> src/hvc.rs:100:44 [INFO] [stdout] | [INFO] [stdout] 100 | use aarch64_cpu::registers::{VTCR_EL2, VTTBR_EL2}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | ($val: expr, $reg: expr, $asm_width:tt) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 15 | ($val: expr_2021, $reg: expr, $asm_width:tt) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:15:24 [INFO] [stdout] | [INFO] [stdout] 15 | ($val: expr, $reg: expr, $asm_width:tt) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 15 | ($val: expr, $reg: expr_2021, $asm_width:tt) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | ($val: expr, $reg: expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 20 | ($val: expr_2021, $reg: expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | ($val: expr, $reg: expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 20 | ($val: expr, $reg: expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | ($reg: expr, $val: expr, $asm_width:tt) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 31 | ($reg: expr_2021, $val: expr, $asm_width:tt) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:31:24 [INFO] [stdout] | [INFO] [stdout] 31 | ($reg: expr, $val: expr, $asm_width:tt) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 31 | ($reg: expr, $val: expr_2021, $asm_width:tt) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | ($reg: expr, $val: expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 36 | ($reg: expr_2021, $val: expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:36:24 [INFO] [stdout] | [INFO] [stdout] 36 | ($reg: expr, $val: expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 36 | ($reg: expr, $val: expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] The following errors were reported: [INFO] [stdout] warning: unused variable: `x0` [INFO] [stdout] --> src/hvc.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 148 | x0: usize, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x0` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stdout] warning: unused variable: `x1` [INFO] [stdout] --> src/hvc.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 149 | x1: usize, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x1` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/exception.rs:55:6 [INFO] [stdout] warning: unused variable: `x2` [INFO] [stdout] --> src/hvc.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 150 | x2: usize, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x2` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: unused variable: `x3` [INFO] [stdout] --> src/hvc.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 151 | x3: usize, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x3` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 55 | ($at_op:expr_2021, $addr:expr_2021) => { [INFO] [stdout] warning: unused variable: `x4` [INFO] [stdout] --> src/hvc.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 152 | x4: usize, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x4` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] warning: unused variable: `x5` [INFO] [stdout] --> src/hvc.rs:153:5 [INFO] [stdout] | [INFO] [stdout] 153 | x5: usize, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x5` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: unused variable: `x6` [INFO] [stdout] --> src/hvc.rs:154:5 [INFO] [stdout] | [INFO] [stdout] 154 | x6: usize, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x6` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stdout] warning: unused variable: `x7` [INFO] [stdout] --> src/hvc.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | x7: usize, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x7` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/hvc.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | let mut r0: usize = 0; [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] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] warning: associated function `default` is never used [INFO] [stdout] --> src/context_frame.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 77 | impl Aarch64ContextFrame { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 78 | pub fn default() -> Aarch64ContextFrame { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: associated items `default` and `reset` are never used [INFO] [stdout] --> src/context_frame.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 102 | impl VmCtxFpsimd { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 103 | pub fn default() -> VmCtxFpsimd { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stdout] warning: associated items `default`, `reset`, and `ext_regs_store` are never used [INFO] [stdout] --> src/context_frame.rs:177:12 [INFO] [stdout] | [INFO] [stdout] 176 | impl VmContext { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 177 | pub fn default() -> VmContext { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 231 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 270 | pub fn ext_regs_store(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/exception.rs:55:24 [INFO] [stdout] warning: function `exception_esr_el1` is never used [INFO] [stdout] --> src/exception.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn exception_esr_el1() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: function `exception_data_abort_access_width` is never used [INFO] [stdout] --> src/exception.rs:135:8 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn exception_data_abort_access_width() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 55 | ($at_op:expr_2021, $addr:expr_2021) => { [INFO] [stdout] warning: function `exception_data_abort_access_is_write` is never used [INFO] [stdout] --> src/exception.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn exception_data_abort_access_is_write() -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stdout] warning: function `exception_data_abort_access_in_stage2` is never used [INFO] [stdout] --> src/exception.rs:145:8 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn exception_data_abort_access_in_stage2() -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: function `exception_data_abort_access_reg` is never used [INFO] [stdout] --> src/exception.rs:150:8 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn exception_data_abort_access_reg() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stdout] warning: function `exception_data_abort_access_reg_width` is never used [INFO] [stdout] --> src/exception.rs:155:8 [INFO] [stdout] | [INFO] [stdout] 155 | pub fn exception_data_abort_access_reg_width() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stdout] warning: function `exception_data_abort_access_is_sign_ext` is never used [INFO] [stdout] --> src/exception.rs:160:8 [INFO] [stdout] | [INFO] [stdout] 160 | pub fn exception_data_abort_access_is_sign_ext() -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] warning: struct `HvcDefaultMsg` is never constructed [INFO] [stdout] --> src/hvc.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct HvcDefaultMsg { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: function `run_guest_by_trap2el2` is never used [INFO] [stdout] --> src/hvc.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn run_guest_by_trap2el2(token: usize, regs_addr: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stdout] warning: function `hvc_call` is never used [INFO] [stdout] --> src/hvc.rs:147:4 [INFO] [stdout] | [INFO] [stdout] 147 | fn hvc_call( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/lib.rs:15:6 [INFO] [stdout] warning: 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stderr] 15 | ($val: expr_2021, $reg: expr_2021, $asm_width:tt) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/lib.rs:15:23 [INFO] [stderr] | [INFO] [stderr] 15 | ($val: expr_2021, $reg: expr_2021, $asm_width:tt) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/lib.rs:20:6 [INFO] [stderr] | [INFO] [stderr] 20 | ($val: expr_2021, $reg: expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/lib.rs:20:23 [INFO] [stderr] | [INFO] [stderr] 20 | ($val: expr_2021, $reg: expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/lib.rs:31:6 [INFO] [stderr] | [INFO] [stderr] 31 | ($reg: expr_2021, $val: expr_2021, $asm_width:tt) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/lib.rs:31:23 [INFO] [stderr] | [INFO] [stderr] 31 | ($reg: expr_2021, $val: expr_2021, $asm_width:tt) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/lib.rs:36:6 [INFO] [stderr] | [INFO] [stderr] 36 | ($reg: expr_2021, $val: expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/lib.rs:36:23 [INFO] [stderr] | [INFO] [stderr] 36 | ($reg: expr_2021, $val: expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x0` [INFO] [stderr] --> src/hvc.rs:147:5 [INFO] [stderr] | [INFO] [stderr] 147 | x0: usize, [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_x0` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x1` [INFO] [stderr] --> src/hvc.rs:148:5 [INFO] [stderr] | [INFO] [stderr] 148 | x1: usize, [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_x1` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x2` [INFO] [stderr] --> src/hvc.rs:149:5 [INFO] [stderr] | [INFO] [stderr] 149 | x2: usize, [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_x2` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x3` [INFO] [stderr] --> src/hvc.rs:150:5 [INFO] [stderr] | [INFO] [stderr] 150 | x3: usize, [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_x3` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x4` [INFO] [stderr] --> src/hvc.rs:151:5 [INFO] [stderr] | [INFO] [stderr] 151 | x4: usize, [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_x4` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x5` [INFO] [stderr] --> src/hvc.rs:152:5 [INFO] [stderr] | [INFO] [stderr] 152 | x5: usize, [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_x5` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x6` [INFO] [stderr] --> src/hvc.rs:153:5 [INFO] [stderr] | [INFO] [stderr] 153 | x6: usize, [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_x6` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x7` [INFO] [stderr] --> src/hvc.rs:154:5 [INFO] [stderr] | [INFO] [stderr] 154 | x7: usize, [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_x7` [INFO] [stderr] [INFO] [stderr] error: aborting due to 10 previous errors; 8 warnings emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `el2_code` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/exception.rs [INFO] [stderr] * src/hvc.rs [INFO] [stderr] * src/lib.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/exception.rs:55:6 [INFO] [stderr] | [INFO] [stderr] 55 | ($at_op:expr_2021, $addr:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/exception.rs:55:24 [INFO] [stderr] | [INFO] [stderr] 55 | ($at_op:expr_2021, $addr:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/lib.rs:15:6 [INFO] [stderr] | [INFO] [stderr] 15 | ($val: expr_2021, $reg: expr_2021, $asm_width:tt) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/lib.rs:15:23 [INFO] [stderr] | [INFO] [stderr] 15 | ($val: expr_2021, $reg: expr_2021, $asm_width:tt) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/lib.rs:20:6 [INFO] [stderr] | [INFO] [stderr] 20 | ($val: expr_2021, $reg: expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/lib.rs:20:23 [INFO] [stderr] | [INFO] [stderr] 20 | ($val: expr_2021, $reg: expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/lib.rs:31:6 [INFO] [stderr] | [INFO] [stderr] 31 | ($reg: expr_2021, $val: expr_2021, $asm_width:tt) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/lib.rs:31:23 [INFO] [stderr] | [INFO] [stderr] 31 | ($reg: expr_2021, $val: expr_2021, $asm_width:tt) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/lib.rs:36:6 [INFO] [stderr] | [INFO] [stderr] 36 | ($reg: expr_2021, $val: expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/lib.rs:36:23 [INFO] [stderr] | [INFO] [stderr] 36 | ($reg: expr_2021, $val: expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x0` [INFO] [stderr] --> src/hvc.rs:147:5 [INFO] [stderr] | [INFO] [stderr] 147 | x0: usize, [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_x0` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x1` [INFO] [stderr] --> src/hvc.rs:148:5 [INFO] [stderr] | [INFO] [stderr] 148 | x1: usize, [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_x1` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x2` [INFO] [stderr] --> src/hvc.rs:149:5 [INFO] [stderr] | [INFO] [stderr] 149 | x2: usize, [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_x2` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x3` [INFO] [stderr] --> src/hvc.rs:150:5 [INFO] [stderr] | [INFO] [stderr] 150 | x3: usize, [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_x3` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x4` [INFO] [stderr] --> src/hvc.rs:151:5 [INFO] [stderr] | [INFO] [stderr] 151 | x4: usize, [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_x4` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x5` [INFO] [stderr] --> src/hvc.rs:152:5 [INFO] [stderr] | [INFO] [stderr] 152 | x5: usize, [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_x5` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x6` [INFO] [stderr] --> src/hvc.rs:153:5 [INFO] [stderr] | [INFO] [stderr] 153 | x6: usize, [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_x6` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x7` [INFO] [stderr] --> src/hvc.rs:154:5 [INFO] [stderr] | [INFO] [stderr] 154 | x7: usize, [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_x7` [INFO] [stderr] [INFO] [stderr] error: aborting due to 10 previous errors; 8 warnings emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.36s [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/exception.rs:165:3 [INFO] [stdout] | [INFO] [stdout] 165 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] = note: `--force-warn unsafe-attr-outside-unsafe` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 165 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:54:3 [INFO] [stdout] | [INFO] [stdout] 54 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 54 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:56:3 [INFO] [stdout] | [INFO] [stdout] 56 | #[link_section = ".el2code.test"] [INFO] [stdout] | ^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 56 | #[unsafe(link_section = ".el2code.test")] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/exception.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | ($at_op:expr, $addr:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 55 | ($at_op:expr_2021, $addr:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/exception.rs:55:25 [INFO] [stdout] | [INFO] [stdout] 55 | ($at_op:expr, $addr:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 55 | ($at_op:expr, $addr:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `aarch64_cpu::registers::MIDR_EL1::Implementer::Infineon` [INFO] [stdout] --> src/sync.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use aarch64_cpu::registers::MIDR_EL1::Implementer::Infineon; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `asm::barrier`, `asm`, and `registers::*` [INFO] [stdout] --> src/hvc.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use aarch64_cpu::{asm, asm::barrier, registers::*}; [INFO] [stdout] | ^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Readable` [INFO] [stdout] --> src/hvc.rs:3:49 [INFO] [stdout] | [INFO] [stdout] 3 | use tock_registers::interfaces::{ReadWriteable, Readable, Writeable}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VTTBR_EL2` [INFO] [stdout] --> src/hvc.rs:100:44 [INFO] [stdout] | [INFO] [stdout] 100 | use aarch64_cpu::registers::{VTCR_EL2, VTTBR_EL2}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | ($val: expr, $reg: expr, $asm_width:tt) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 15 | ($val: expr_2021, $reg: expr, $asm_width:tt) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:15:24 [INFO] [stdout] | [INFO] [stdout] 15 | ($val: expr, $reg: expr, $asm_width:tt) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 15 | ($val: expr, $reg: expr_2021, $asm_width:tt) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | ($val: expr, $reg: expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 20 | ($val: expr_2021, $reg: expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | ($val: expr, $reg: expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 20 | ($val: expr, $reg: expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | ($reg: expr, $val: expr, $asm_width:tt) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 31 | ($reg: expr_2021, $val: expr, $asm_width:tt) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:31:24 [INFO] [stdout] | [INFO] [stdout] 31 | ($reg: expr, $val: expr, $asm_width:tt) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 31 | ($reg: expr, $val: expr_2021, $asm_width:tt) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | ($reg: expr, $val: expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 36 | ($reg: expr_2021, $val: expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:36:24 [INFO] [stdout] | [INFO] [stdout] 36 | ($reg: expr, $val: expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 36 | ($reg: expr, $val: expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x0` [INFO] [stdout] --> src/hvc.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 148 | x0: usize, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x0` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x1` [INFO] [stdout] --> src/hvc.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 149 | x1: usize, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x2` [INFO] [stdout] --> src/hvc.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 150 | x2: usize, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x3` [INFO] [stdout] --> src/hvc.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 151 | x3: usize, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x4` [INFO] [stdout] --> src/hvc.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 152 | x4: usize, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x5` [INFO] [stdout] --> src/hvc.rs:153:5 [INFO] [stdout] | [INFO] [stdout] 153 | x5: usize, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x6` [INFO] [stdout] --> src/hvc.rs:154:5 [INFO] [stdout] | [INFO] [stdout] 154 | x6: usize, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x7` [INFO] [stdout] --> src/hvc.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | x7: usize, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x7` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/hvc.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | let mut r0: usize = 0; [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: associated function `default` is never used [INFO] [stdout] --> src/context_frame.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 77 | impl Aarch64ContextFrame { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 78 | pub fn default() -> Aarch64ContextFrame { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `default` and `reset` are never used [INFO] [stdout] --> src/context_frame.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 102 | impl VmCtxFpsimd { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 103 | pub fn default() -> VmCtxFpsimd { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `default`, `reset`, and `ext_regs_store` are never used [INFO] [stdout] --> src/context_frame.rs:177:12 [INFO] [stdout] | [INFO] [stdout] 176 | impl VmContext { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 177 | pub fn default() -> VmContext { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 231 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 270 | pub fn ext_regs_store(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exception_esr_el1` is never used [INFO] [stdout] --> src/exception.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn exception_esr_el1() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exception_data_abort_access_width` is never used [INFO] [stdout] --> src/exception.rs:135:8 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn exception_data_abort_access_width() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exception_data_abort_access_is_write` is never used [INFO] [stdout] --> src/exception.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn exception_data_abort_access_is_write() -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exception_data_abort_access_in_stage2` is never used [INFO] [stdout] --> src/exception.rs:145:8 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn exception_data_abort_access_in_stage2() -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exception_data_abort_access_reg` is never used [INFO] [stdout] --> src/exception.rs:150:8 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn exception_data_abort_access_reg() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exception_data_abort_access_reg_width` is never used [INFO] [stdout] --> src/exception.rs:155:8 [INFO] [stdout] | [INFO] [stdout] 155 | pub fn exception_data_abort_access_reg_width() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exception_data_abort_access_is_sign_ext` is never used [INFO] [stdout] --> src/exception.rs:160:8 [INFO] [stdout] | [INFO] [stdout] 160 | pub fn exception_data_abort_access_is_sign_ext() -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HvcDefaultMsg` is never constructed [INFO] [stdout] --> src/hvc.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct HvcDefaultMsg { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_guest_by_trap2el2` is never used [INFO] [stdout] --> src/hvc.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn run_guest_by_trap2el2(token: usize, regs_addr: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hvc_call` is never used [INFO] [stdout] --> src/hvc.rs:147:4 [INFO] [stdout] | [INFO] [stdout] 147 | fn hvc_call( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking el2_code v0.1.0 (/tmp/fixit) [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/exception.rs:165:3 [INFO] [stdout] | [INFO] [stdout] 165 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 165 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:54:3 [INFO] [stdout] | [INFO] [stdout] 54 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 54 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:56:3 [INFO] [stdout] | [INFO] [stdout] 56 | #[link_section = ".el2code.test"] [INFO] [stdout] | ^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 56 | #[unsafe(link_section = ".el2code.test")] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/exception.rs:165:3 [INFO] [stdout] | [INFO] [stdout] 165 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 165 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `aarch64_cpu::registers::MIDR_EL1::Implementer::Infineon` [INFO] [stdout] --> src/sync.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use aarch64_cpu::registers::MIDR_EL1::Implementer::Infineon; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `asm::barrier`, `asm`, and `registers::*` [INFO] [stdout] --> src/hvc.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use aarch64_cpu::{asm, asm::barrier, registers::*}; [INFO] [stdout] | ^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:54:3 [INFO] [stdout] | [INFO] [stdout] 54 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 54 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Readable` [INFO] [stdout] --> src/hvc.rs:3:49 [INFO] [stdout] | [INFO] [stdout] 3 | use tock_registers::interfaces::{ReadWriteable, Readable, Writeable}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:56:3 [INFO] [stdout] | [INFO] [stdout] 56 | #[link_section = ".el2code.test"] [INFO] [stdout] | ^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 56 | #[unsafe(link_section = ".el2code.test")] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VTTBR_EL2` [INFO] [stdout] --> src/hvc.rs:100:44 [INFO] [stdout] | [INFO] [stdout] 100 | use aarch64_cpu::registers::{VTCR_EL2, VTTBR_EL2}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `aarch64_cpu::registers::MIDR_EL1::Implementer::Infineon` [INFO] [stdout] --> src/sync.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use aarch64_cpu::registers::MIDR_EL1::Implementer::Infineon; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `asm::barrier`, `asm`, and `registers::*` [INFO] [stdout] --> src/hvc.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use aarch64_cpu::{asm, asm::barrier, registers::*}; [INFO] [stdout] | ^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Readable` [INFO] [stdout] --> src/hvc.rs:3:49 [INFO] [stdout] | [INFO] [stdout] 3 | use tock_registers::interfaces::{ReadWriteable, Readable, Writeable}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VTTBR_EL2` [INFO] [stdout] --> src/hvc.rs:100:44 [INFO] [stdout] | [INFO] [stdout] 100 | use aarch64_cpu::registers::{VTCR_EL2, VTTBR_EL2}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x0` [INFO] [stdout] --> src/hvc.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 148 | x0: usize, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x0` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x0` [INFO] [stdout] --> src/hvc.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 148 | x0: usize, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x0` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x1` [INFO] [stdout] --> src/hvc.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 149 | x1: usize, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x2` [INFO] [stdout] --> src/hvc.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 150 | x2: usize, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x3` [INFO] [stdout] --> src/hvc.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 151 | x3: usize, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x4` [INFO] [stdout] --> src/hvc.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 152 | x4: usize, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x5` [INFO] [stdout] --> src/hvc.rs:153:5 [INFO] [stdout] | [INFO] [stdout] 153 | x5: usize, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x6` [INFO] [stdout] --> src/hvc.rs:154:5 [INFO] [stdout] | [INFO] [stdout] 154 | x6: usize, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x7` [INFO] [stdout] --> src/hvc.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | x7: usize, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x7` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/hvc.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | let mut r0: usize = 0; [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: unused variable: `x1` [INFO] [stdout] --> src/hvc.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 149 | x1: usize, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x2` [INFO] [stdout] --> src/hvc.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 150 | x2: usize, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x3` [INFO] [stdout] --> src/hvc.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 151 | x3: usize, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x4` [INFO] [stdout] --> src/hvc.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 152 | x4: usize, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x5` [INFO] [stdout] --> src/hvc.rs:153:5 [INFO] [stdout] | [INFO] [stdout] 153 | x5: usize, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x6` [INFO] [stdout] --> src/hvc.rs:154:5 [INFO] [stdout] | [INFO] [stdout] 154 | x6: usize, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x7` [INFO] [stdout] --> src/hvc.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | x7: usize, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x7` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/hvc.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | let mut r0: usize = 0; [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] error: aborting due to 3 previous errors; 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `el2_code` (lib) due to 4 previous errors; 13 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `el2_code` (lib test) due to 4 previous errors; 13 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "62918cc6faf180c7b7b63e8324671f92995aeaa61d4ec3febd91bf0859cbd92a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "62918cc6faf180c7b7b63e8324671f92995aeaa61d4ec3febd91bf0859cbd92a", kill_on_drop: false }` [INFO] [stdout] 62918cc6faf180c7b7b63e8324671f92995aeaa61d4ec3febd91bf0859cbd92a