compiletest: Get rid of move.

This commit is contained in:
Luqman Aden 2013-02-15 01:11:38 -08:00
parent 5912b1448c
commit e61b243edf
2 changed files with 3 additions and 3 deletions

View File

@ -177,7 +177,7 @@ pub fn make_tests(config: config) -> ~[test::TestDescAndFn] {
tests.push(make_test(config, file))
}
}
move tests
tests
}
pub fn is_test(config: config, testfile: &Path) -> bool {

View File

@ -78,12 +78,12 @@ pub fn run(lib_path: ~str,
writeclose(pipe_in.out, input);
let p = pipes::PortSet();
let ch = p.chan();
do task::spawn_sched(task::SingleThreaded) |move ch| {
do task::spawn_sched(task::SingleThreaded) || {
let errput = readclose(pipe_err.in);
ch.send((2, errput));
}
let ch = p.chan();
do task::spawn_sched(task::SingleThreaded) |move ch| {
do task::spawn_sched(task::SingleThreaded) || {
let output = readclose(pipe_out.in);
ch.send((1, output));
}