about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2013-11-21 19:20:48 -0800
committerPatrick Walton <pcwalton@mimiga.net>2013-11-26 08:25:27 -0800
commit38efa17bb8b9c1077e7b8cd9d67da08dec3f0bda (patch)
tree02ee1d054e2e991f9885ecfbf0c8dd6a9700df78 /src/libsyntax
parentf571e46ddb696d15a8cc912309714ca74f23dcc4 (diff)
downloadrust-38efa17bb8b9c1077e7b8cd9d67da08dec3f0bda.tar.gz
rust-38efa17bb8b9c1077e7b8cd9d67da08dec3f0bda.zip
test: Remove all remaining non-procedure uses of `do`.
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/util/parser_testing.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libsyntax/util/parser_testing.rs b/src/libsyntax/util/parser_testing.rs
index 3a2a8b10c96..2d13cdb9bbb 100644
--- a/src/libsyntax/util/parser_testing.rs
+++ b/src/libsyntax/util/parser_testing.rs
@@ -48,9 +48,9 @@ fn with_error_checking_parse<T>(s: @str, f: |&mut Parser| -> T) -> T {
 
 // parse a string, return a crate.
 pub fn string_to_crate (source_str : @str) -> ast::Crate {
-    do with_error_checking_parse(source_str) |p| {
+    with_error_checking_parse(source_str, |p| {
         p.parse_crate_mod()
-    }
+    })
 }
 
 // parse a string, return a crate and the ParseSess
@@ -61,23 +61,23 @@ pub fn string_to_crate_and_sess (source_str : @str) -> (ast::Crate,@mut ParseSes
 
 // parse a string, return an expr
 pub fn string_to_expr (source_str : @str) -> @ast::Expr {
-    do with_error_checking_parse(source_str) |p| {
+    with_error_checking_parse(source_str, |p| {
         p.parse_expr()
-    }
+    })
 }
 
 // parse a string, return an item
 pub fn string_to_item (source_str : @str) -> Option<@ast::item> {
-    do with_error_checking_parse(source_str) |p| {
+    with_error_checking_parse(source_str, |p| {
         p.parse_item(~[])
-    }
+    })
 }
 
 // parse a string, return a stmt
 pub fn string_to_stmt(source_str : @str) -> @ast::Stmt {
-    do with_error_checking_parse(source_str) |p| {
+    with_error_checking_parse(source_str, |p| {
         p.parse_stmt(~[])
-    }
+    })
 }
 
 // parse a string, return a pat. Uses "irrefutable"... which doesn't