From e3acb341b2ff743e186c032326d24bfa8827bedc Mon Sep 17 00:00:00 2001 From: Vadim Petrochenkov Date: Wed, 27 Jun 2018 01:59:07 +0300 Subject: Remove some tests using AST comparisons, fix other tests --- src/libsyntax/util/parser_testing.rs | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/libsyntax/util') diff --git a/src/libsyntax/util/parser_testing.rs b/src/libsyntax/util/parser_testing.rs index 42cd7c8faa5..46b7f2d7bda 100644 --- a/src/libsyntax/util/parser_testing.rs +++ b/src/libsyntax/util/parser_testing.rs @@ -63,14 +63,6 @@ pub fn string_to_item (source_str : String) -> Option> { }) } -/// Parse a string, return a stmt -pub fn string_to_stmt(source_str : String) -> Option { - let ps = ParseSess::new(FilePathMapping::empty()); - with_error_checking_parse(source_str, &ps, |p| { - p.parse_stmt() - }) -} - /// Parse a string, return a pat. Uses "irrefutable"... which doesn't /// (currently) affect parsing. pub fn string_to_pat(source_str: String) -> P { -- cgit 1.4.1-3-g733a5