They are also removed from the prelude as per the decision in https://github.com/rust-lang/rust/issues/87228. stdarch and compiler-builtins are updated to work with the new, stable asm! and global_asm! macros.
12 lines
168 B
Rust
12 lines
168 B
Rust
// min-llvm-version: 13.0.0
|
|
// run-pass
|
|
// needs-asm-support
|
|
|
|
#![feature(asm_unwind)]
|
|
|
|
use std::arch::asm;
|
|
|
|
fn main() {
|
|
unsafe { asm!("", options(may_unwind)) };
|
|
}
|