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

@@ -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 {