diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2015-03-10 23:13:16 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2015-03-16 21:56:31 -0500 |
| commit | b2f37554bf9f2b55fa6ba6ba8e8eaf1826301b4e (patch) | |
| tree | b1aa2ad44a4102c50b4c2e7b0c8d517e06bfb3b6 /src/libstd | |
| parent | 85707398809f8b56afc471f228bd4d0137ce0a32 (diff) | |
| download | rust-b2f37554bf9f2b55fa6ba6ba8e8eaf1826301b4e.tar.gz rust-b2f37554bf9f2b55fa6ba6ba8e8eaf1826301b4e.zip | |
impl char
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/num/strconv.rs | 3 | ||||
| -rw-r--r-- | src/libstd/old_io/mod.rs | 1 | ||||
| -rw-r--r-- | src/libstd/old_path/windows.rs | 1 | ||||
| -rw-r--r-- | src/libstd/path.rs | 1 | ||||
| -rw-r--r-- | src/libstd/prelude/v1.rs | 1 |
5 files changed, 7 insertions, 0 deletions
diff --git a/src/libstd/num/strconv.rs b/src/libstd/num/strconv.rs index 5fdd42dbc7a..fa24e9fd5af 100644 --- a/src/libstd/num/strconv.rs +++ b/src/libstd/num/strconv.rs @@ -16,7 +16,10 @@ use self::ExponentFormat::*; use self::SignificantDigits::*; use self::SignFormat::*; +#[cfg(stage0)] use char::{self, CharExt}; +#[cfg(not(stage0))] +use char; use num::{self, Int, Float, ToPrimitive}; use num::FpCategory as Fp; use ops::FnMut; diff --git a/src/libstd/old_io/mod.rs b/src/libstd/old_io/mod.rs index 332b941bcc0..711faa98bd9 100644 --- a/src/libstd/old_io/mod.rs +++ b/src/libstd/old_io/mod.rs @@ -251,6 +251,7 @@ pub use self::FileMode::*; pub use self::FileAccess::*; pub use self::IoErrorKind::*; +#[cfg(stage0)] use char::CharExt; use default::Default; use error::Error; diff --git a/src/libstd/old_path/windows.rs b/src/libstd/old_path/windows.rs index 838710b1aec..1387d531001 100644 --- a/src/libstd/old_path/windows.rs +++ b/src/libstd/old_path/windows.rs @@ -15,6 +15,7 @@ use self::PathPrefix::*; use ascii::AsciiExt; +#[cfg(stage0)] use char::CharExt; use clone::Clone; use cmp::{Ordering, Eq, Ord, PartialEq, PartialOrd}; diff --git a/src/libstd/path.rs b/src/libstd/path.rs index 2159e300744..29c779df4d2 100644 --- a/src/libstd/path.rs +++ b/src/libstd/path.rs @@ -159,6 +159,7 @@ mod platform { use core::prelude::*; use ascii::*; + #[cfg(stage0)] use char::CharExt as UnicodeCharExt; use super::{os_str_as_u8_slice, u8_slice_as_os_str, Prefix}; use ffi::OsStr; diff --git a/src/libstd/prelude/v1.rs b/src/libstd/prelude/v1.rs index 31aac333859..b244f785852 100644 --- a/src/libstd/prelude/v1.rs +++ b/src/libstd/prelude/v1.rs @@ -25,6 +25,7 @@ // Reexported types and traits #[stable(feature = "rust1", since = "1.0.0")] #[doc(no_inline)] pub use boxed::Box; +#[cfg(stage0)] #[stable(feature = "rust1", since = "1.0.0")] #[doc(no_inline)] pub use char::CharExt; #[stable(feature = "rust1", since = "1.0.0")] |
