Skip to content

Commit 0547fb9

Browse files
committed
Fixup the rest of the tests in the compiler
1 parent f47e4b2 commit 0547fb9

File tree

7 files changed

+7
-5
lines changed

7 files changed

+7
-5
lines changed

src/librustc/driver/driver.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1131,6 +1131,7 @@ mod test {
11311131

11321132
use extra::getopts::groups::getopts;
11331133
use syntax::attr;
1134+
use syntax::attr::AttrMetaMethods;
11341135
use syntax::diagnostic;
11351136

11361137
// When the user supplies --test we should implicitly supply --cfg test

src/librustc/util/sha2.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ static H256: [u32, ..8] = [
522522

523523
#[cfg(test)]
524524
mod tests {
525-
use super::{Digest, Sha256};
525+
use super::{Digest, Sha256, FixedBuffer};
526526
use std::vec;
527527
use std::rand::isaac::IsaacRng;
528528
use std::rand::Rng;
@@ -633,7 +633,7 @@ mod tests {
633633
#[cfg(test)]
634634
mod bench {
635635
use extra::test::BenchHarness;
636-
use super::Sha256;
636+
use super::{Sha256, FixedBuffer, Digest};
637637

638638
#[bench]
639639
pub fn sha256_10(bh: &mut BenchHarness) {

src/librustpkg/tests.rs

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
// rustpkg unit tests
1212

13+
use CtxMethods;
1314
use context::{BuildContext, Context, RustcFlags};
1415
use std::{os, run, str, task};
1516
use std::io;

src/librustuv/async.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ impl Drop for AsyncWatcher {
125125

126126
#[cfg(test)]
127127
mod test_remote {
128-
use std::rt::rtio::Callback;
128+
use std::rt::rtio::{Callback, RemoteCallback};
129129
use std::rt::thread::Thread;
130130

131131
use super::AsyncWatcher;

src/libstd/rt/args.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ mod imp {
140140

141141
#[cfg(test)]
142142
mod tests {
143-
use option::{Some, None};
143+
use prelude::*;
144144
use super::*;
145145
use unstable::finally::Finally;
146146

src/libstd/rt/logging.rs

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
// except according to those terms.
1010

1111
use container::Container;
12-
use fmt;
1312
use from_str::from_str;
1413
use iter::Iterator;
1514
use libc::exit;

src/libsyntax/ext/expand.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1109,6 +1109,7 @@ mod test {
11091109
use codemap;
11101110
use codemap::Spanned;
11111111
use fold;
1112+
use fold::*;
11121113
use parse;
11131114
use parse::token::{fresh_mark, gensym, intern, ident_to_str};
11141115
use parse::token;

0 commit comments

Comments
 (0)