diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-02-27 18:48:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-27 18:48:49 +0100 |
| commit | 660f184966c84983570b113d3ce99124e0180962 (patch) | |
| tree | 475712062dae31948d2f73e29432460eb7cd8362 /compiler/rustc_middle/src/query | |
| parent | 2375d7f38698a23cfc87d7f9f570393245cbc2f7 (diff) | |
| parent | 40bde9902c3d6a32ee25cdf66cbcf4fc4687b3d9 (diff) | |
| download | rust-660f184966c84983570b113d3ce99124e0180962.tar.gz rust-660f184966c84983570b113d3ce99124e0180962.zip | |
Rollup merge of #108363 - cjgillot:unused-crate, r=WaffleLapkin
Move the unused extern crate check back to the resolver. It doesn't have anything to do in `rustc_hir_typeck`.
Diffstat (limited to 'compiler/rustc_middle/src/query')
| -rw-r--r-- | compiler/rustc_middle/src/query/mod.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/compiler/rustc_middle/src/query/mod.rs b/compiler/rustc_middle/src/query/mod.rs index d4435a54b4a..d37c8d3813b 100644 --- a/compiler/rustc_middle/src/query/mod.rs +++ b/compiler/rustc_middle/src/query/mod.rs @@ -1830,9 +1830,6 @@ rustc_queries! { query maybe_unused_trait_imports(_: ()) -> &'tcx FxIndexSet<LocalDefId> { desc { "fetching potentially unused trait imports" } } - query maybe_unused_extern_crates(_: ()) -> &'tcx [(LocalDefId, Span)] { - desc { "looking up all possibly unused extern crates" } - } query names_imported_by_glob_use(def_id: LocalDefId) -> &'tcx FxHashSet<Symbol> { desc { |tcx| "finding names imported by glob use for `{}`", tcx.def_path_str(def_id.to_def_id()) } } |
