about summary refs log tree commit diff
path: root/src/libstd/path
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-01-06 22:33:37 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-01-07 23:51:38 -0800
commitbcb1c381a38f8f36a71323bbf12d55afc8627d90 (patch)
tree845fbeceb532354888cb7b3cad9c184e249afc9a /src/libstd/path
parentc4d36b85a0181575319168ab080989c71b935b20 (diff)
downloadrust-bcb1c381a38f8f36a71323bbf12d55afc8627d90.tar.gz
rust-bcb1c381a38f8f36a71323bbf12d55afc8627d90.zip
stdtest: Fix all leaked trait imports
Diffstat (limited to 'src/libstd/path')
-rw-r--r--src/libstd/path/mod.rs1
-rw-r--r--src/libstd/path/posix.rs5
-rw-r--r--src/libstd/path/windows.rs4
3 files changed, 4 insertions, 6 deletions
diff --git a/src/libstd/path/mod.rs b/src/libstd/path/mod.rs
index 6488595ea4f..354cc10f022 100644
--- a/src/libstd/path/mod.rs
+++ b/src/libstd/path/mod.rs
@@ -687,6 +687,7 @@ fn from_utf8_with_replacement(mut v: &[u8]) -> ~str {
 }
 #[cfg(test)]
 mod tests {
+    use prelude::*;
     use super::{GenericPath, PosixPath, WindowsPath};
     use c_str::ToCStr;
 
diff --git a/src/libstd/path/posix.rs b/src/libstd/path/posix.rs
index e0e3e8c790c..7b94de6c094 100644
--- a/src/libstd/path/posix.rs
+++ b/src/libstd/path/posix.rs
@@ -442,11 +442,9 @@ static dot_dot_static: &'static [u8] = bytes!("..");
 
 #[cfg(test)]
 mod tests {
+    use prelude::*;
     use super::*;
-    use option::{Option, Some, None};
-    use iter::Iterator;
     use str;
-    use vec::Vector;
 
     macro_rules! t(
         (s: $path:expr, $exp:expr) => (
@@ -1325,6 +1323,7 @@ mod tests {
 mod bench {
     use extra::test::BenchHarness;
     use super::*;
+    use prelude::*;
 
     #[bench]
     fn join_home_dir(bh: &mut BenchHarness) {
diff --git a/src/libstd/path/windows.rs b/src/libstd/path/windows.rs
index be83a519807..09b00be7e9d 100644
--- a/src/libstd/path/windows.rs
+++ b/src/libstd/path/windows.rs
@@ -1053,11 +1053,9 @@ fn prefix_len(p: Option<PathPrefix>) -> uint {
 
 #[cfg(test)]
 mod tests {
+    use prelude::*;
     use super::*;
     use super::parse_prefix;
-    use option::{Some,None};
-    use iter::Iterator;
-    use vec::Vector;
 
     macro_rules! t(
         (s: $path:expr, $exp:expr) => (