parse guard patterns

Co-authored-by: Max Niederman <max@maxniederman.com>
This commit is contained in:
Nadrieril 2024-11-24 17:36:52 +01:00
parent f86915a682
commit 962c0140c7
17 changed files with 248 additions and 63 deletions

View file

@ -469,7 +469,7 @@ impl<'a> Parser<'a> {
PathStyle::Pat
if let Ok(_) = self
.parse_paren_comma_seq(|p| {
p.parse_pat_no_top_guard(
p.parse_pat_allow_top_guard(
None,
RecoverComma::No,
RecoverColon::No,