diff options
| author | Michael Woerister <michaelwoerister@posteo> | 2022-12-02 16:27:25 +0100 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@posteo> | 2023-01-19 10:19:07 +0100 |
| commit | 8a1de57a4aaf4ff13d20fdbc162064f237bb7679 (patch) | |
| tree | 500e267153f2feb8dc9bdeab29b46def3439fa17 /src | |
| parent | 65d2f2a5f9c323c88d1068e8e90d0b47a20d491c (diff) | |
| download | rust-8a1de57a4aaf4ff13d20fdbc162064f237bb7679.tar.gz rust-8a1de57a4aaf4ff13d20fdbc162064f237bb7679.zip | |
Use UnordSet instead of FxHashSet in define_id_collections!().
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/clippy/clippy_lints/src/len_zero.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/clippy/clippy_lints/src/len_zero.rs b/src/tools/clippy/clippy_lints/src/len_zero.rs index 9eba4675629..3c70c9cf19a 100644 --- a/src/tools/clippy/clippy_lints/src/len_zero.rs +++ b/src/tools/clippy/clippy_lints/src/len_zero.rs @@ -219,7 +219,7 @@ fn check_trait_items(cx: &LateContext<'_>, visited_trait: &Item<'_>, trait_items let is_empty = sym!(is_empty); let is_empty_method_found = current_and_super_traits - .iter() + .items() .flat_map(|&i| cx.tcx.associated_items(i).filter_by_name_unhygienic(is_empty)) .any(|i| { i.kind == ty::AssocKind::Fn |
