Fix accidental NoProgress return in if, to avoid exponential parsing issue

This commit is contained in:
Joshua Warner 2025-01-01 12:38:52 -05:00
parent 37e7caa1aa
commit 9ff1b630a8
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
4 changed files with 11 additions and 1 deletions

View file

@ -2836,7 +2836,8 @@ fn if_expr_help<'a>(options: ExprParseOptions) -> impl Parser<'a, Expr<'a>, EIf<
loc_first_space,
allow_defs,
false,
)?;
)
.map_err(|(_, err)| (MadeProgress, err))?;
let expr = Expr::If {
if_thens: branches.into_bump_slice(),