File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/rustc_parse/src/parser Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1146,7 +1146,7 @@ impl<'a> Parser<'a> {
1146
1146
/// Assuming we have just parsed `.`, continue parsing into an expression.
1147
1147
fn parse_dot_suffix ( & mut self , self_arg : P < Expr > , lo : Span ) -> PResult < ' a , P < Expr > > {
1148
1148
if self . token . uninterpolated_span ( ) . rust_2018 ( ) && self . eat_keyword ( kw:: Await ) {
1149
- return Ok ( self . mk_await_expr ( self_arg, lo ) ) ;
1149
+ return Ok ( self . mk_await_expr ( self_arg) ) ;
1150
1150
}
1151
1151
1152
1152
let fn_span_lo = self . token . span ;
@@ -2831,7 +2831,7 @@ impl<'a> Parser<'a> {
2831
2831
ExprKind :: Call ( f, args)
2832
2832
}
2833
2833
2834
- fn mk_await_expr ( & mut self , self_arg : P < Expr > , _lo : Span ) -> P < Expr > {
2834
+ fn mk_await_expr ( & mut self , self_arg : P < Expr > ) -> P < Expr > {
2835
2835
let span = self . prev_token . span ;
2836
2836
let await_expr = self . mk_expr ( span, ExprKind :: Await ( self_arg) , AttrVec :: new ( ) ) ;
2837
2837
self . recover_from_await_method_call ( ) ;
You can’t perform that action at this time.
0 commit comments