Skip to content

Commit 04d5b88

Browse files
committedApr 19, 2025
mention incompatible attributes
1 parent e42068d commit 04d5b88

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed
 

‎src/attributes/codegen.md

+8-7
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,17 @@ A naked function that makes use of registers in a way that does not conform
8282
to the specified calling convention imposes additional safety invariants on its caller,
8383
and therefore must be marked as an [unsafe function].
8484

85-
> ***Note***: a `naked_asm!` invocation may refer to registers that were not specified as operands.
86-
> for standard `asm!` this is undefined behavior, but `naked_asm!` may rely on the state of registers
87-
> as specified by the calling convention.
88-
8985
r[attributes.codegen.naked.unused-variables]
9086
The [`unused_variables`] lint is suppressed within naked functions.
9187

92-
r[attributes.codegen.naked.no-unwind]
93-
Implementations may assume that naked functions never unwind.
94-
Unwinding through a naked function is undefined behavior.
88+
r[attributes.codegen.naked.inline]
89+
A naked function cannot be attributed by the [`inline`](#the-inline-attribute) attribute.
90+
91+
r[attributes.codegen.naked.track_caller]
92+
A naked function cannot be attributed by the [`track_caller`](#the-track_caller-attribute) attribute.
93+
94+
r[attributes.codegen.naked.testing]
95+
A naked function cannot be attributed by [the testing attributes](../testing.md).
9596

9697
r[attributes.codegen.no_builtins]
9798
## The `no_builtins` attribute

0 commit comments

Comments
 (0)
Please sign in to comment.