compiletest: Get rid of move.
This commit is contained in:
@@ -177,7 +177,7 @@ pub fn make_tests(config: config) -> ~[test::TestDescAndFn] {
|
|||||||
tests.push(make_test(config, file))
|
tests.push(make_test(config, file))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
move tests
|
tests
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn is_test(config: config, testfile: &Path) -> bool {
|
pub fn is_test(config: config, testfile: &Path) -> bool {
|
||||||
|
|||||||
@@ -78,12 +78,12 @@ pub fn run(lib_path: ~str,
|
|||||||
writeclose(pipe_in.out, input);
|
writeclose(pipe_in.out, input);
|
||||||
let p = pipes::PortSet();
|
let p = pipes::PortSet();
|
||||||
let ch = p.chan();
|
let ch = p.chan();
|
||||||
do task::spawn_sched(task::SingleThreaded) |move ch| {
|
do task::spawn_sched(task::SingleThreaded) || {
|
||||||
let errput = readclose(pipe_err.in);
|
let errput = readclose(pipe_err.in);
|
||||||
ch.send((2, errput));
|
ch.send((2, errput));
|
||||||
}
|
}
|
||||||
let ch = p.chan();
|
let ch = p.chan();
|
||||||
do task::spawn_sched(task::SingleThreaded) |move ch| {
|
do task::spawn_sched(task::SingleThreaded) || {
|
||||||
let output = readclose(pipe_out.in);
|
let output = readclose(pipe_out.in);
|
||||||
ch.send((1, output));
|
ch.send((1, output));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user