diff options
| author | Jonathan Price <jon.mark.price@gmail.com> | 2016-06-28 13:06:15 -0500 |
|---|---|---|
| committer | Jonathan Price <jon.mark.price@gmail.com> | 2016-06-28 13:06:15 -0500 |
| commit | 763cec21f0b030c0d811bea3263b46361e99a14f (patch) | |
| tree | 89118a5ff351834e68fce30aee899551f0706b32 /src/libsyntax/util/parser_testing.rs | |
| parent | 8eb56e698814c5a626b9c935162ff8487bca0774 (diff) | |
| parent | ea0dc9297283daff6486807f43e190b4eb561412 (diff) | |
| download | rust-763cec21f0b030c0d811bea3263b46361e99a14f.tar.gz rust-763cec21f0b030c0d811bea3263b46361e99a14f.zip | |
Merging my book edits recent commits.
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 06264196d9e..f59428bf536 100644 --- a/src/libsyntax/util/parser_testing.rs +++ b/src/libsyntax/util/parser_testing.rs @@ -14,10 +14,11 @@ use parse::{lexer, new_parser_from_source_str}; use parse::parser::Parser; use parse::token; use ptr::P; +use tokenstream; use std::iter::Peekable; /// Map a string to tts, using a made-up filename: -pub fn string_to_tts(source_str: String) -> Vec<ast::TokenTree> { +pub fn string_to_tts(source_str: String) -> Vec<tokenstream::TokenTree> { let ps = ParseSess::new(); filemap_to_tts(&ps, ps.codemap().new_filemap("bogofile".to_string(), None, source_str)) } |
