]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/lib.rs
Some final touches to ensure `./x.py test --stage 0 src/lib*` works
[rust.git] / src / libstd / lib.rs
index fc05833e28503f7eeede377f3e40601cde3a40a9..d41739ab02c6ad90c19d55dbe7fe0d644a1dbb56 100644 (file)
 // with a rustc without jemalloc.
 // FIXME(#44236) shouldn't need MSVC logic
 #![cfg_attr(all(not(target_env = "msvc"),
-                any(stage0, feature = "force_alloc_system")),
+                any(all(stage0, not(test)), feature = "force_alloc_system")),
             feature(global_allocator))]
 #[cfg(all(not(target_env = "msvc"),
-          any(stage0, feature = "force_alloc_system")))]
+          any(all(stage0, not(test)), feature = "force_alloc_system")))]
 #[global_allocator]
 static ALLOC: alloc_system::System = alloc_system::System;