Mark has_global_allocator query as eval_always

Fixes #84252

This query reads from untracked global state in `CStore`.
This commit is contained in:
Aaron Hill 2021-04-16 16:28:54 -04:00
parent 0cc00c48d2
commit 169a221618
No known key found for this signature in database
GPG key ID: B4087E510E98B164
2 changed files with 14 additions and 0 deletions

View file

@ -1055,6 +1055,8 @@ rustc_queries! {
desc { "checking if the crate is_compiler_builtins" }
}
query has_global_allocator(_: CrateNum) -> bool {
// This query depends on untracked global state in CStore
eval_always
fatal_cycle
desc { "checking if the crate has_global_allocator" }
}