Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'lib/ungrammar/rust.ungram')
-rw-r--r--lib/ungrammar/rust.ungram7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/ungrammar/rust.ungram b/lib/ungrammar/rust.ungram
index 5a8e116137..938843ffce 100644
--- a/lib/ungrammar/rust.ungram
+++ b/lib/ungrammar/rust.ungram
@@ -331,7 +331,6 @@ Expr =
| CastExpr
| ClosureExpr
| ContinueExpr
-| EffectExpr
| FieldExpr
| ForExpr
| IfExpr
@@ -366,7 +365,7 @@ Literal =
PathExpr =
Attr* Path
-BlockExpr =
+StmtList =
'{'
Attr*
statements:Stmt*
@@ -379,8 +378,8 @@ RefExpr =
TryExpr =
Attr* Expr '?'
-EffectExpr =
- Attr* Label? ('try' | 'unsafe' | 'async' | 'const') BlockExpr
+BlockExpr =
+ Attr* Label? ('try' | 'unsafe' | 'async' | 'const') StmtList
PrefixExpr =
Attr* op:('-' | '!' | '*') Expr