diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2015-11-10 16:08:26 -0800 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2015-11-10 16:10:31 -0800 |
| commit | 69210a96358dcd85bf6d08f21c8e2df5b0975d3b (patch) | |
| tree | 97fe2d0eed21712a599b1799bb56ced0da285a28 /src/libsyntax/util/parser_testing.rs | |
| parent | 3519effc6e85b56360218a5a037346d56365376f (diff) | |
| download | rust-69210a96358dcd85bf6d08f21c8e2df5b0975d3b.tar.gz rust-69210a96358dcd85bf6d08f21c8e2df5b0975d3b.zip | |
Rename _nopanic methods to remove the suffix.
Just `sed s/_nopanic//g`. Hopefully makes libsyntax a bit more readable.
Diffstat (limited to 'src/libsyntax/util/parser_testing.rs')
| -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() }) } |
