Skip to content

Commit

Permalink
Remove std::from_str::FromStr 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 3cc9531 commit 84a8893
Show file tree
Hide file tree
Showing 21 changed files with 24 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/libextra/url.rs
Expand Up @@ -16,6 +16,7 @@ use std::cmp::Eq;
use std::fmt;
use std::hash::{Hash, sip};
use std::io::BufReader;
use std::from_str::FromStr;
use std::uint;

use collections::HashMap;
Expand Down
2 changes: 2 additions & 0 deletions src/libnum/bigint.rs
Expand Up @@ -20,6 +20,7 @@ use Integer;

use std::cmp;
use std::fmt;
use std::from_str::FromStr;
use std::num::{Bitwise, ToPrimitive, FromPrimitive};
use std::num::{Zero, One, ToStrRadix, FromStrRadix};
use std::rand::Rng;
Expand Down Expand Up @@ -1397,6 +1398,7 @@ mod biguint_tests {
use super::{Plus, BigInt, RandBigInt, ToBigInt};
use std::cmp::{Less, Equal, Greater};
use std::from_str::FromStr;
use std::i64;
use std::num::{Zero, One, FromStrRadix};
use std::num::{ToPrimitive, FromPrimitive};
Expand Down
1 change: 1 addition & 0 deletions src/libstd/bool.rs
Expand Up @@ -295,6 +295,7 @@ impl Default for bool {
mod tests {
use prelude::*;
use super::all_values;
use from_str::FromStr;

#[test]
fn test_bool() {
Expand Down
1 change: 1 addition & 0 deletions src/libstd/io/net/ip.rs
Expand Up @@ -340,6 +340,7 @@ impl FromStr for SocketAddr {
mod test {
use prelude::*;
use super::*;
use from_str::FromStr;

#[test]
fn test_from_str_ipv4() {
Expand Down
1 change: 1 addition & 0 deletions src/libstd/num/f32.rs
Expand Up @@ -15,6 +15,7 @@ use prelude::*;

use cmath;
use default::Default;
use from_str::FromStr;
use libc::{c_float, c_int};
use num::{FPCategory, FPNaN, FPInfinite , FPZero, FPSubnormal, FPNormal};
use num::{Zero, One, Bounded, strconv};
Expand Down
1 change: 1 addition & 0 deletions src/libstd/num/f64.rs
Expand Up @@ -16,6 +16,7 @@ use prelude::*;

use cmath;
use default::Default;
use from_str::FromStr;
use libc::{c_double, c_int};
use num::{FPCategory, FPNaN, FPInfinite , FPZero, FPSubnormal, FPNormal};
use num::{Zero, One, Bounded, strconv};
Expand Down
1 change: 1 addition & 0 deletions src/libstd/num/i16.rs
Expand Up @@ -15,6 +15,7 @@
use prelude::*;

use default::Default;
use from_str::FromStr;
use num::{Bitwise, Bounded, CheckedAdd, CheckedSub, CheckedMul};
use num::{CheckedDiv, Zero, One, strconv};
use num::{ToStrRadix, FromStrRadix};
Expand Down
1 change: 1 addition & 0 deletions src/libstd/num/i32.rs
Expand Up @@ -15,6 +15,7 @@
use prelude::*;

use default::Default;
use from_str::FromStr;
use num::{Bitwise, Bounded, CheckedAdd, CheckedSub, CheckedMul};
use num::{CheckedDiv, Zero, One, strconv};
use num::{ToStrRadix, FromStrRadix};
Expand Down
1 change: 1 addition & 0 deletions src/libstd/num/i64.rs
Expand Up @@ -15,6 +15,7 @@
use prelude::*;

use default::Default;
use from_str::FromStr;
#[cfg(target_word_size = "64")]
use num::CheckedMul;
use num::{Bitwise, Bounded, CheckedAdd, CheckedSub};
Expand Down
1 change: 1 addition & 0 deletions src/libstd/num/i8.rs
Expand Up @@ -15,6 +15,7 @@
use prelude::*;

use default::Default;
use from_str::FromStr;
use num::{Bitwise, Bounded, CheckedAdd, CheckedSub, CheckedMul};
use num::{CheckedDiv, Zero, One, strconv};
use num::{ToStrRadix, FromStrRadix};
Expand Down
1 change: 1 addition & 0 deletions src/libstd/num/int.rs
Expand Up @@ -15,6 +15,7 @@
use prelude::*;

use default::Default;
use from_str::FromStr;
use num::{Bitwise, Bounded, CheckedAdd, CheckedSub, CheckedMul};
use num::{CheckedDiv, Zero, One, strconv};
use num::{ToStrRadix, FromStrRadix};
Expand Down
1 change: 1 addition & 0 deletions src/libstd/num/u16.rs
Expand Up @@ -15,6 +15,7 @@
use prelude::*;

use default::Default;
use from_str::FromStr;
use num::{Bitwise, Bounded};
use num::{CheckedAdd, CheckedSub, CheckedMul};
use num::{CheckedDiv, Zero, One, strconv};
Expand Down
1 change: 1 addition & 0 deletions src/libstd/num/u32.rs
Expand Up @@ -15,6 +15,7 @@
use prelude::*;

use default::Default;
use from_str::FromStr;
use num::{Bitwise, Bounded};
use num::{CheckedAdd, CheckedSub, CheckedMul};
use num::{CheckedDiv, Zero, One, strconv};
Expand Down
1 change: 1 addition & 0 deletions src/libstd/num/u64.rs
Expand Up @@ -15,6 +15,7 @@
use prelude::*;

use default::Default;
use from_str::FromStr;
use num::{Bitwise, Bounded};
#[cfg(target_word_size = "64")]
use num::CheckedMul;
Expand Down
1 change: 1 addition & 0 deletions src/libstd/num/u8.rs
Expand Up @@ -15,6 +15,7 @@
use prelude::*;

use default::Default;
use from_str::FromStr;
use num::{Bitwise, Bounded};
use num::{CheckedAdd, CheckedSub, CheckedMul};
use num::{CheckedDiv, Zero, One, strconv};
Expand Down
1 change: 1 addition & 0 deletions src/libstd/num/uint.rs
Expand Up @@ -15,6 +15,7 @@
use prelude::*;

use default::Default;
use from_str::FromStr;
use num::{Bitwise, Bounded};
use num::{CheckedAdd, CheckedSub, CheckedMul};
use num::{CheckedDiv, Zero, One, strconv};
Expand Down
1 change: 0 additions & 1 deletion src/libstd/prelude.rs
Expand Up @@ -43,7 +43,6 @@ pub use char::Char;
pub use clone::{Clone, DeepClone};
pub use cmp::{Eq, Ord, TotalEq, TotalOrd, Ordering, Less, Equal, Greater, Equiv};
pub use container::{Container, Mutable, Map, MutableMap, Set, MutableSet};
pub use from_str::FromStr;
pub use iter::{FromIterator, Extendable};
pub use iter::{Iterator, DoubleEndedIterator, RandomAccessIterator, CloneableIterator};
pub use iter::{OrdIterator, MutableDoubleEndedIterator, ExactSize};
Expand Down
3 changes: 3 additions & 0 deletions src/libsyntax/crateid.rs
Expand Up @@ -17,6 +17,9 @@ use std::fmt;
/// `1.0`. If no crate name is given after the hash, the name is inferred to
/// be the last component of the path. If no version is given, it is inferred
/// to be `0.0`.

use std::from_str::FromStr;

#[deriving(Clone, Eq)]
pub struct CrateId {
/// A path which represents the codes origin. By convention this is the
Expand Down
1 change: 1 addition & 0 deletions src/libtest/lib.rs
Expand Up @@ -41,6 +41,7 @@ use term::color::{Color, RED, YELLOW, GREEN, CYAN};
use std::cmp;
use std::f64;
use std::fmt;
use std::from_str::FromStr;
use std::io::stdio::StdWriter;
use std::io::{File, PortReader, ChanWriter};
use std::io;
Expand Down
1 change: 1 addition & 0 deletions src/libuuid/lib.rs
Expand Up @@ -68,6 +68,7 @@ use std::cast::{transmute,transmute_copy};
use std::char::Char;
use std::default::Default;
use std::fmt;
use std::from_str::FromStr;
use std::hash::{Hash, sip};
use std::num::FromStrRadix;
use std::rand::Rng;
Expand Down
2 changes: 2 additions & 0 deletions src/test/bench/shootout-threadring.rs
Expand Up @@ -55,6 +55,8 @@ fn roundtrip(id: int, n_tasks: int, p: &Port<int>, ch: &Chan<int>) {
}

fn main() {
use std::from_str::FromStr;

let args = if os::getenv("RUST_BENCH").is_some() {
~[~"", ~"2000000", ~"503"]
}
Expand Down

0 comments on commit 84a8893

Please sign in to comment.