about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-07-05 00:12:09 +0200
committerGitHub <noreply@github.com>2025-07-05 00:12:09 +0200
commitdaf9adbd8999684ec9f830ba3425670d11fc288f (patch)
tree0d040672590bc9b3a54d9a8c8a2a473285973da7
parent9c9ee348072ef5c8f29ccd8c0496d2269ba244df (diff)
parentb4a0cd99950871b9e694d81a24f6e41827b3a4e5 (diff)
downloadrust-daf9adbd8999684ec9f830ba3425670d11fc288f.tar.gz
rust-daf9adbd8999684ec9f830ba3425670d11fc288f.zip
Rollup merge of #143372 - cjgillot:bare-glob-map, r=petrochenkov
Remove names_imported_by_glob_use query.

Based on https://github.com/rust-lang/rust/pull/143247
r? ``@ghost`` for perf
-rw-r--r--clippy_lints/src/wildcard_imports.rs2
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)
         {