about summary refs log tree commit diff
path: root/library/core/src
diff options
context:
space:
mode:
authorFolkert de Vries <folkert@folkertdev.nl>2024-09-05 13:45:26 +0200
committerFolkert de Vries <folkert@folkertdev.nl>2024-10-06 18:12:25 +0200
commit562ec5a6fb469a360b72aa8ba0ce149598cc7975 (patch)
treeef26a0c513a413e9a7994389cdfd5796e5a69b68 /library/core/src
parent1a9c1cbf367fb2b6f04a0a81d7fae56485e29e7f (diff)
downloadrust-562ec5a6fb469a360b72aa8ba0ce149598cc7975.tar.gz
rust-562ec5a6fb469a360b72aa8ba0ce149598cc7975.zip
disallow `asm!` in `#[naked]` functions
also disallow the `noreturn` option, and infer `naked_asm!` as `!`
Diffstat (limited to 'library/core/src')
-rw-r--r--library/core/src/arch.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/library/core/src/arch.rs b/library/core/src/arch.rs
index f1a0739128c..4945c045bc6 100644
--- a/library/core/src/arch.rs
+++ b/library/core/src/arch.rs
@@ -77,17 +77,3 @@ pub macro naked_asm("assembly template", $(operands,)* $(options($(option),*))?)
 pub macro global_asm("assembly template", $(operands,)* $(options($(option),*))?) {
     /* compiler built-in */
 }
-
-/// Inline assembly used in combination with `#[naked]` functions.
-///
-/// Refer to [Rust By Example] for a usage guide and the [reference] for
-/// detailed information about the syntax and available options.
-///
-/// [Rust By Example]: https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html
-/// [reference]: https://doc.rust-lang.org/nightly/reference/inline-assembly.html
-#[unstable(feature = "naked_functions", issue = "90957")]
-#[rustc_builtin_macro]
-#[cfg(not(bootstrap))]
-pub macro naked_asm("assembly template", $(operands,)* $(options($(option),*))?) {
-    /* compiler built-in */
-}