aboutsummaryrefslogtreecommitdiff
path: root/ctr-std/src/lib.rs
diff options
context:
space:
mode:
authorpanicbit <[email protected]>2017-07-09 23:54:59 +0200
committerpanicbit <[email protected]>2017-07-10 00:01:48 +0200
commit2538d230b8aa58c8b86af34cd0af3cde11fe9b1e (patch)
tree3a1b85a37dfcd61e014143eff181f0583bdc6aee /ctr-std/src/lib.rs
parentctr-std: Migrate to the new liballoc API (diff)
downloadctru-rs-2538d230b8aa58c8b86af34cd0af3cde11fe9b1e.tar.xz
ctru-rs-2538d230b8aa58c8b86af34cd0af3cde11fe9b1e.zip
Add default allocator symbols
Diffstat (limited to 'ctr-std/src/lib.rs')
-rw-r--r--ctr-std/src/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/ctr-std/src/lib.rs b/ctr-std/src/lib.rs
index af14e12..cc4825c 100644
--- a/ctr-std/src/lib.rs
+++ b/ctr-std/src/lib.rs
@@ -1,5 +1,6 @@
#![feature(alloc)]
#![feature(allocator_api)]
+#![feature(allocator_internals)]
#![feature(alloc_system)]
#![feature(allow_internal_unstable)]
#![feature(box_syntax)]
@@ -46,7 +47,7 @@
#![allow(non_camel_case_types, dead_code, unused_features)]
#![no_std]
-
+#![cfg_attr(not(stage0), default_lib_allocator)]
#![stable(feature = "rust1", since = "1.0.0")]
#[prelude_import]
@@ -169,6 +170,7 @@ pub mod panic;
pub mod path;
pub mod sync;
pub mod time;
+pub mod heap;
// Platform-abstraction modules
#[macro_use]