We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99913c5 commit 0b1fa98Copy full SHA for 0b1fa98
src/libstd/lib.rs
@@ -221,7 +221,7 @@
221
222
// Always use alloc_system during stage0 since jemalloc might be unavailable or
223
// disabled (Issue #30592)
224
-#![cfg_attr(stage0, feature(alloc_system))]
+#![cfg_attr(any(stage0, not(feature = "jemalloc")), feature(alloc_system))]
225
226
// Turn warnings into errors, but only after stage0, where it can be useful for
227
// code to emit warnings during language transitions
@@ -331,7 +331,7 @@ extern crate libc;
331
// We always need an unwinder currently for backtraces
332
extern crate unwind;
333
334
-#[cfg(stage0)]
+#[cfg(any(stage0, not(feature = "jemalloc")))]
335
extern crate alloc_system;
336
337
// compiler-rt intrinsics
0 commit comments