Make moves explicit in compiletest
This commit is contained in:
parent
beb7471016
commit
2d7d12b902
@ -145,7 +145,7 @@ fn make_tests(config: config) -> ~[test::TestDesc] {
|
||||
tests.push(make_test(config, file))
|
||||
}
|
||||
}
|
||||
return tests;
|
||||
move tests
|
||||
}
|
||||
|
||||
fn is_test(config: config, testfile: &Path) -> bool {
|
||||
|
@ -60,12 +60,12 @@ fn run(lib_path: ~str,
|
||||
writeclose(pipe_in.out, input);
|
||||
let p = pipes::PortSet();
|
||||
let ch = p.chan();
|
||||
do task::spawn_sched(task::SingleThreaded) {
|
||||
do task::spawn_sched(task::SingleThreaded) |move ch| {
|
||||
let errput = readclose(pipe_err.in);
|
||||
ch.send((2, errput));
|
||||
}
|
||||
let ch = p.chan();
|
||||
do task::spawn_sched(task::SingleThreaded) {
|
||||
do task::spawn_sched(task::SingleThreaded) |move ch| {
|
||||
let output = readclose(pipe_out.in);
|
||||
ch.send((1, output));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user