diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2014-12-30 13:58:31 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2015-01-05 12:30:51 +1100 |
| commit | 0302d379776fca82d3eb693046239dc66998f691 (patch) | |
| tree | ee410f469e5a025f09d1eca774ca3aa71f9d519e /src/libstd | |
| parent | 19120209d8e532514203d16a2cff0ad3b44de3bb (diff) | |
| download | rust-0302d379776fca82d3eb693046239dc66998f691.tar.gz rust-0302d379776fca82d3eb693046239dc66998f691.zip | |
Merge `UnicodeChar` and `CharExt`.
This "reexports" all the functionality of `core::char::CharExt` as methods on `unicode::u_char::UnicodeChar` (renamed to `CharExt`). Imports may need to be updated (one now just imports `unicode::CharExt`, or `std::char::CharExt` rather than two traits from either), so this is a [breaking-change]
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/io/mod.rs | 1 | ||||
| -rw-r--r-- | src/libstd/num/strconv.rs | 2 | ||||
| -rw-r--r-- | src/libstd/path/windows.rs | 2 | ||||
| -rw-r--r-- | src/libstd/prelude/v1.rs | 2 |
4 files changed, 3 insertions, 4 deletions
diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs index 51bf206f70e..3fa0b5645c5 100644 --- a/src/libstd/io/mod.rs +++ b/src/libstd/io/mod.rs @@ -248,7 +248,6 @@ use str; use string::String; use uint; use unicode; -use unicode::char::UnicodeChar; use vec::Vec; // Reexports diff --git a/src/libstd/num/strconv.rs b/src/libstd/num/strconv.rs index 20dd70f0faa..67fe599ecd6 100644 --- a/src/libstd/num/strconv.rs +++ b/src/libstd/num/strconv.rs @@ -16,7 +16,7 @@ use self::ExponentFormat::*; use self::SignificantDigits::*; use self::SignFormat::*; -use char::{self, Char}; +use char::{self, CharExt}; use num::{self, Int, Float, ToPrimitive}; use num::FpCategory as Fp; use ops::FnMut; diff --git a/src/libstd/path/windows.rs b/src/libstd/path/windows.rs index aae8d6cadef..cf8bc0e6242 100644 --- a/src/libstd/path/windows.rs +++ b/src/libstd/path/windows.rs @@ -16,6 +16,7 @@ use self::PathPrefix::*; use ascii::AsciiExt; use c_str::{CString, ToCStr}; +use char::CharExt; use clone::Clone; use cmp::{PartialEq, Eq, PartialOrd, Ord, Ordering}; use hash; @@ -28,7 +29,6 @@ use option::Option::{Some, None}; use slice::{SliceExt, SliceConcatExt}; use str::{SplitTerminator, FromStr, StrExt}; use string::{String, ToString}; -use unicode::char::UnicodeChar; use vec::Vec; use super::{contains_nul, BytesContainer, GenericPath, GenericPathUnsafe}; diff --git a/src/libstd/prelude/v1.rs b/src/libstd/prelude/v1.rs index eda20fc7d60..f6bdcd53dff 100644 --- a/src/libstd/prelude/v1.rs +++ b/src/libstd/prelude/v1.rs @@ -22,7 +22,7 @@ // Reexported types and traits #[stable] #[doc(no_inline)] pub use boxed::Box; -#[stable] #[doc(no_inline)] pub use char::{CharExt, UnicodeChar}; +#[stable] #[doc(no_inline)] pub use char::CharExt; #[stable] #[doc(no_inline)] pub use clone::Clone; #[stable] #[doc(no_inline)] pub use cmp::{PartialEq, PartialOrd, Eq, Ord}; #[stable] #[doc(no_inline)] pub use iter::CloneIteratorExt; |
