about summary refs log tree commit diff
path: root/src/libextra/workcache.rs
diff options
context:
space:
mode:
authorScott Lawrence <bytbox@gmail.com>2014-01-26 23:13:24 -0500
committerScott Lawrence <bytbox@gmail.com>2014-01-29 09:15:41 -0500
commitbadc580416febb2570064df955dec1cdb1a471d0 (patch)
treead897bf32f573df9c276fe6010bba3b48872fd69 /src/libextra/workcache.rs
parentd904179066b407c32ca247938560fcf8766e5ff3 (diff)
downloadrust-badc580416febb2570064df955dec1cdb1a471d0.tar.gz
rust-badc580416febb2570064df955dec1cdb1a471d0.zip
Removing do keyword from libextra
Diffstat (limited to 'src/libextra/workcache.rs')
-rw-r--r--src/libextra/workcache.rs8
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);