From e70d47b3b5b9bb8bb680264cee6d88d9c74277bc Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Mon, 15 Mar 2021 12:26:49 -0400 Subject: [PATCH] Mark `extern_mod_stmt_cnum` as `eval_always` This query reads from global untracked state, so it always needs to be evaluated. --- compiler/rustc_middle/src/query/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/rustc_middle/src/query/mod.rs b/compiler/rustc_middle/src/query/mod.rs index b03b26d64606c..c5697ff1ce1cb 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 { + // 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()) } }