Skip to content

Commit 1523dde

Browse files
committed
avoid attribute ambiguity in ExprStmt
Both expr stmt and expr can have attributes, which doesn't make sense. Let's say that statement's attrs are those of the expression.
1 parent 32088df commit 1523dde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust.ungram

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ LetStmt =
318318
'=' initializer:Expr ';'
319319

320320
ExprStmt =
321-
Attr* Expr ';'?
321+
Expr ';'?
322322

323323
Expr =
324324
ArrayExpr

0 commit comments

Comments
 (0)