Skip to content

Commit e61b243

Browse files
committed
compiletest: Get rid of move.
1 parent 5912b14 commit e61b243

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/compiletest/compiletest.rc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ pub fn make_tests(config: config) -> ~[test::TestDescAndFn] {
177177
tests.push(make_test(config, file))
178178
}
179179
}
180-
move tests
180+
tests
181181
}
182182

183183
pub 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
@@ -78,12 +78,12 @@ pub fn run(lib_path: ~str,
7878
writeclose(pipe_in.out, input);
7979
let p = pipes::PortSet();
8080
let ch = p.chan();
81-
do task::spawn_sched(task::SingleThreaded) |move ch| {
81+
do task::spawn_sched(task::SingleThreaded) || {
8282
let errput = readclose(pipe_err.in);
8383
ch.send((2, errput));
8484
}
8585
let ch = p.chan();
86-
do task::spawn_sched(task::SingleThreaded) |move ch| {
86+
do task::spawn_sched(task::SingleThreaded) || {
8787
let output = readclose(pipe_out.in);
8888
ch.send((1, output));
8989
}

0 commit comments

Comments
 (0)