Fix warnings in libstd and librusti tests

This commit is contained in:
blake2-ppc
2013-07-17 21:32:49 +02:00
parent e93dd34cd3
commit ff9b75f26d
7 changed files with 8 additions and 10 deletions

View File

@@ -546,7 +546,6 @@ pub fn main() {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use std::io; use std::io;
use std::iterator::IteratorUtil;
use program::Program; use program::Program;
use super::*; use super::*;

View File

@@ -863,7 +863,7 @@ pub type SetAlgebraIter<'self, T> =
#[cfg(test)] #[cfg(test)]
mod test_map { mod test_map {
use container::{Container, Map, Set}; use container::{Container, Map};
use option::{None, Some}; use option::{None, Some};
use super::*; use super::*;
use uint; use uint;
@@ -1104,7 +1104,7 @@ mod test_map {
#[cfg(test)] #[cfg(test)]
mod test_set { mod test_set {
use super::*; use super::*;
use container::{Container, Map, Set}; use container::Container;
use vec::ImmutableEqVector; use vec::ImmutableEqVector;
use uint; use uint;

View File

@@ -1742,7 +1742,6 @@ mod tests {
use rand; use rand;
use run; use run;
use str::StrSlice; use str::StrSlice;
use vec;
use vec::CopyableVector; use vec::CopyableVector;
use libc::consts::os::posix88::{S_IRUSR, S_IWUSR, S_IXUSR}; use libc::consts::os::posix88::{S_IRUSR, S_IWUSR, S_IXUSR};

View File

@@ -16,8 +16,9 @@ use option::{Option, Some, None};
use sys; use sys;
use unstable::intrinsics; use unstable::intrinsics;
use util::swap; use util::swap;
use ops::{Add,Sub};
use num::Int; #[cfg(not(test))] use ops::{Add,Sub};
#[cfg(not(test))] use num::Int;
#[cfg(not(test))] use cmp::{Eq, Ord}; #[cfg(not(test))] use cmp::{Eq, Ord};
use uint; use uint;
@@ -592,7 +593,7 @@ pub mod ptr_tests {
} }
let mut xs_mut = xs.clone(); let mut xs_mut = xs.clone();
let mut m_start = to_mut_ptr(xs_mut); let m_start = to_mut_ptr(xs_mut);
let mut m_ptr = m_start + 9u32; let mut m_ptr = m_start + 9u32;
while m_ptr >= m_start { while m_ptr >= m_start {

View File

@@ -1078,7 +1078,6 @@ mod tests {
// This is to verify that the implementation of the ISAAC rng is // This is to verify that the implementation of the ISAAC rng is
// correct (i.e. matches the output of the upstream implementation, // correct (i.e. matches the output of the upstream implementation,
// which is in the runtime) // which is in the runtime)
use vec;
use libc::size_t; use libc::size_t;
#[abi = "cdecl"] #[abi = "cdecl"]

View File

@@ -181,7 +181,7 @@ impl<A:ToStr> ToStr for @[A] {
mod tests { mod tests {
use hashmap::HashMap; use hashmap::HashMap;
use hashmap::HashSet; use hashmap::HashSet;
use container::{Set, Map, MutableSet, MutableMap}; use container::{MutableSet, MutableMap};
#[test] #[test]
fn test_simple_types() { fn test_simple_types() {
assert_eq!(1i.to_str(), ~"1"); assert_eq!(1i.to_str(), ~"1");

View File

@@ -16,7 +16,7 @@ use cast::transmute;
use cast; use cast;
use clone::Clone; use clone::Clone;
use container::{Container, Mutable}; use container::{Container, Mutable};
use cmp::{Eq, TotalEq, TotalOrd, Ordering, Less, Equal, Greater}; use cmp::{Eq, TotalOrd, Ordering, Less, Equal, Greater};
use cmp; use cmp;
use iterator::*; use iterator::*;
use libc::c_void; use libc::c_void;