Skip to content

Commit 2d7d12b

Browse files
committed
Make moves explicit in compiletest
1 parent beb7471 commit 2d7d12b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/compiletest/compiletest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ fn make_tests(config: config) -> ~[test::TestDesc] {
145145
tests.push(make_test(config, file))
146146
}
147147
}
148-
return tests;
148+
move tests
149149
}
150150

151151
fn is_test(config: config, testfile: &Path) -> bool {

src/compiletest/procsrv.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ fn run(lib_path: ~str,
6060
writeclose(pipe_in.out, input);
6161
let p = pipes::PortSet();
6262
let ch = p.chan();
63-
do task::spawn_sched(task::SingleThreaded) {
63+
do task::spawn_sched(task::SingleThreaded) |move ch| {
6464
let errput = readclose(pipe_err.in);
6565
ch.send((2, errput));
6666
}
6767
let ch = p.chan();
68-
do task::spawn_sched(task::SingleThreaded) {
68+
do task::spawn_sched(task::SingleThreaded) |move ch| {
6969
let output = readclose(pipe_out.in);
7070
ch.send((1, output));
7171
}

0 commit comments

Comments
 (0)