Skip to content

Commit 3537016

Browse files
committed
Clarify the unused lint clause in naked functions
This simply points out which warning is actually being disabled.
1 parent 08adbc0 commit 3537016

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/2972-constrained-naked.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ A naked function is identified by the `#[naked]` attribute and:
3232
In exchange for the above constraints, the compiler commits to:
3333
1. produce a clear error if any of the above requirements are violated.
3434
1. produce a clear warning if any of the above suggestions are not heeded.
35-
1. disable the unused argument lint for the function.
35+
1. disable the unused argument lint for the function (implicit `#[allow(unused_variables)]`).
3636
1. never inline the function (implicit `#[inline(never)]`).
3737
1. emit no additional instructions to the function body before the `asm!()` statement.
3838

0 commit comments

Comments
 (0)