summaryrefslogtreecommitdiffstats
path: root/src/librustc_parse/lexer/tokentrees.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustc_parse/lexer/tokentrees.rs')
-rw-r--r--src/librustc_parse/lexer/tokentrees.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/librustc_parse/lexer/tokentrees.rs b/src/librustc_parse/lexer/tokentrees.rs
index 1353591..5791c63 100644
--- a/src/librustc_parse/lexer/tokentrees.rs
+++ b/src/librustc_parse/lexer/tokentrees.rs
@@ -1,13 +1,11 @@
1use rustc_data_structures::fx::FxHashMap;
2use syntax_pos::Span;
3
4use super::{StringReader, UnmatchedBrace}; 1use super::{StringReader, UnmatchedBrace};
5 2
3use rustc_data_structures::fx::FxHashMap;
4use rustc_errors::PResult;
6use syntax::print::pprust::token_to_string; 5use syntax::print::pprust::token_to_string;
7use syntax::token::{self, Token}; 6use syntax::token::{self, Token};
8use syntax::tokenstream::{DelimSpan, IsJoint::{self, *}, TokenStream, TokenTree, TreeAndJoint}; 7use syntax::tokenstream::{DelimSpan, IsJoint::{self, *}, TokenStream, TokenTree, TreeAndJoint};
9 8use syntax_pos::Span;
10use errors::PResult;
11 9
12impl<'a> StringReader<'a> { 10impl<'a> StringReader<'a> {
13 crate fn into_token_trees(self) -> (PResult<'a, TokenStream>, Vec<UnmatchedBrace>) { 11 crate fn into_token_trees(self) -> (PResult<'a, TokenStream>, Vec<UnmatchedBrace>) {