Guest User

Untitled

a guest
Oct 17th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs
  2. index bafe23e..c01717a 100644
  3. --- a/src/libstd/lib.rs
  4. +++ b/src/libstd/lib.rs
  5. @@ -230,11 +230,6 @@
  6. // Tell the compiler to link to either panic_abort or panic_unwind
  7. #![needs_panic_runtime]
  8.  
  9. -// Always use alloc_system during stage0 since we don't know if the alloc_*
  10. -// crate the stage0 compiler will pick by default is available (most
  11. -// obviously, if the user has disabled jemalloc in `./configure`).
  12. -#![cfg_attr(any(stage0, feature = "force_alloc_system"), feature(alloc_system))]
  13. -
  14. // Turn warnings into errors, but only after stage0, where it can be useful for
  15. // code to emit warnings during language transitions
  16. #![deny(warnings)]
  17. @@ -246,6 +241,7 @@
  18. // compiler details that will never be stable
  19. #![feature(alloc)]
  20. #![feature(allocator_api)]
  21. +#![feature(alloc_system)]
  22. #![feature(allow_internal_unstable)]
  23. #![feature(asm)]
  24. #![feature(associated_consts)]
  25. @@ -342,15 +338,13 @@ extern crate core as __core;
  26. #[macro_use]
  27. #[macro_reexport(vec, format)]
  28. extern crate alloc;
  29. +extern crate alloc_system;
  30. extern crate std_unicode;
  31. extern crate libc;
  32.  
  33. // We always need an unwinder currently for backtraces
  34. extern crate unwind;
  35.  
  36. -#[cfg(any(stage0, feature = "force_alloc_system"))]
  37. -extern crate alloc_system;
  38. -
  39. // compiler-rt intrinsics
  40. extern crate compiler_builtins;
Add Comment
Please, Sign In to add comment