diff options
| author | bors <bors@rust-lang.org> | 2014-01-29 08:21:38 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-01-29 08:21:38 -0800 |
| commit | e1580f6d09f0cd990c3eed55b1d6181af3258791 (patch) | |
| tree | 034b8287f1f017f7956d004be95184f53140bd5d /src/libextra/workcache.rs | |
| parent | 87004db1137c9126ecc8834b1c881c2ef09ee8ef (diff) | |
| parent | a6867e259b98904d0144904b4ffbba61f7c8f6f9 (diff) | |
auto merge of #11868 : bytbox/rust/remove-do, r=alexcrichton
Fixes #10815.
Diffstat (limited to 'src/libextra/workcache.rs')
| -rw-r--r-- | src/libextra/workcache.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libextra/workcache.rs b/src/libextra/workcache.rs index d8a97ae2077..70bbe02d32f 100644 --- a/src/libextra/workcache.rs +++ b/src/libextra/workcache.rs @@ -414,14 +414,14 @@ impl<'a> Prep<'a> { let blk = bo.take_unwrap(); // FIXME: What happens if the task fails? - do spawn { + spawn(proc() { let mut exe = Exec { discovered_inputs: WorkMap::new(), discovered_outputs: WorkMap::new(), }; let v = blk(&mut exe); chan.send((exe, v)); - } + }); Work::from_task(self, port) } } @@ -495,7 +495,7 @@ fn test() { // FIXME (#9639): This needs to handle non-utf8 paths prep.declare_input("file", pth.as_str().unwrap(), file_content); - do prep.exec |_exe| { + prep.exec(proc(_exe) { let out = make_path(~"foo.o"); // FIXME (#9639): This needs to handle non-utf8 paths run::process_status("gcc", [pth.as_str().unwrap().to_owned(), @@ -507,7 +507,7 @@ fn test() { // FIXME (#9639): This needs to handle non-utf8 paths out.as_str().unwrap().to_owned() - } + }) }); println!("{}", s); |
