about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorAlexander Light <allight@cs.brown.edu>2015-02-05 10:51:17 -0500
committerAlexander Light <allight@cs.brown.edu>2015-02-05 11:48:28 -0500
commit8fded29586041ac8877bc35dadc60bdf873459a0 (patch)
tree83e17ee35c8fabb91dfba612bd5b91be287b5e11 /src/liballoc
parentac134f7ca435551964996ee88319241cd3c7c110 (diff)
downloadrust-8fded29586041ac8877bc35dadc60bdf873459a0.tar.gz
rust-8fded29586041ac8877bc35dadc60bdf873459a0.zip
Made external_crates feature work again.
Also added test for it.

Fixes #21928
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs
index 99423349020..d99a5e2cc6d 100644
--- a/src/liballoc/lib.rs
+++ b/src/liballoc/lib.rs
@@ -73,7 +73,9 @@
 #![feature(unboxed_closures)]
 #![feature(core)]
 #![feature(hash)]
-#![feature(libc)]
+#![cfg_attr(all(not(feature = "external_funcs"), not(feature = "external_crate")),
+            feature(libc))]
+
 
 #[macro_use]
 extern crate core;