about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorGnomedDev <david2005thomas@gmail.com>2024-09-18 16:59:57 +0100
committerGnomedDev <david2005thomas@gmail.com>2024-09-18 17:20:44 +0100
commita18564c1987e9c6009884af09092b4c2cd2dbbe1 (patch)
tree5d73df704bafa11dbb80bad3c65ef5bf17ac3f10 /library/std/src
parentaaed38b2a631dfc593454abf471d75d84033773e (diff)
[Clippy] Swap `manual_retain` to use diagnostic items instead of paths
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/collections/hash/set.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/collections/hash/set.rs b/library/std/src/collections/hash/set.rs
index d611353b0d3..e63d90645f7 100644
--- a/library/std/src/collections/hash/set.rs
+++ b/library/std/src/collections/hash/set.rs
@@ -187,6 +187,7 @@ impl<T, S> HashSet<T, S> {
     #[inline]
     #[rustc_lint_query_instability]
     #[stable(feature = "rust1", since = "1.0.0")]
+    #[cfg_attr(not(test), rustc_diagnostic_item = "hashset_iter")]
     pub fn iter(&self) -> Iter<'_, T> {
         Iter { base: self.base.iter() }
     }