From 2d7d12b902a9f6237994f74888878220cb2ffbed Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Tue, 18 Sep 2012 22:35:00 -0700 Subject: [PATCH] Make moves explicit in compiletest --- src/compiletest/compiletest.rs | 2 +- src/compiletest/procsrv.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compiletest/compiletest.rs b/src/compiletest/compiletest.rs index 55fa6740268..e147ddc3ed7 100644 --- a/src/compiletest/compiletest.rs +++ b/src/compiletest/compiletest.rs @@ -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 { diff --git a/src/compiletest/procsrv.rs b/src/compiletest/procsrv.rs index b03c3bbf42f..38102e9af35 100644 --- a/src/compiletest/procsrv.rs +++ b/src/compiletest/procsrv.rs @@ -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)); }