Skip to content

Commit 4c10c84

Browse files
committed
Auto merge of #83153 - Aaron1011:eval-always-extern_mod_stmt_cnum, r=michaelwoerister
Mark `extern_mod_stmt_cnum` as `eval_always` This query reads from global untracked state, so it always needs to be evaluated.
2 parents 107896c + e70d47b commit 4c10c84

File tree

1 file changed

+2
-0
lines changed
  • compiler/rustc_middle/src/query

1 file changed

+2
-0
lines changed

compiler/rustc_middle/src/query/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1278,6 +1278,8 @@ rustc_queries! {
12781278
desc { |tcx| "collecting child items of `{}`", tcx.def_path_str(def_id) }
12791279
}
12801280
query extern_mod_stmt_cnum(def_id: LocalDefId) -> Option<CrateNum> {
1281+
// This depends on untracked global state (`tcx.extern_crate_map`)
1282+
eval_always
12811283
desc { |tcx| "computing crate imported by `{}`", tcx.def_path_str(def_id.to_def_id()) }
12821284
}
12831285

0 commit comments

Comments
 (0)