about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-02-28 11:57:33 -0500
committerAlex Crichton <alex@alexcrichton.com>2013-03-04 12:27:01 -0500
commitcb4ab76e4a17e0efc6b506af15fd1df654c043ff (patch)
treef12c8ae2ad1979e973ccf4ef95b1a396a2daa246 /src/libstd
parentbc3bee410a6967942d18cef59a781603a7db86e4 (diff)
downloadrust-cb4ab76e4a17e0efc6b506af15fd1df654c043ff.tar.gz
rust-cb4ab76e4a17e0efc6b506af15fd1df654c043ff.zip
Adding missing imports for tests, and gate off others
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/arena.rs4
-rw-r--r--src/libstd/flatpipes.rs3
-rw-r--r--src/libstd/getopts.rs1
-rw-r--r--src/libstd/net_url.rs1
4 files changed, 3 insertions, 6 deletions
diff --git a/src/libstd/arena.rs b/src/libstd/arena.rs
index b280c8eab6f..c7b50bf8908 100644
--- a/src/libstd/arena.rs
+++ b/src/libstd/arena.rs
@@ -273,7 +273,7 @@ pub impl &Arena {
 
 #[test]
 fn test_arena_destructors() {
-    let arena = arena::Arena();
+    let arena = Arena();
     for uint::range(0, 10) |i| {
         // Arena allocate something with drop glue to make sure it
         // doesn't leak.
@@ -286,7 +286,7 @@ fn test_arena_destructors() {
 
 #[test] #[should_fail] #[ignore(cfg(windows))]
 fn test_arena_destructors_fail() {
-    let arena = arena::Arena();
+    let arena = Arena();
     // Put some stuff in the arena.
     for uint::range(0, 10) |i| {
         // Arena allocate something with drop glue to make sure it
diff --git a/src/libstd/flatpipes.rs b/src/libstd/flatpipes.rs
index 4ae4de1b878..564d34f73d7 100644
--- a/src/libstd/flatpipes.rs
+++ b/src/libstd/flatpipes.rs
@@ -635,8 +635,8 @@ mod test {
     use flatpipes::pod;
     use flatpipes::serial;
     use io_util::BufReader;
-    use net::tcp::TcpSocketBuf;
     use flatpipes::{BytePort, FlatChan, FlatPort};
+    use net::tcp::TcpSocketBuf;
 
     use core::int;
     use core::io::{BytesReader, BytesWriter};
@@ -762,7 +762,6 @@ mod test {
 
         use core::cell::Cell;
         use net::ip;
-        use net::tcp::TcpSocket;
         use net::tcp;
         use uv;
 
diff --git a/src/libstd/getopts.rs b/src/libstd/getopts.rs
index cc7aec1f450..4e851005de5 100644
--- a/src/libstd/getopts.rs
+++ b/src/libstd/getopts.rs
@@ -639,7 +639,6 @@ pub mod groups {
 mod tests {
     use core::prelude::*;
 
-    use opt = getopts;
     use getopts::groups::OptGroup;
     use getopts::*;
 
diff --git a/src/libstd/net_url.rs b/src/libstd/net_url.rs
index 3a990ce9108..18f38e074c7 100644
--- a/src/libstd/net_url.rs
+++ b/src/libstd/net_url.rs
@@ -819,7 +819,6 @@ mod tests {
     use net_url::*;
 
     use core::hashmap::linear::LinearMap;
-    use core::str;
 
     #[test]
     pub fn test_url_parse() {