about summary refs log tree commit diff
path: root/library/std/src/collections
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/std/src/collections
parentf03eb6bef8ced8a243858b819e013b9caf83d757 (diff)
downloadrust-eec856bfbcd79d12352f81b44a9f04e5bb06bda5.tar.gz
rust-eec856bfbcd79d12352f81b44a9f04e5bb06bda5.zip
Make diangostic item names consistent
Diffstat (limited to 'library/std/src/collections')
-rw-r--r--library/std/src/collections/hash/map.rs2
-rw-r--r--library/std/src/collections/hash/set.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/collections/hash/map.rs b/library/std/src/collections/hash/map.rs
index f96906be540..2de16ce3f86 100644
--- a/library/std/src/collections/hash/map.rs
+++ b/library/std/src/collections/hash/map.rs
@@ -203,7 +203,7 @@ use crate::sys;
 /// }
 /// ```
 
-#[cfg_attr(not(test), rustc_diagnostic_item = "hashmap_type")]
+#[cfg_attr(not(test), rustc_diagnostic_item = "HashMap")]
 #[stable(feature = "rust1", since = "1.0.0")]
 #[rustc_insignificant_dtor]
 pub struct HashMap<K, V, S = RandomState> {
diff --git a/library/std/src/collections/hash/set.rs b/library/std/src/collections/hash/set.rs
index 941981e3b00..2613fbce156 100644
--- a/library/std/src/collections/hash/set.rs
+++ b/library/std/src/collections/hash/set.rs
@@ -107,7 +107,7 @@ use super::map::{map_try_reserve_error, RandomState};
 /// [`HashMap`]: crate::collections::HashMap
 /// [`RefCell`]: crate::cell::RefCell
 /// [`Cell`]: crate::cell::Cell
-#[cfg_attr(not(test), rustc_diagnostic_item = "hashset_type")]
+#[cfg_attr(not(test), rustc_diagnostic_item = "HashSet")]
 #[stable(feature = "rust1", since = "1.0.0")]
 pub struct HashSet<T, S = RandomState> {
     base: base::HashSet<T, S>,