File tree 1 file changed +8
-7
lines changed
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -82,16 +82,17 @@ A naked function that makes use of registers in a way that does not conform
82
82
to the specified calling convention imposes additional safety invariants on its caller,
83
83
and therefore must be marked as an [ unsafe function] .
84
84
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
-
89
85
r[ attributes.codegen.naked.unused-variables]
90
86
The [ ` unused_variables ` ] lint is suppressed within naked functions.
91
87
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 ) .
95
96
96
97
r[ attributes.codegen.no_builtins]
97
98
## The ` no_builtins ` attribute
You can’t perform that action at this time.
0 commit comments