Make the unstable StrExt and SliceExt traits private to libcore in not(stage0)

`Float` still needs to be public for libcore unit tests.
This commit is contained in:
Simon Sapin
2018-04-12 08:36:31 +02:00
parent 18ab16b510
commit 70fdd1b5c0
8 changed files with 40 additions and 29 deletions

View File

@@ -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))]