summaryrefslogtreecommitdiffstats
path: root/src/librustc_parse/parser/expr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustc_parse/parser/expr.rs')
-rw-r--r--src/librustc_parse/parser/expr.rs17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/librustc_parse/parser/expr.rs b/src/librustc_parse/parser/expr.rs
index 1112274..3cd4988 100644
--- a/src/librustc_parse/parser/expr.rs
+++ b/src/librustc_parse/parser/expr.rs
@@ -4,23 +4,20 @@ use super::pat::{GateOr, PARAM_EXPECTED};
4use super::diagnostics::Error; 4use super::diagnostics::Error;
5use crate::maybe_recover_from_interpolated_ty_qpath; 5use crate::maybe_recover_from_interpolated_ty_qpath;
6 6
7use syntax::ast::{ 7use rustc_data_structures::thin_vec::ThinVec;
8 self, DUMMY_NODE_ID, Attribute, AttrStyle, Ident, CaptureBy, BlockCheckMode, 8use rustc_errors::{PResult, Applicability};
9 Expr, ExprKind, RangeLimits, Label, Movability, IsAsync, Arm, Ty, TyKind, 9use syntax::ast::{self, DUMMY_NODE_ID, Attribute, AttrStyle, Ident, CaptureBy, BlockCheckMode};
10 FunctionRetTy, Param, FnDecl, BinOpKind, BinOp, UnOp, Mac, AnonConst, Field, Lit, 10use syntax::ast::{Expr, ExprKind, RangeLimits, Label, Movability, IsAsync, Arm, Ty, TyKind};
11}; 11use syntax::ast::{FunctionRetTy, Param, FnDecl, BinOpKind, BinOp, UnOp, Mac, AnonConst, Field, Lit};
12use syntax::token::{self, Token, TokenKind}; 12use syntax::token::{self, Token, TokenKind};
13use syntax::print::pprust; 13use syntax::print::pprust;
14use syntax::ptr::P; 14use syntax::ptr::P;
15use syntax::source_map::{self, Span};
16use syntax::util::classify; 15use syntax::util::classify;
17use syntax::util::literal::LitError; 16use syntax::util::literal::LitError;
18use syntax::util::parser::{AssocOp, Fixity, prec_let_scrutinee_needs_par}; 17use syntax::util::parser::{AssocOp, Fixity, prec_let_scrutinee_needs_par};
19use syntax_pos::symbol::{kw, sym}; 18use syntax_pos::source_map::{self, Span};
20use syntax_pos::Symbol; 19use syntax_pos::symbol::{kw, sym, Symbol};
21use errors::{PResult, Applicability};
22use std::mem; 20use std::mem;
23use rustc_data_structures::thin_vec::ThinVec;
24 21
25/// Possibly accepts an `token::Interpolated` expression (a pre-parsed expression 22/// Possibly accepts an `token::Interpolated` expression (a pre-parsed expression
26/// dropped into the token stream, which happens while parsing the result of 23/// dropped into the token stream, which happens while parsing the result of