Skip to content

Commit

Permalink
Include expression to wait for to the span of Await
Browse files Browse the repository at this point in the history
  • Loading branch information
topecongiro committed May 10, 2019
1 parent 03bd2f6 commit c921aae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libsyntax/parse/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2764,6 +2764,7 @@ impl<'a> Parser<'a> {
self.expect(&token::OpenDelim(token::Paren))?;
let expr = self.parse_expr()?;
self.expect(&token::CloseDelim(token::Paren))?;
hi = self.prev_span;
ex = ExprKind::Await(ast::AwaitOrigin::MacroLike, expr);
} else if self.token.is_path_start() {
let path = self.parse_path(PathStyle::Expr)?;
Expand Down

0 comments on commit c921aae

Please sign in to comment.