summaryrefslogtreecommitdiffstats
path: root/src/librustc_parse/parser/ty.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustc_parse/parser/ty.rs')
-rw-r--r--src/librustc_parse/parser/ty.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/librustc_parse/parser/ty.rs b/src/librustc_parse/parser/ty.rs
index 3214279..84ffef6 100644
--- a/src/librustc_parse/parser/ty.rs
+++ b/src/librustc_parse/parser/ty.rs
@@ -3,19 +3,17 @@ use super::item::ParamCfg;
3 3
4use crate::{maybe_whole, maybe_recover_from_interpolated_ty_qpath}; 4use crate::{maybe_whole, maybe_recover_from_interpolated_ty_qpath};
5 5
6use rustc_errors::{PResult, Applicability, pluralize};
7use rustc_error_codes::*;
6use syntax::ptr::P; 8use syntax::ptr::P;
7use syntax::ast::{self, Ty, TyKind, MutTy, BareFnTy, FunctionRetTy, GenericParam, Lifetime, Ident}; 9use syntax::ast::{self, Ty, TyKind, MutTy, BareFnTy, FunctionRetTy, GenericParam, Lifetime, Ident};
8use syntax::ast::{TraitBoundModifier, TraitObjectSyntax, GenericBound, GenericBounds, PolyTraitRef}; 10use syntax::ast::{TraitBoundModifier, TraitObjectSyntax, GenericBound, GenericBounds, PolyTraitRef};
9use syntax::ast::{Mutability, AnonConst, Mac}; 11use syntax::ast::{Mutability, AnonConst, Mac};
10use syntax::token::{self, Token}; 12use syntax::token::{self, Token};
11use syntax::source_map::Span;
12use syntax::struct_span_fatal; 13use syntax::struct_span_fatal;
14use syntax_pos::source_map::Span;
13use syntax_pos::symbol::kw; 15use syntax_pos::symbol::kw;
14 16
15use errors::{PResult, Applicability, pluralize};
16
17use rustc_error_codes::*;
18
19/// Returns `true` if `IDENT t` can start a type -- `IDENT::a::b`, `IDENT<u8, u8>`, 17/// Returns `true` if `IDENT t` can start a type -- `IDENT::a::b`, `IDENT<u8, u8>`,
20/// `IDENT<<u8 as Trait>::AssocTy>`. 18/// `IDENT<<u8 as Trait>::AssocTy>`.
21/// 19///