about summary refs log tree commit diff
path: root/library/core/src/fmt
diff options
context:
space:
mode:
authorCameron Steffen <cam.steffen94@gmail.com>2021-10-02 18:51:01 -0500
committerCameron Steffen <cam.steffen94@gmail.com>2021-10-02 19:38:19 -0500
commiteec856bfbcd79d12352f81b44a9f04e5bb06bda5 (patch)
treede49e7a7c12ca371082c5ff3356eb271853cc5bb /library/core/src/fmt
parentf03eb6bef8ced8a243858b819e013b9caf83d757 (diff)
downloadrust-eec856bfbcd79d12352f81b44a9f04e5bb06bda5.tar.gz
rust-eec856bfbcd79d12352f81b44a9f04e5bb06bda5.zip
Make diangostic item names consistent
Diffstat (limited to 'library/core/src/fmt')
-rw-r--r--library/core/src/fmt/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/core/src/fmt/mod.rs b/library/core/src/fmt/mod.rs
index 31da3ef87b9..d10563a4097 100644
--- a/library/core/src/fmt/mod.rs
+++ b/library/core/src/fmt/mod.rs
@@ -617,7 +617,7 @@ impl Display for Arguments<'_> {
     label = "`{Self}` cannot be formatted using `{{:?}}` because it doesn't implement `{Debug}`"
 )]
 #[doc(alias = "{:?}")]
-#[rustc_diagnostic_item = "debug_trait"]
+#[rustc_diagnostic_item = "Debug"]
 #[cfg_attr(not(bootstrap), rustc_trivial_field_reads)]
 pub trait Debug {
     /// Formats the value using the given formatter.
@@ -710,7 +710,7 @@ pub use macros::Debug;
     note = "in format strings you may be able to use `{{:?}}` (or {{:#?}} for pretty-print) instead"
 )]
 #[doc(alias = "{}")]
-#[rustc_diagnostic_item = "display_trait"]
+#[rustc_diagnostic_item = "Display"]
 #[stable(feature = "rust1", since = "1.0.0")]
 pub trait Display {
     /// Formats the value using the given formatter.
@@ -1003,7 +1003,7 @@ pub trait UpperHex {
 /// assert_eq!(&l_ptr[..2], "0x");
 /// ```
 #[stable(feature = "rust1", since = "1.0.0")]
-#[rustc_diagnostic_item = "pointer_trait"]
+#[rustc_diagnostic_item = "Pointer"]
 pub trait Pointer {
     /// Formats the value using the given formatter.
     #[stable(feature = "rust1", since = "1.0.0")]