diff options
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/lib.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs index 93b84cdedd4..69f74ba73bb 100644 --- a/src/liballoc/lib.rs +++ b/src/liballoc/lib.rs @@ -95,8 +95,15 @@ #![feature(needs_allocator)] +// Issue# 30592: Systematically use alloc_system during stage0 since jemalloc +// might be unavailable or disabled +#![cfg_attr(stage0, feature(alloc_system))] + #![cfg_attr(test, feature(test, rustc_private, box_heap))] +#[cfg(stage0)] +extern crate alloc_system; + // Allow testing this library #[cfg(test)] |
