From 2fd08193fded56b4eccc3f95a075f53b0d4fdfe5 Mon Sep 17 00:00:00 2001 From: John Date: Sun, 23 Feb 2025 02:43:22 -0600 Subject: [PATCH] cl-parser: Promote match scrutinee to position --- compiler/cl-parser/src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/cl-parser/src/parser.rs b/compiler/cl-parser/src/parser.rs index 440b02d..9b6e77f 100644 --- a/compiler/cl-parser/src/parser.rs +++ b/compiler/cl-parser/src/parser.rs @@ -1097,7 +1097,7 @@ impl Parse<'_> for Match { /// [Match] = `match` [Expr] `{` [MatchArm],* `}` fn parse(p: &mut Parser<'_>) -> PResult { p.match_type(TokenKind::Match, Parsing::Match)?; - let scrutinee = Expr::parse(p)?.into(); + let scrutinee = condition(p)?.into(); let arms = delim( sep(MatchArm::parse, TokenKind::Comma, CURLIES.1, Parsing::Match), CURLIES,