diff options
Diffstat (limited to 'src/libstd/prelude/v1.rs')
| -rw-r--r-- | src/libstd/prelude/v1.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstd/prelude/v1.rs b/src/libstd/prelude/v1.rs index b244f785852..81cdced58bd 100644 --- a/src/libstd/prelude/v1.rs +++ b/src/libstd/prelude/v1.rs @@ -46,8 +46,12 @@ #[doc(no_inline)] pub use result::Result::{self, Ok, Err}; #[stable(feature = "rust1", since = "1.0.0")] #[doc(no_inline)] pub use slice::{SliceExt, SliceConcatExt, AsSlice}; +#[cfg(stage0)] #[stable(feature = "rust1", since = "1.0.0")] #[doc(no_inline)] pub use str::{Str, StrExt}; +#[cfg(not(stage0))] +#[stable(feature = "rust1", since = "1.0.0")] +#[doc(no_inline)] pub use str::Str; #[stable(feature = "rust1", since = "1.0.0")] #[doc(no_inline)] pub use string::{String, ToString}; #[stable(feature = "rust1", since = "1.0.0")] |
