1
Fork 0

Fixup the rest of the tests in the compiler

This commit is contained in:
Alex Crichton 2014-01-07 00:57:12 -08:00
parent f47e4b2874
commit 0547fb9cad
7 changed files with 7 additions and 5 deletions

View file

@ -1131,6 +1131,7 @@ mod test {
use extra::getopts::groups::getopts;
use syntax::attr;
use syntax::attr::AttrMetaMethods;
use syntax::diagnostic;
// When the user supplies --test we should implicitly supply --cfg test

View file

@ -522,7 +522,7 @@ static H256: [u32, ..8] = [
#[cfg(test)]
mod tests {
use super::{Digest, Sha256};
use super::{Digest, Sha256, FixedBuffer};
use std::vec;
use std::rand::isaac::IsaacRng;
use std::rand::Rng;
@ -633,7 +633,7 @@ mod tests {
#[cfg(test)]
mod bench {
use extra::test::BenchHarness;
use super::Sha256;
use super::{Sha256, FixedBuffer, Digest};
#[bench]
pub fn sha256_10(bh: &mut BenchHarness) {

View file

@ -10,6 +10,7 @@
// rustpkg unit tests
use CtxMethods;
use context::{BuildContext, Context, RustcFlags};
use std::{os, run, str, task};
use std::io;

View file

@ -125,7 +125,7 @@ impl Drop for AsyncWatcher {
#[cfg(test)]
mod test_remote {
use std::rt::rtio::Callback;
use std::rt::rtio::{Callback, RemoteCallback};
use std::rt::thread::Thread;
use super::AsyncWatcher;

View file

@ -140,7 +140,7 @@ mod imp {
#[cfg(test)]
mod tests {
use option::{Some, None};
use prelude::*;
use super::*;
use unstable::finally::Finally;

View file

@ -9,7 +9,6 @@
// except according to those terms.
use container::Container;
use fmt;
use from_str::from_str;
use iter::Iterator;
use libc::exit;

View file

@ -1109,6 +1109,7 @@ mod test {
use codemap;
use codemap::Spanned;
use fold;
use fold::*;
use parse;
use parse::token::{fresh_mark, gensym, intern, ident_to_str};
use parse::token;