Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rt: use
naked_asm!
to ensure the library builds under nightly 2024-…
…10-07 This feature has been added recently in this pull request: rust-lang/rust#128651 After this pull, `core::arch::asm!` can no longer be used in #[naked] functions. We should use `core::arch::naked_asm!` instead. Tested rustc version: ``` rustc -vV rustc 1.83.0-nightly (3ae715c8c 2024-10-07) binary: rustc commit-hash: 3ae715c8c63f9aeac47cbf7d8d9dadb3fa32c638 commit-date: 2024-10-07 host: x86_64-pc-windows-msvc release: 1.83.0-nightly LLVM version: 19.1.1 ``` Signed-off-by: Zhouqi Jiang <luojia@hust.edu.cn>
- Loading branch information