Fix fallout of removing import_shadowing in tests.
This commit is contained in:
parent
f95e0c21aa
commit
b45d30da34
33 changed files with 97 additions and 116 deletions
|
|
@ -409,7 +409,6 @@ mod test {
|
|||
use super::super::{IoResult, EndOfFile};
|
||||
use super::super::mem::MemReader;
|
||||
use self::test::Bencher;
|
||||
use str::StrPrelude;
|
||||
|
||||
/// A type, free to create, primarily intended for benchmarking creation of
|
||||
/// wrappers that, just for construction, don't need a Reader/Writer that
|
||||
|
|
|
|||
|
|
@ -823,10 +823,6 @@ mod test {
|
|||
use io;
|
||||
use str;
|
||||
use io::fs::*;
|
||||
use path::Path;
|
||||
use io;
|
||||
use ops::Drop;
|
||||
use str::StrPrelude;
|
||||
|
||||
macro_rules! check { ($e:expr) => (
|
||||
match $e {
|
||||
|
|
|
|||
|
|
@ -398,13 +398,12 @@ impl<'a> Buffer for BufReader<'a> {
|
|||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
extern crate test;
|
||||
extern crate "test" as test_crate;
|
||||
use prelude::*;
|
||||
use super::*;
|
||||
use io::*;
|
||||
use io;
|
||||
use self::test::Bencher;
|
||||
use str::StrPrelude;
|
||||
use self::test_crate::Bencher;
|
||||
|
||||
#[test]
|
||||
fn test_vec_writer() {
|
||||
|
|
|
|||
|
|
@ -225,11 +225,11 @@ fn in_ms_u64(d: Duration) -> u64 {
|
|||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::*;
|
||||
use time::Duration;
|
||||
use task::spawn;
|
||||
use prelude::*;
|
||||
|
||||
use super::Timer;
|
||||
use time::Duration;
|
||||
|
||||
#[test]
|
||||
fn test_io_timer_sleep_simple() {
|
||||
let mut timer = Timer::new().unwrap();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue