Skip to content

Commit f0f9bcf

Browse files
committed
Add attributes.diagnostic.do_not_recommend.duplicates
1 parent 8ab4b15 commit f0f9bcf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/attributes/diagnostics.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,8 @@ The `diagnostic::do_not_recommend` attribute does not accept any arguments, thou
663663
r[attributes.diagnostic.do_not_recommend.allowed-positions]
664664
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.
665665
666+
r[attributes.diagnostic.do_not_recommend.duplicates]
667+
Duplicate instances of the `diagnostic::do_not_recommend` attribute are ignored.
666668
667669
[Clippy]: https://github.com/rust-lang/rust-clippy
668670
[`Drop`]: ../special-types-and-traits.md#drop

0 commit comments

Comments
 (0)