Skip to content

Commit b2f3755

Browse files
author
Jorge Aparicio
committed
impl char
1 parent 8570739 commit b2f3755

File tree

9 files changed

+381
-1
lines changed

9 files changed

+381
-1
lines changed

src/libcollections/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ mod prelude {
166166

167167
// from other crates.
168168
pub use alloc::boxed::Box;
169-
pub use unicode::char::CharExt;
170169

171170
// from collections.
172171
pub use borrow::IntoCow;

src/libstd/num/strconv.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ use self::ExponentFormat::*;
1616
use self::SignificantDigits::*;
1717
use self::SignFormat::*;
1818

19+
#[cfg(stage0)]
1920
use char::{self, CharExt};
21+
#[cfg(not(stage0))]
22+
use char;
2023
use num::{self, Int, Float, ToPrimitive};
2124
use num::FpCategory as Fp;
2225
use ops::FnMut;

src/libstd/old_io/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ pub use self::FileMode::*;
251251
pub use self::FileAccess::*;
252252
pub use self::IoErrorKind::*;
253253

254+
#[cfg(stage0)]
254255
use char::CharExt;
255256
use default::Default;
256257
use error::Error;

src/libstd/old_path/windows.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use self::PathPrefix::*;
1616

1717
use ascii::AsciiExt;
18+
#[cfg(stage0)]
1819
use char::CharExt;
1920
use clone::Clone;
2021
use cmp::{Ordering, Eq, Ord, PartialEq, PartialOrd};

src/libstd/path.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ mod platform {
159159
use core::prelude::*;
160160
use ascii::*;
161161

162+
#[cfg(stage0)]
162163
use char::CharExt as UnicodeCharExt;
163164
use super::{os_str_as_u8_slice, u8_slice_as_os_str, Prefix};
164165
use ffi::OsStr;

src/libstd/prelude/v1.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
// Reexported types and traits
2626
#[stable(feature = "rust1", since = "1.0.0")]
2727
#[doc(no_inline)] pub use boxed::Box;
28+
#[cfg(stage0)]
2829
#[stable(feature = "rust1", since = "1.0.0")]
2930
#[doc(no_inline)] pub use char::CharExt;
3031
#[stable(feature = "rust1", since = "1.0.0")]

0 commit comments

Comments
 (0)