File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -84,16 +84,17 @@ A naked function that makes use of registers in a way that does not conform
84
84
to the specified calling convention imposes additional safety invariants on its caller,
85
85
and therefore must be marked as an [ unsafe function] .
86
86
87
- > *** Note*** : a ` naked_asm! ` invocation may refer to registers that were not specified as operands.
88
- > for standard ` asm! ` this is undefined behavior, but ` naked_asm! ` may rely on the state of registers
89
- > as specified by the calling convention.
90
-
91
87
r[ attributes.codegen.naked.unused-variables]
92
88
The [ ` unused_variables ` ] lint is suppressed within naked functions.
93
89
94
- r[ attributes.codegen.naked.no-unwind]
95
- Implementations may assume that naked functions never unwind.
96
- Unwinding through a naked function is undefined behavior.
90
+ r[ attributes.codegen.naked.inline]
91
+ A naked function cannot be attributed by the [ ` inline ` ] ( #the-inline-attribute ) attribute.
92
+
93
+ r[ attributes.codegen.naked.track_caller]
94
+ A naked function cannot be attributed by the [ ` track_caller ` ] ( #the-track_caller-attribute ) attribute.
95
+
96
+ r[ attributes.codegen.naked.testing]
97
+ A naked function cannot be attributed by [ the testing attributes] ( ../testing.md ) .
97
98
98
99
r[ attributes.codegen.no_builtins]
99
100
## The ` no_builtins ` attribute
You can’t perform that action at this time.
0 commit comments