Skip to content

Commit b68e28d

Browse files
committed
Minor update of diagnostics::do_not_recommend
More closely align with the template, and some minor word tweaks.
1 parent f0f9bcf commit b68e28d

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
@@ -549,6 +549,7 @@ error[E0277]: My Message for `ImportantTrait<i32>` implemented for `String`
549549
= note: Note 2
550550
```
551551

552+
<!-- template:attributes -->
552553
r[attributes.diagnostic.do_not_recommend]
553554
### The `diagnostic::do_not_recommend` attribute
554555

@@ -664,7 +665,7 @@ r[attributes.diagnostic.do_not_recommend.allowed-positions]
664665
The `diagnostic::do_not_recommend` attribute should be placed on a [trait implementation item][trait-impl], though it is not an error to be located in other positions.
665666
666667
r[attributes.diagnostic.do_not_recommend.duplicates]
667-
Duplicate instances of the `diagnostic::do_not_recommend` attribute are ignored.
668+
The `diagnostic::do_not_recommend` attribute may be used any number of times on a form.
668669
669670
[Clippy]: https://github.com/rust-lang/rust-clippy
670671
[`Drop`]: ../special-types-and-traits.md#drop

0 commit comments

Comments
 (0)