From 69210a96358dcd85bf6d08f21c8e2df5b0975d3b Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Tue, 10 Nov 2015 16:08:26 -0800 Subject: Rename _nopanic methods to remove the suffix. Just `sed s/_nopanic//g`. Hopefully makes libsyntax a bit more readable. --- src/libsyntax/util/parser_testing.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libsyntax/util') 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 { 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> { 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> { 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> { /// (currently) affect parsing. pub fn string_to_pat(source_str: String) -> P { with_error_checking_parse(source_str, |p| { - p.parse_pat_nopanic() + p.parse_pat() }) } -- cgit 1.4.1-3-g733a5