about summary refs log tree commit diff
path: root/src/rustc/front/test.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-06-19 19:34:01 -0700
committerBrian Anderson <banderson@mozilla.com>2012-06-20 17:27:28 -0700
commit4dcf84e4f4a9a54254fd426609ad9f1ccffae3b9 (patch)
tree487ddbc8454889971d4487744d8143410be097f1 /src/rustc/front/test.rs
parentbcd3942f41252b989029683c33e61b3c92bf92ac (diff)
downloadrust-4dcf84e4f4a9a54254fd426609ad9f1ccffae3b9.tar.gz
rust-4dcf84e4f4a9a54254fd426609ad9f1ccffae3b9.zip
Remove bind. Issue #2189
Diffstat (limited to 'src/rustc/front/test.rs')
-rw-r--r--src/rustc/front/test.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rustc/front/test.rs b/src/rustc/front/test.rs
index 44b9356896b..473d25841b8 100644
--- a/src/rustc/front/test.rs
+++ b/src/rustc/front/test.rs
@@ -44,9 +44,9 @@ fn generate_test_harness(sess: session::session,
           testfns: dvec()};
 
     let precursor =
-        @{fold_crate: fold::wrap(bind fold_crate(cx, _, _)),
-          fold_item: bind fold_item(cx, _, _),
-          fold_mod: bind fold_mod(cx, _, _) with *fold::default_ast_fold()};
+        @{fold_crate: fold::wrap({|a,b|fold_crate(cx, a, b)}),
+          fold_item: {|a,b|fold_item(cx, a, b)},
+          fold_mod: {|a,b|fold_mod(cx, a, b)} with *fold::default_ast_fold()};
 
     let fold = fold::make_fold(precursor);
     let res = @fold.fold_crate(*crate);