Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4ca50c3

Browse files
committedOct 6, 2024
disallow asm! in #[naked] functions
also disallow the `noreturn` option, and infer `naked_asm!` as `!`
1 parent cc09cb0 commit 4ca50c3

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed
 

‎core/src/arch.rs

-14
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,3 @@ pub macro naked_asm("assembly template", $(operands,)* $(options($(option),*))?)
7777
pub macro global_asm("assembly template", $(operands,)* $(options($(option),*))?) {
7878
/* compiler built-in */
7979
}
80-
81-
/// Inline assembly used in combination with `#[naked]` functions.
82-
///
83-
/// Refer to [Rust By Example] for a usage guide and the [reference] for
84-
/// detailed information about the syntax and available options.
85-
///
86-
/// [Rust By Example]: https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html
87-
/// [reference]: https://doc.rust-lang.org/nightly/reference/inline-assembly.html
88-
#[unstable(feature = "naked_functions", issue = "90957")]
89-
#[rustc_builtin_macro]
90-
#[cfg(not(bootstrap))]
91-
pub macro naked_asm("assembly template", $(operands,)* $(options($(option),*))?) {
92-
/* compiler built-in */
93-
}

0 commit comments

Comments
 (0)
Please sign in to comment.