compiletest: Get rid of move
.
This commit is contained in:
parent
5912b1448c
commit
e61b243edf
@ -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 {
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user