Do not fetch HIR in native_libs.

This commit is contained in:
Camille GILLOT 2023-07-15 10:17:37 +00:00
parent 51e1f7a561
commit fdc93f307f
5 changed files with 43 additions and 56 deletions

View file

@ -1579,7 +1579,7 @@ rustc_queries! {
}
/// Returns a list of all `extern` blocks of a crate.
query foreign_modules(_: CrateNum) -> &'tcx FxHashMap<DefId, ForeignModule> {
query foreign_modules(_: CrateNum) -> &'tcx FxIndexMap<DefId, ForeignModule> {
arena_cache
desc { "looking up the foreign modules of a linked crate" }
separate_provide_extern