diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-06-27 01:59:07 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-07-14 14:57:14 +0300 |
| commit | e3acb341b2ff743e186c032326d24bfa8827bedc (patch) | |
| tree | c7080793f49bb9c75752cee93830a5b49bf9d0e8 /src/libsyntax/util | |
| parent | 5987fe8f75c443d4f73603fa5a3af8ab41ee1b01 (diff) | |
| download | rust-e3acb341b2ff743e186c032326d24bfa8827bedc.tar.gz rust-e3acb341b2ff743e186c032326d24bfa8827bedc.zip | |
Remove some tests using AST comparisons, fix other tests
Diffstat (limited to 'src/libsyntax/util')
| -rw-r--r-- | src/libsyntax/util/parser_testing.rs | 8 |
1 files changed, 0 insertions, 8 deletions
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<P<ast::Item>> { }) } -/// Parse a string, return a stmt -pub fn string_to_stmt(source_str : String) -> Option<ast::Stmt> { - 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<ast::Pat> { |
