diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2025-07-03 13:42:36 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2025-07-04 14:01:09 +0000 |
| commit | b4a0cd99950871b9e694d81a24f6e41827b3a4e5 (patch) | |
| tree | bdcf2011f63c4ae16a02266d285b48c9d27308d0 | |
| parent | a4f9d7a3f3de0096780e86b7a82a8474fc14fc59 (diff) | |
| download | rust-b4a0cd99950871b9e694d81a24f6e41827b3a4e5.tar.gz rust-b4a0cd99950871b9e694d81a24f6e41827b3a4e5.zip | |
Remove names_imported_by_glob_use query.
| -rw-r--r-- | clippy_lints/src/wildcard_imports.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/wildcard_imports.rs b/clippy_lints/src/wildcard_imports.rs index d9dda6eadb2..22fd15d153a 100644 --- a/clippy_lints/src/wildcard_imports.rs +++ b/clippy_lints/src/wildcard_imports.rs @@ -130,7 +130,7 @@ impl LateLintPass<'_> for WildcardImports { } if let ItemKind::Use(use_path, UseKind::Glob) = &item.kind && (self.warn_on_all || !self.check_exceptions(cx, item, use_path.segments)) - && let used_imports = cx.tcx.names_imported_by_glob_use(item.owner_id.def_id) + && let Some(used_imports) = cx.tcx.resolutions(()).glob_map.get(&item.owner_id.def_id) && !used_imports.is_empty() // Already handled by `unused_imports` && !used_imports.contains(&kw::Underscore) { |
