1
Fork 0

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.
This commit is contained in:
Jubilee 2024-09-18 14:32:28 -07:00 committed by GitHub
commit 4bd9de5512
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 35 additions and 26 deletions

View file

@ -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() }
}