about summary refs log tree commit diff
path: root/src/test/codegen/asm-may_unwind.rs
diff options
context:
space:
mode:
authorAmanieu d'Antras <amanieu@gmail.com>2021-12-10 00:15:33 +0000
committerAmanieu d'Antras <amanieu@gmail.com>2021-12-12 11:20:03 +0000
commit44a3a66ee890545a2c1ac78ff8f107fe5e7204f9 (patch)
tree8821e53e6c339fca0b3fc58e34fc702a0866d087 /src/test/codegen/asm-may_unwind.rs
parentb3a55371a72f665f5d9476d07980e76d3e755fe6 (diff)
downloadrust-44a3a66ee890545a2c1ac78ff8f107fe5e7204f9.tar.gz
rust-44a3a66ee890545a2c1ac78ff8f107fe5e7204f9.zip
Stabilize asm! and global_asm!
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.
Diffstat (limited to 'src/test/codegen/asm-may_unwind.rs')
-rw-r--r--src/test/codegen/asm-may_unwind.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/codegen/asm-may_unwind.rs b/src/test/codegen/asm-may_unwind.rs
index 85cae8b2b1c..3b34d79c3a9 100644
--- a/src/test/codegen/asm-may_unwind.rs
+++ b/src/test/codegen/asm-may_unwind.rs
@@ -3,7 +3,9 @@
 // only-x86_64
 
 #![crate_type = "rlib"]
-#![feature(asm, asm_unwind)]
+#![feature(asm_unwind)]
+
+use std::arch::asm;
 
 #[no_mangle]
 pub extern "C" fn panicky() {}