about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-04-12 08:36:31 +0200
committerSimon Sapin <simon.sapin@exyr.org>2018-04-21 09:47:38 +0200
commit70fdd1b5c0f6a0673fcf924b3d8880af034bdee0 (patch)
tree424c8534abbff8f858c055bfc39cf2a6d80e040e /src/liballoc
parent18ab16b5104403ef7a55a2d241c566e35c5ae57a (diff)
downloadrust-70fdd1b5c0f6a0673fcf924b3d8880af034bdee0.tar.gz
rust-70fdd1b5c0f6a0673fcf924b3d8880af034bdee0.zip
Make the unstable StrExt and SliceExt traits private to libcore in not(stage0)
`Float` still needs to be public for libcore unit tests.
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs
index 702d7b70cd3..6399be98cd5 100644
--- a/src/liballoc/lib.rs
+++ b/src/liballoc/lib.rs
@@ -75,7 +75,7 @@
 #![deny(missing_debug_implementations)]
 
 #![cfg_attr(test, allow(deprecated))] // rand
-#![cfg_attr(not(test), feature(core_float))]
+#![cfg_attr(all(not(test), stage0), feature(float_internals))]
 #![cfg_attr(not(test), feature(exact_size_is_empty))]
 #![cfg_attr(not(test), feature(generator_trait))]
 #![cfg_attr(test, feature(rand, test))]