Skip to content

Commit

Permalink
impl char
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Aparicio committed Mar 17, 2015
1 parent 8570739 commit b2f3755
Show file tree
Hide file tree
Showing 9 changed files with 381 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/libcollections/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ mod prelude {

// from other crates.
pub use alloc::boxed::Box;
pub use unicode::char::CharExt;

// from collections.
pub use borrow::IntoCow;
Expand Down
3 changes: 3 additions & 0 deletions src/libstd/num/strconv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/libstd/old_io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/libstd/old_path/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down
1 change: 1 addition & 0 deletions src/libstd/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/libstd/prelude/v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down
Loading

0 comments on commit b2f3755

Please sign in to comment.