diff options
| author | bors <bors@rust-lang.org> | 2013-09-03 04:36:03 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-09-03 04:36:03 -0700 |
| commit | d252d810fc2a52c148be409b5b3628e1173a6390 (patch) | |
| tree | 2f16c081b9b95e6d50dda94e3ba6c8b96627a500 /src/libsyntax/util/parser_testing.rs | |
| parent | 8183c74ec1f4747986eb177d7d93bee4c622b0b7 (diff) | |
| parent | 74190853373c7963d933e2fb5c2ac2f761fdbc02 (diff) | |
| download | rust-d252d810fc2a52c148be409b5b3628e1173a6390.tar.gz rust-d252d810fc2a52c148be409b5b3628e1173a6390.zip | |
auto merge of #8939 : Kimundi/rust/master, r=huonw
Diffstat (limited to 'src/libsyntax/util/parser_testing.rs')
| -rw-r--r-- | src/libsyntax/util/parser_testing.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/util/parser_testing.rs b/src/libsyntax/util/parser_testing.rs index a421d44e2e3..ca1e53f7fcd 100644 --- a/src/libsyntax/util/parser_testing.rs +++ b/src/libsyntax/util/parser_testing.rs @@ -47,7 +47,7 @@ pub fn string_to_crate (source_str : @str) -> @ast::Crate { } // parse a string, return an expr -pub fn string_to_expr (source_str : @str) -> @ast::expr { +pub fn string_to_expr (source_str : @str) -> @ast::Expr { do with_error_checking_parse(source_str) |p| { p.parse_expr() } @@ -69,7 +69,7 @@ pub fn string_to_item_and_sess (source_str : @str) -> (Option<@ast::item>,@mut P } // parse a string, return a stmt -pub fn string_to_stmt(source_str : @str) -> @ast::stmt { +pub fn string_to_stmt(source_str : @str) -> @ast::Stmt { do with_error_checking_parse(source_str) |p| { p.parse_stmt(~[]) } @@ -77,7 +77,7 @@ pub fn string_to_stmt(source_str : @str) -> @ast::stmt { // parse a string, return a pat. Uses "irrefutable"... which doesn't // (currently) affect parsing. -pub fn string_to_pat(source_str : @str) -> @ast::pat { +pub fn string_to_pat(source_str : @str) -> @ast::Pat { string_to_parser(source_str).parse_pat() } |
