Skip to content

Commit 4f2b1c0

Browse files
committed
Remove unnecessary argument
1 parent 79749d6 commit 4f2b1c0

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_parse/src/parser

1 file changed

+2
-2
lines changed

compiler/rustc_parse/src/parser/expr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,7 @@ impl<'a> Parser<'a> {
11531153
/// Assuming we have just parsed `.`, continue parsing into an expression.
11541154
fn parse_dot_suffix(&mut self, self_arg: P<Expr>, lo: Span) -> PResult<'a, P<Expr>> {
11551155
if self.token.uninterpolated_span().rust_2018() && self.eat_keyword(kw::Await) {
1156-
return Ok(self.mk_await_expr(self_arg, lo));
1156+
return Ok(self.mk_await_expr(self_arg));
11571157
}
11581158

11591159
let fn_span_lo = self.token.span;
@@ -2838,7 +2838,7 @@ impl<'a> Parser<'a> {
28382838
ExprKind::Call(f, args)
28392839
}
28402840

2841-
fn mk_await_expr(&mut self, self_arg: P<Expr>, _lo: Span) -> P<Expr> {
2841+
fn mk_await_expr(&mut self, self_arg: P<Expr>) -> P<Expr> {
28422842
let span = self.prev_token.span;
28432843
let await_expr = self.mk_expr(span, ExprKind::Await(self_arg), AttrVec::new());
28442844
self.recover_from_await_method_call();

0 commit comments

Comments
 (0)