Skip to content

Commit c921aae

Browse files
committed
Include expression to wait for to the span of Await
1 parent 03bd2f6 commit c921aae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2764,6 +2764,7 @@ impl<'a> Parser<'a> {
27642764
self.expect(&token::OpenDelim(token::Paren))?;
27652765
let expr = self.parse_expr()?;
27662766
self.expect(&token::CloseDelim(token::Paren))?;
2767+
hi = self.prev_span;
27672768
ex = ExprKind::Await(ast::AwaitOrigin::MacroLike, expr);
27682769
} else if self.token.is_path_start() {
27692770
let path = self.parse_path(PathStyle::Expr)?;

0 commit comments

Comments
 (0)