You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/attributes/diagnostics.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -549,9 +549,8 @@ error[E0277]: My Message for `ImportantTrait<i32>` implemented for `String`
549
549
= note: Note 2
550
550
```
551
551
552
-
### The `diagnostic::do_not_recommend` attribute
553
-
554
552
r[attributes.diagnostic.do_not_recommend]
553
+
### The `diagnostic::do_not_recommend` attribute
555
554
556
555
r[attributes.diagnostic.do_not_recommend.intro]
557
556
The `#[diagnostic::do_not_recommend]` attribute is a hint to the compiler to not show the annotated trait implementation as part of a diagnostic message.
0 commit comments