summaryrefslogtreecommitdiffstats
path: root/src/librustc_parse/parser/item.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustc_parse/parser/item.rs')
-rw-r--r--src/librustc_parse/parser/item.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/librustc_parse/parser/item.rs b/src/librustc_parse/parser/item.rs
index 66a1352..ccf78e6 100644
--- a/src/librustc_parse/parser/item.rs
+++ b/src/librustc_parse/parser/item.rs
@@ -3,6 +3,8 @@ use super::diagnostics::{Error, dummy_arg, ConsumeClosingDelim};
3 3
4use crate::maybe_whole; 4use crate::maybe_whole;
5 5
6use rustc_errors::{PResult, Applicability, DiagnosticBuilder, StashKey};
7use rustc_error_codes::*;
6use syntax::ast::{self, DUMMY_NODE_ID, Ident, Attribute, AttrKind, AttrStyle, AnonConst, Item}; 8use syntax::ast::{self, DUMMY_NODE_ID, Ident, Attribute, AttrKind, AttrStyle, AnonConst, Item};
7use syntax::ast::{ItemKind, ImplItem, ImplItemKind, TraitItem, TraitItemKind, UseTree, UseTreeKind}; 9use syntax::ast::{ItemKind, ImplItem, ImplItemKind, TraitItem, TraitItemKind, UseTree, UseTreeKind};
8use syntax::ast::{PathSegment, IsAuto, Constness, IsAsync, Unsafety, Defaultness, Extern, StrLit}; 10use syntax::ast::{PathSegment, IsAuto, Constness, IsAsync, Unsafety, Defaultness, Extern, StrLit};
@@ -14,16 +16,13 @@ use syntax::ptr::P;
14use syntax::ThinVec; 16use syntax::ThinVec;
15use syntax::token; 17use syntax::token;
16use syntax::tokenstream::{DelimSpan, TokenTree, TokenStream}; 18use syntax::tokenstream::{DelimSpan, TokenTree, TokenStream};
17use syntax::source_map::{self, respan, Span};
18use syntax::struct_span_err; 19use syntax::struct_span_err;
19use syntax_pos::BytePos; 20use syntax_pos::BytePos;
21use syntax_pos::source_map::{self, respan, Span};
20use syntax_pos::symbol::{kw, sym, Symbol}; 22use syntax_pos::symbol::{kw, sym, Symbol};
21 23
22use rustc_error_codes::*;
23
24use log::debug; 24use log::debug;
25use std::mem; 25use std::mem;
26use errors::{PResult, Applicability, DiagnosticBuilder, StashKey};
27 26
28pub(super) type ItemInfo = (Ident, ItemKind, Option<Vec<Attribute>>); 27pub(super) type ItemInfo = (Ident, ItemKind, Option<Vec<Attribute>>);
29 28