File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -564,7 +564,7 @@ impl Display for Arguments<'_> {
564
564
on(
565
565
crate_local,
566
566
label = "`{Self}` cannot be formatted using `{{:?}}`" ,
567
- note = "add `#[derive(Debug)]` or manually implement `{Debug}`"
567
+ note = "add `#[derive(Debug)]` to `{Self}` or manually implement `{Debug}` for `{Self }`"
568
568
) ,
569
569
message = "`{Self}` doesn't implement `{Debug}`" ,
570
570
label = "`{Self}` cannot be formatted using `{{:?}}` because it doesn't implement `{Debug}`"
@@ -662,6 +662,7 @@ pub use macros::Debug;
662
662
note = "in format strings you may be able to use `{{:?}}` (or {{:#?}} for pretty-print) instead"
663
663
) ]
664
664
#[ doc( alias = "{}" ) ]
665
+ #[ rustc_diagnostic_item = "display_trait" ]
665
666
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
666
667
pub trait Display {
667
668
/// Formats the value using the given formatter.
You can’t perform that action at this time.
0 commit comments