about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-06-14 19:02:30 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-06-14 19:09:02 -0700
commit39d9c30a1549ca0b69325bb7e4d9c993d3bc9a71 (patch)
tree673b3ed3c75c4e40e4d753d19c026de43af69e52 /src/libcore
parentbc507c4ef5a5e4da95e95c080239dbe10ffcd376 (diff)
Remove code from parser that was awaiting snapshot
Remove old parser functions as well as support for old-style capture
clauses. Remove remaining old-style capture clauses.
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/task.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/task.rs b/src/libcore/task.rs
index a4d6f63dbd6..5f31b5090f0 100644
--- a/src/libcore/task.rs
+++ b/src/libcore/task.rs
@@ -879,7 +879,7 @@ fn test_avoid_copying_the_body_spawn() {
 #[test]
 fn test_avoid_copying_the_body_spawn_listener() {
     avoid_copying_the_body {|f|
-        spawn_listener(fn~[move f](_po: comm::port<int>) {
+        spawn_listener(fn~(move f, _po: comm::port<int>) {
             f();
         });
     }
@@ -899,7 +899,7 @@ fn test_avoid_copying_the_body_run() {
 fn test_avoid_copying_the_body_run_listener() {
     avoid_copying_the_body {|f|
         let buildr = builder();
-        run_listener(buildr, fn~[move f](_po: comm::port<int>) {
+        run_listener(buildr, fn~(move f, _po: comm::port<int>) {
             f();
         });
     }