Skip to content

Commit

Permalink
Reject all inline attributes on naked functions
Browse files Browse the repository at this point in the history
This matches the behavior of the merged PR implementing this criteria.

rust-lang/rust#87652
  • Loading branch information
npmccallum committed Aug 4, 2021
1 parent 7ecd561 commit 08adbc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion text/2972-constrained-naked.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ A naked function has a defined calling convention and a body which contains only
A naked function is identified by the `#[naked]` attribute and:
1. should specify a calling convention besides `extern "Rust"`.
1. should define only FFI-safe arguments and return types.
1. must not specify the `#[inline]` or `#[inline(always)]` attribute.
1. must not specify the `#[inline]` or `#[inline(*)]` attribute.
1. must have a body which contains only a single `asm!()` statement which:
1. may be wrapped in an `unsafe` block.
1. must not contain any operands except `const` or `sym`.
Expand Down

0 comments on commit 08adbc0

Please sign in to comment.