Skip to content

Commit 08adbc0

Browse files
committed
Reject all inline attributes on naked functions
This matches the behavior of the merged PR implementing this criteria. rust-lang/rust#87652
1 parent 7ecd561 commit 08adbc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/2972-constrained-naked.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ A naked function has a defined calling convention and a body which contains only
2121
A naked function is identified by the `#[naked]` attribute and:
2222
1. should specify a calling convention besides `extern "Rust"`.
2323
1. should define only FFI-safe arguments and return types.
24-
1. must not specify the `#[inline]` or `#[inline(always)]` attribute.
24+
1. must not specify the `#[inline]` or `#[inline(*)]` attribute.
2525
1. must have a body which contains only a single `asm!()` statement which:
2626
1. may be wrapped in an `unsafe` block.
2727
1. must not contain any operands except `const` or `sym`.

0 commit comments

Comments
 (0)