diff options
| author | topecongiro <seuchida@gmail.com> | 2019-05-10 14:44:43 +0900 |
|---|---|---|
| committer | topecongiro <seuchida@gmail.com> | 2019-05-10 14:44:43 +0900 |
| commit | c921aaed3967ba03b55ce1a6e2e4b192d95599c5 (patch) | |
| tree | 6edc7aaca0631705c4e99afd896ab3b19c55935d /src/libsyntax/parse | |
| parent | 03bd2f653f0d0adb69d862fbeec64663157e71e1 (diff) | |
| download | rust-c921aaed3967ba03b55ce1a6e2e4b192d95599c5.tar.gz rust-c921aaed3967ba03b55ce1a6e2e4b192d95599c5.zip | |
Include expression to wait for to the span of Await
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index d97d1e2f0f4..ddc145e1cde 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -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)?; |
