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