We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 03301ef + 169a221 commit cd9b305Copy full SHA for cd9b305
compiler/rustc_middle/src/query/mod.rs
@@ -1055,6 +1055,8 @@ rustc_queries! {
1055
desc { "checking if the crate is_compiler_builtins" }
1056
}
1057
query has_global_allocator(_: CrateNum) -> bool {
1058
+ // This query depends on untracked global state in CStore
1059
+ eval_always
1060
fatal_cycle
1061
desc { "checking if the crate has_global_allocator" }
1062
src/test/incremental/issue-84252-global-alloc.rs
@@ -0,0 +1,12 @@
1
+// revisions: cfail1 cfail2
2
+// build-pass
3
+
4
+#![crate_type="lib"]
5
+#![crate_type="cdylib"]
6
7
+#[allow(unused_imports)]
8
+use std::alloc::System;
9
10
+#[cfg(cfail1)]
11
+#[global_allocator]
12
+static ALLOC: System = System;
0 commit comments