diff options
| author | bors <bors@rust-lang.org> | 2014-02-06 14:51:30 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-02-06 14:51:30 -0800 |
| commit | 6d27b013c68e1cf9f95c7ef2ab94259f7e6a3217 (patch) | |
| tree | 14ff6b505eeee456236727940e5804e3e812b1b5 /src/libsyntax/util/parser_testing.rs | |
| parent | c13a929d58c3f866687ccf12cc33b2b59a2e10b8 (diff) | |
| parent | b2d30b72bfaa1f36808151e5825073cdff2e7ea7 (diff) | |
| download | rust-6d27b013c68e1cf9f95c7ef2ab94259f7e6a3217.tar.gz rust-6d27b013c68e1cf9f95c7ef2ab94259f7e6a3217.zip | |
auto merge of #12030 : eddyb/rust/kill-at-self-and-trait, r=cmr
Diffstat (limited to 'src/libsyntax/util/parser_testing.rs')
| -rw-r--r-- | src/libsyntax/util/parser_testing.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/util/parser_testing.rs b/src/libsyntax/util/parser_testing.rs index aa22f47221b..8c7ad028a8e 100644 --- a/src/libsyntax/util/parser_testing.rs +++ b/src/libsyntax/util/parser_testing.rs @@ -18,7 +18,7 @@ use parse::token; // map a string to tts, using a made-up filename: return both the TokenTree's // and the ParseSess pub fn string_to_tts_and_sess (source_str : ~str) -> (~[ast::TokenTree], @ParseSess) { - let ps = new_parse_sess(None); + let ps = new_parse_sess(); (filemap_to_tts(ps,string_to_filemap(ps,source_str,~"bogofile")),ps) } @@ -29,7 +29,7 @@ pub fn string_to_tts(source_str : ~str) -> ~[ast::TokenTree] { } pub fn string_to_parser_and_sess(source_str: ~str) -> (Parser,@ParseSess) { - let ps = new_parse_sess(None); + let ps = new_parse_sess(); (new_parser_from_source_str(ps,~[],~"bogofile",source_str),ps) } |
