diff options
| author | Eduard Burtescu <edy.burt@gmail.com> | 2014-03-17 09:55:41 +0200 |
|---|---|---|
| committer | Eduard Burtescu <edy.burt@gmail.com> | 2014-03-17 09:55:41 +0200 |
| commit | e2ebc8f81138bcad019f43a3af0cddb0dc0dcfbc (patch) | |
| tree | 1d780574526f91999a3a73bebe5112c2fb8ef136 /src/libsyntax/util/parser_testing.rs | |
| parent | e02aa722aace1112ba2a7927ef76abe79ba9dae6 (diff) | |
| download | rust-e2ebc8f81138bcad019f43a3af0cddb0dc0dcfbc.tar.gz rust-e2ebc8f81138bcad019f43a3af0cddb0dc0dcfbc.zip | |
Fix rustdoc and tests.
Diffstat (limited to 'src/libsyntax/util/parser_testing.rs')
| -rw-r--r-- | src/libsyntax/util/parser_testing.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/util/parser_testing.rs b/src/libsyntax/util/parser_testing.rs index 029486412ea..658e9709750 100644 --- a/src/libsyntax/util/parser_testing.rs +++ b/src/libsyntax/util/parser_testing.rs @@ -29,7 +29,8 @@ pub fn string_to_parser<'a>(ps: &'a ParseSess, source_str: ~str) -> Parser<'a> { } fn with_error_checking_parse<T>(s: ~str, f: |&mut Parser| -> T) -> T { - let mut p = string_to_parser(&new_parse_sess(), s); + let ps = new_parse_sess(); + let mut p = string_to_parser(&ps, s); let x = f(&mut p); p.abort_if_errors(); x |
