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)]
mod tests {
use std::io;
use std::iterator::IteratorUtil;
use program::Program;
use super::*;

View File

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

View File

@@ -1742,7 +1742,6 @@ mod tests {
use rand;
use run;
use str::StrSlice;
use vec;
use vec::CopyableVector;
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 unstable::intrinsics;
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};
use uint;
@@ -592,7 +593,7 @@ pub mod ptr_tests {
}
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;
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
// correct (i.e. matches the output of the upstream implementation,
// which is in the runtime)
use vec;
use libc::size_t;
#[abi = "cdecl"]

View File

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

View File

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