mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
Mark extern_mod_stmt_cnum
as eval_always
This query reads from global untracked state, so it always needs to be evaluated.
This commit is contained in:
parent
7a7bbdb3ab
commit
e70d47b3b5
@ -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()) }
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user