From 758931948f3bd1a871133777279fbf5c8cebea8f Mon Sep 17 00:00:00 2001 From: Mazdak Farrokhzad Date: Tue, 2 Jul 2019 06:30:21 +0200 Subject: Unsupport the await!(..) macro. --- src/libsyntax/util/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/util/parser.rs') 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, _) | -- cgit 1.4.1-3-g733a5