about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorJubilee <workingjubilee@gmail.com>2024-09-18 14:32:28 -0700
committerGitHub <noreply@github.com>2024-09-18 14:32:28 -0700
commit4bd9de55127318bd21fa4584c5f3cb2d24f21bc6 (patch)
treebd0cbc3bba1ab0d481523def8b8fdbec647dd674 /library/std/src
parent4d9ce4b4b3d16b3e788ea4e8cafd28f812aad8ac (diff)
parenta18564c1987e9c6009884af09092b4c2cd2dbbe1 (diff)
downloadrust-4bd9de55127318bd21fa4584c5f3cb2d24f21bc6.tar.gz
rust-4bd9de55127318bd21fa4584c5f3cb2d24f21bc6.zip
Rollup merge of #130522 - GnomedDev:clippy-manual-retain-paths, r=compiler-errors
[Clippy] Swap `manual_retain` to use diagnostic items instead of paths

Part of https://github.com/rust-lang/rust-clippy/issues/5393, just a chore.
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() }
     }