about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2021-03-15 12:26:49 -0400
committerAaron Hill <aa1ronham@gmail.com>2021-03-15 12:26:49 -0400
commite70d47b3b5b9bb8bb680264cee6d88d9c74277bc (patch)
tree96b9f75bdfa3add19de869c9060b6db0f9efcacd /compiler
parent7a7bbdb3abfa72ca717ef54ffc4f307d0d44de67 (diff)
downloadrust-e70d47b3b5b9bb8bb680264cee6d88d9c74277bc.tar.gz
rust-e70d47b3b5b9bb8bb680264cee6d88d9c74277bc.zip
Mark `extern_mod_stmt_cnum` as `eval_always`
This query reads from global untracked state, so it always needs to be
evaluated.
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_middle/src/query/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_middle/src/query/mod.rs b/compiler/rustc_middle/src/query/mod.rs
index b03b26d6460..c5697ff1ce1 100644
--- a/compiler/rustc_middle/src/query/mod.rs
+++ b/compiler/rustc_middle/src/query/mod.rs
@@ -1278,6 +1278,8 @@ rustc_queries! {
         desc { |tcx| "collecting child items of `{}`", tcx.def_path_str(def_id) }
     }
     query extern_mod_stmt_cnum(def_id: LocalDefId) -> Option<CrateNum> {
+        // This depends on untracked global state (`tcx.extern_crate_map`)
+        eval_always
         desc { |tcx| "computing crate imported by `{}`", tcx.def_path_str(def_id.to_def_id()) }
     }