diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-07-30 22:43:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-30 22:43:31 +0200 |
| commit | d8280faabf6580d994cccf28b0678673a349bd5a (patch) | |
| tree | e9ca17c285331e81f254efb1c279e4ab1182cdaa /src/libsyntax/util/parser.rs | |
| parent | f690098e6d65ad7b33dc7fdefccc387806782027 (diff) | |
| parent | b21f0a313e22875dcdd399f599f5542df6ebb5c2 (diff) | |
| download | rust-d8280faabf6580d994cccf28b0678673a349bd5a.tar.gz rust-d8280faabf6580d994cccf28b0678673a349bd5a.zip | |
Rollup merge of #62293 - Centril:remove-await-macro, r=cramertj
Unsupport the `await!(future)` macro Unsupport the `await!(future)` "macro" and recognize it in error recovery instead. The `future.await` syntax has been on nightly since 2019-05-08. This was 55 days ago which is 1.31 releases ago. Closes https://github.com/rust-lang/rust/issues/60610. r? @cramertj
Diffstat (limited to 'src/libsyntax/util/parser.rs')
| -rw-r--r-- | src/libsyntax/util/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/util/parser.rs b/src/libsyntax/util/parser.rs index 1e52186a106..d71358f45c4 100644 --- a/src/libsyntax/util/parser.rs +++ b/src/libsyntax/util/parser.rs @@ -382,7 +382,7 @@ pub fn contains_exterior_struct_lit(value: &ast::Expr) -> bool { // X { y: 1 } + X { y: 2 } contains_exterior_struct_lit(&lhs) || contains_exterior_struct_lit(&rhs) } - ast::ExprKind::Await(_, ref x) | + ast::ExprKind::Await(ref x) | ast::ExprKind::Unary(_, ref x) | ast::ExprKind::Cast(ref x, _) | ast::ExprKind::Type(ref x, _) | |
