Skip to content

Commit 8e792b5

Browse files
committed
Move on_unimplemented syntax rule to be first
1 parent 3c07672 commit 8e792b5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/attributes/diagnostics.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -514,10 +514,6 @@ The *`diagnostic::on_unimplemented` [attribute][attributes]* is a hint to the co
514514
> = note: Note 2
515515
> ```
516516
517-
518-
r[attributes.diagnostic.on_unimplemented.allowed-positions]
519-
The attribute should be placed on a [trait declaration], though it is not an error to be located in other positions.
520-
521517
r[attributes.diagnostic.on_unimplemented.syntax]
522518
The attribute uses the [MetaListNameValueStr] syntax to specify its inputs, though any malformed input to the attribute is not considered as an error to provide both forwards and backwards compatibility.
523519
@@ -527,6 +523,9 @@ The following keys have the given meaning:
527523
* `label` --- The text for the label shown inline in the broken code in the error message.
528524
* `note` --- Provides additional notes.
529525
526+
r[attributes.diagnostic.on_unimplemented.allowed-positions]
527+
The attribute should be placed on a [trait declaration], though it is not an error to be located in other positions.
528+
530529
r[attributes.diagnostic.on_unimplemented.note-repetition]
531530
The `note` option can appear several times, which results in several note messages being emitted.
532531

0 commit comments

Comments
 (0)