diff options
| author | Jubilee <workingjubilee@gmail.com> | 2024-09-18 14:32:28 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-18 14:32:28 -0700 |
| commit | 4bd9de55127318bd21fa4584c5f3cb2d24f21bc6 (patch) | |
| tree | bd0cbc3bba1ab0d481523def8b8fdbec647dd674 /library/std/src | |
| parent | 4d9ce4b4b3d16b3e788ea4e8cafd28f812aad8ac (diff) | |
| parent | a18564c1987e9c6009884af09092b4c2cd2dbbe1 (diff) | |
| download | rust-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.rs | 1 |
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() } } |
