about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/expr.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-04-02 18:31:42 -0400
committerMichael Goulet <michael@errs.io>2024-04-02 18:31:42 -0400
commit9d116e8e188a84d97e1b64f54410fda7ec6f2dc6 (patch)
tree662f2bae190b9ca28683f9b541b6506149051446 /compiler/rustc_parse/src/parser/expr.rs
parent36b6f9b58e78a1225a322a759e42c262e6dc8d5d (diff)
downloadrust-9d116e8e188a84d97e1b64f54410fda7ec6f2dc6.tar.gz
rust-9d116e8e188a84d97e1b64f54410fda7ec6f2dc6.zip
Don't ICE for postfix match after as
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
-rw-r--r--compiler/rustc_parse/src/parser/expr.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs
index 18fb858c84c..012285e4644 100644
--- a/compiler/rustc_parse/src/parser/expr.rs
+++ b/compiler/rustc_parse/src/parser/expr.rs
@@ -860,6 +860,7 @@ impl<'a> Parser<'a> {
                     ExprKind::MethodCall(_) => "a method call",
                     ExprKind::Call(_, _) => "a function call",
                     ExprKind::Await(_, _) => "`.await`",
+                    ExprKind::Match(_, _, MatchKind::Postfix) => "a postfix match",
                     ExprKind::Err(_) => return Ok(with_postfix),
                     _ => unreachable!("parse_dot_or_call_expr_with_ shouldn't produce this"),
                 }