diff options
| author | bors <bors@rust-lang.org> | 2015-11-13 10:28:25 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-11-13 10:28:25 +0000 |
| commit | b12a3582b113c0f9c217f6311ec0d47fd0f79016 (patch) | |
| tree | 8fc29c0a8f3bc0ccdd0b5d438c2ecc39068ad396 /src/libsyntax/util | |
| parent | 82251354ff30e9a6f9f98d8dbef9fe54df400285 (diff) | |
| parent | 69210a96358dcd85bf6d08f21c8e2df5b0975d3b (diff) | |
| download | rust-b12a3582b113c0f9c217f6311ec0d47fd0f79016.tar.gz rust-b12a3582b113c0f9c217f6311ec0d47fd0f79016.zip | |
Auto merge of #29761 - eefriedman:rename-nopanic, r=sanxiyn
Just `sed s/_nopanic//g`. Hopefully makes libsyntax a bit more readable.
Diffstat (limited to 'src/libsyntax/util')
| -rw-r--r-- | src/libsyntax/util/parser_testing.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/util/parser_testing.rs b/src/libsyntax/util/parser_testing.rs index 57138bf26ee..a462dbeb6e4 100644 --- a/src/libsyntax/util/parser_testing.rs +++ b/src/libsyntax/util/parser_testing.rs @@ -50,21 +50,21 @@ pub fn string_to_crate (source_str : String) -> ast::Crate { /// Parse a string, return an expr pub fn string_to_expr (source_str : String) -> P<ast::Expr> { with_error_checking_parse(source_str, |p| { - p.parse_expr_nopanic() + p.parse_expr() }) } /// Parse a string, return an item pub fn string_to_item (source_str : String) -> Option<P<ast::Item>> { with_error_checking_parse(source_str, |p| { - p.parse_item_nopanic() + p.parse_item() }) } /// Parse a string, return a stmt pub fn string_to_stmt(source_str : String) -> Option<P<ast::Stmt>> { with_error_checking_parse(source_str, |p| { - p.parse_stmt_nopanic() + p.parse_stmt() }) } @@ -72,7 +72,7 @@ pub fn string_to_stmt(source_str : String) -> Option<P<ast::Stmt>> { /// (currently) affect parsing. pub fn string_to_pat(source_str: String) -> P<ast::Pat> { with_error_checking_parse(source_str, |p| { - p.parse_pat_nopanic() + p.parse_pat() }) } |
