Skip to content

Commit 74b595f

Browse files
committed
Minor update of diagnostics::on_unimplemented
More closely align with the template, and some minor word tweaks.
1 parent 2348935 commit 74b595f

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
@@ -473,6 +473,7 @@ Unknown attributes in this namespace are accepted, though they may emit warnings
473473
Additionally, invalid inputs to known attributes will typically be a warning (see the attribute definitions for details).
474474
This is meant to allow adding or discarding attributes and changing inputs in the future to allow changes without the need to keep the non-meaningful attributes or options working.
475475
476+
<!-- template:attributes -->
476477
r[attributes.diagnostic.on_unimplemented]
477478
### The `diagnostic::on_unimplemented` attribute
478479
@@ -524,7 +525,7 @@ The following keys have the given meaning:
524525
* `note` --- Provides additional notes.
525526
526527
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+
The `diagnostic::on_unimplemented` attribute should be placed on a [trait declaration], though it is not an error to be located in other positions.
528529
529530
r[attributes.diagnostic.on_unimplemented.duplicates]
530531
If the `diagnostic::on_unimplemented` attribute is specified multiple times, then it behaves as if all options were specified in a single attribute. Duplicates of some options will be ignored, see [attributes.diagnostic.on_unimplemented.repetition].

0 commit comments

Comments
 (0)