summaryrefslogtreecommitdiffstats
path: root/src/librustc_parse/parser/pat.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustc_parse/parser/pat.rs')
-rw-r--r--src/librustc_parse/parser/pat.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_parse/parser/pat.rs b/src/librustc_parse/parser/pat.rs
index 1127c4b..42ece96 100644
--- a/src/librustc_parse/parser/pat.rs
+++ b/src/librustc_parse/parser/pat.rs
@@ -1,5 +1,6 @@
1use super::{Parser, PathStyle}; 1use super::{Parser, PathStyle};
2use crate::{maybe_recover_from_interpolated_ty_qpath, maybe_whole}; 2use crate::{maybe_recover_from_interpolated_ty_qpath, maybe_whole};
3use rustc_errors::{PResult, Applicability, DiagnosticBuilder};
3use syntax::ast::{self, Attribute, Pat, PatKind, FieldPat, RangeEnd, RangeSyntax, Mac}; 4use syntax::ast::{self, Attribute, Pat, PatKind, FieldPat, RangeEnd, RangeSyntax, Mac};
4use syntax::ast::{BindingMode, Ident, Mutability, Path, QSelf, Expr, ExprKind}; 5use syntax::ast::{BindingMode, Ident, Mutability, Path, QSelf, Expr, ExprKind};
5use syntax::mut_visit::{noop_visit_pat, noop_visit_mac, MutVisitor}; 6use syntax::mut_visit::{noop_visit_pat, noop_visit_mac, MutVisitor};
@@ -7,9 +8,8 @@ use syntax::ptr::P;
7use syntax::print::pprust; 8use syntax::print::pprust;
8use syntax::ThinVec; 9use syntax::ThinVec;
9use syntax::token; 10use syntax::token;
10use syntax::source_map::{respan, Span, Spanned}; 11use syntax_pos::source_map::{respan, Span, Spanned};
11use syntax_pos::symbol::{kw, sym}; 12use syntax_pos::symbol::{kw, sym};
12use errors::{PResult, Applicability, DiagnosticBuilder};
13 13
14type Expected = Option<&'static str>; 14type Expected = Option<&'static str>;
15 15