about summary refs log tree commit diff
path: root/src/liballoc/lib.rs
diff options
context:
space:
mode:
authorJorge Aparicio <japaricious@gmail.com>2016-10-30 22:14:05 -0500
committerJorge Aparicio <japaricious@gmail.com>2016-10-30 22:14:05 -0500
commit907d2a1aeb26151cc81dfa148e874e4fe50d1a14 (patch)
tree07abb5a8862b2c913882e43524f6871604921bdf /src/liballoc/lib.rs
parentea20ab107eb03179e82ff42109d0aaa62aba48b8 (diff)
downloadrust-907d2a1aeb26151cc81dfa148e874e4fe50d1a14.tar.gz
rust-907d2a1aeb26151cc81dfa148e874e4fe50d1a14.zip
make `alloc` and `collections` compilable for thumbv6m-none-eabi
by cfging away `alloc::Arc` and changing OOM to abort for this target
Diffstat (limited to 'src/liballoc/lib.rs')
-rw-r--r--src/liballoc/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs
index 31491106d97..dd22894ea95 100644
--- a/src/liballoc/lib.rs
+++ b/src/liballoc/lib.rs
@@ -74,6 +74,7 @@
 
 #![feature(allocator)]
 #![feature(box_syntax)]
+#![feature(cfg_target_has_atomic)]
 #![feature(coerce_unsized)]
 #![feature(const_fn)]
 #![feature(core_intrinsics)]
@@ -117,6 +118,7 @@ mod boxed {
 }
 #[cfg(test)]
 mod boxed_test;
+#[cfg(target_has_atomic = "ptr")]
 pub mod arc;
 pub mod rc;
 pub mod raw_vec;