From cb4ab76e4a17e0efc6b506af15fd1df654c043ff Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 28 Feb 2013 11:57:33 -0500 Subject: Adding missing imports for tests, and gate off others --- src/libstd/arena.rs | 4 ++-- src/libstd/flatpipes.rs | 3 +-- src/libstd/getopts.rs | 1 - src/libstd/net_url.rs | 1 - 4 files changed, 3 insertions(+), 6 deletions(-) (limited to 'src/libstd') 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() { -- cgit 1.4.1-3-g733a5