diff options
Diffstat (limited to 'src/libcore/macros/mod.rs')
| -rw-r--r-- | src/libcore/macros/mod.rs | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/src/libcore/macros/mod.rs b/src/libcore/macros/mod.rs index 13a569e81d0..625ceb0953b 100644 --- a/src/libcore/macros/mod.rs +++ b/src/libcore/macros/mod.rs @@ -1293,30 +1293,21 @@ pub(crate) mod builtin { /// [unstable book]: ../unstable-book/library-features/asm.html #[unstable( feature = "asm", - issue = "70173", + issue = "72016", reason = "inline assembly is not stable enough for use and is subject to change" )] - #[cfg_attr( - not(bootstrap), - rustc_deprecated( - since = "1.44.0", - reason = "the syntax of asm! will change soon, use llvm_asm! to avoid breakage", - suggestion = "llvm_asm", - ) - )] #[rustc_builtin_macro] #[macro_export] macro_rules! asm { - ("assembly template" - : $("output"(operand),)* - : $("input"(operand),)* - : $("clobbers",)* - : $("options",)*) => { + ("assembly template", + $(operands,)* + $(options($(option),*))? + ) => { /* compiler built-in */ }; } - /// Inline assembly. + /// LLVM-style inline assembly. /// /// Read the [unstable book] for the usage. /// @@ -1324,7 +1315,7 @@ pub(crate) mod builtin { #[unstable( feature = "llvm_asm", issue = "70173", - reason = "inline assembly is not stable enough for use and is subject to change" + reason = "LLVM-style inline assembly will never be stabilized, prefer using asm! instead" )] #[rustc_builtin_macro] #[macro_export] |
