Skip to content

Commit 8409c21

Browse files
committed
Add inline assembly as an exception for lint attributes
1 parent cb24801 commit 8409c21

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/attributes/diagnostics.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ LintReason -> `reason` `=` (STRING_LITERAL | RAW_STRING_LITERAL)
5555
The [LintNames] list the lint checks that are affected. The optional [LintReason] is described in [attributes.diagnostics.lint.reason].
5656

5757
r[attributes.diagnostics.lint.allowed-positions]
58-
The lint attributes are allowed anywhere attributes are allowed.
58+
The lint attributes are allowed anywhere attributes are allowed except for [inline assembly templates].
5959

6060
r[attributes.diagnostics.lint.duplicates]
6161
When a lint attribute is specified multiple times, it combines the union of all specified lints. The order matters when multiple levels are specified in the same place, which is described in [attributes.diagnostics.lint.override].
@@ -687,6 +687,7 @@ The first error message includes a somewhat confusing error message about the re
687687
[functions]: ../items/functions.md
688688
[impl trait]: ../types/impl-trait.md
689689
[implementation]: ../items/implementations.md
690+
[inline assembly templates]: asm.attributes
690691
[item]: ../items.md
691692
[let statement]: ../statements.md#let-statements
692693
[macro definition]: ../macros-by-example.md

0 commit comments

Comments
 (0)