Skip to content

Commit

Permalink
Remove std::num::ToStrRadix from the prelude
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanzab authored and alexcrichton committed Feb 25, 2014
1 parent 84a8893 commit dad52cf
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/libnum/bigint.rs
Expand Up @@ -1400,7 +1400,7 @@ mod biguint_tests {
use std::cmp::{Less, Equal, Greater};
use std::from_str::FromStr;
use std::i64;
use std::num::{Zero, One, FromStrRadix};
use std::num::{Zero, One, FromStrRadix, ToStrRadix};
use std::num::{ToPrimitive, FromPrimitive};
use std::rand::{task_rng};
use std::str;
Expand Down Expand Up @@ -2058,7 +2058,7 @@ mod bigint_tests {

use std::cmp::{Less, Equal, Greater};
use std::i64;
use std::num::{Zero, One, FromStrRadix};
use std::num::{Zero, One, FromStrRadix, ToStrRadix};
use std::num::{ToPrimitive, FromPrimitive};
use std::rand::{task_rng};
use std::u64;
Expand Down
2 changes: 1 addition & 1 deletion src/libnum/rational.rs
Expand Up @@ -333,7 +333,7 @@ impl<T: FromStrRadix + Clone + Integer + Ord>
mod test {

use super::{Ratio, Rational, BigRational};
use std::num::{Zero,One,FromStrRadix,FromPrimitive};
use std::num::{Zero, One, FromStrRadix, FromPrimitive, ToStrRadix};
use std::from_str::FromStr;

pub static _0 : Rational = Ratio { numer: 0, denom: 1};
Expand Down
3 changes: 2 additions & 1 deletion src/libstd/num/int_macros.rs
Expand Up @@ -295,8 +295,9 @@ mod tests {
use int;
use i32;
use num;
use num::CheckedDiv;
use num::Bitwise;
use num::CheckedDiv;
use num::ToStrRadix;

#[test]
fn test_overflows() {
Expand Down
1 change: 1 addition & 0 deletions src/libstd/num/uint_macros.rs
Expand Up @@ -233,6 +233,7 @@ mod tests {
use num;
use num::CheckedDiv;
use num::Bitwise;
use num::ToStrRadix;
use u16;

#[test]
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/prelude.rs
Expand Up @@ -48,7 +48,7 @@ pub use iter::{Iterator, DoubleEndedIterator, RandomAccessIterator, CloneableIte
pub use iter::{OrdIterator, MutableDoubleEndedIterator, ExactSize};
pub use num::{Num, NumCast, CheckedAdd, CheckedSub, CheckedMul};
pub use num::{Signed, Unsigned, Round};
pub use num::{Primitive, Int, Float, ToStrRadix, ToPrimitive, FromPrimitive};
pub use num::{Primitive, Int, Float, ToPrimitive, FromPrimitive};
pub use path::{GenericPath, Path, PosixPath, WindowsPath};
pub use ptr::RawPtr;
pub use io::{Buffer, Writer, Reader, Seek};
Expand Down

0 comments on commit dad52cf

Please sign in to comment.