summaryrefslogtreecommitdiffstats
path: root/src/librustc_parse/parser/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustc_parse/parser/mod.rs')
-rw-r--r--src/librustc_parse/parser/mod.rs13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/librustc_parse/parser/mod.rs b/src/librustc_parse/parser/mod.rs
index 2868972..07e99cf 100644
--- a/src/librustc_parse/parser/mod.rs
+++ b/src/librustc_parse/parser/mod.rs
@@ -14,23 +14,20 @@ use diagnostics::Error;
14use crate::{Directory, DirectoryOwnership}; 14use crate::{Directory, DirectoryOwnership};
15use crate::lexer::UnmatchedBrace; 15use crate::lexer::UnmatchedBrace;
16 16
17use syntax::ast::{ 17use rustc_errors::{PResult, Applicability, DiagnosticBuilder, FatalError};
18 self, DUMMY_NODE_ID, AttrStyle, Attribute, CrateSugar, Extern, Ident, StrLit, 18use rustc_data_structures::thin_vec::ThinVec;
19 IsAsync, MacArgs, MacDelimiter, Mutability, Visibility, VisibilityKind, Unsafety, 19use syntax::ast::{self, DUMMY_NODE_ID, AttrStyle, Attribute, CrateSugar, Extern, Ident, StrLit};
20}; 20use syntax::ast::{IsAsync, MacArgs, MacDelimiter, Mutability, Visibility, VisibilityKind, Unsafety};
21
22use syntax::print::pprust; 21use syntax::print::pprust;
23use syntax::ptr::P; 22use syntax::ptr::P;
24use syntax::token::{self, Token, TokenKind, DelimToken}; 23use syntax::token::{self, Token, TokenKind, DelimToken};
25use syntax::tokenstream::{self, DelimSpan, TokenTree, TokenStream, TreeAndJoint}; 24use syntax::tokenstream::{self, DelimSpan, TokenTree, TokenStream, TreeAndJoint};
26use syntax::sess::ParseSess; 25use syntax::sess::ParseSess;
27use syntax::source_map::respan;
28use syntax::struct_span_err; 26use syntax::struct_span_err;
29use syntax::util::comments::{doc_comment_style, strip_doc_comment_decoration}; 27use syntax::util::comments::{doc_comment_style, strip_doc_comment_decoration};
28use syntax_pos::source_map::respan;
30use syntax_pos::symbol::{kw, sym, Symbol}; 29use syntax_pos::symbol::{kw, sym, Symbol};
31use syntax_pos::{Span, BytePos, DUMMY_SP, FileName}; 30use syntax_pos::{Span, BytePos, DUMMY_SP, FileName};
32use rustc_data_structures::thin_vec::ThinVec;
33use errors::{PResult, Applicability, DiagnosticBuilder, FatalError};
34use log::debug; 31use log::debug;
35 32
36use std::borrow::Cow; 33use std::borrow::Cow;