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