From 962c0140c71f07642a7c39243c8a9a314dd26ba5 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sun, 24 Nov 2024 17:36:52 +0100 Subject: parse guard patterns Co-authored-by: Max Niederman --- compiler/rustc_parse/src/parser/path.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_parse/src/parser/path.rs') diff --git a/compiler/rustc_parse/src/parser/path.rs b/compiler/rustc_parse/src/parser/path.rs index 9587b53a44b..6a7029a8f1c 100644 --- a/compiler/rustc_parse/src/parser/path.rs +++ b/compiler/rustc_parse/src/parser/path.rs @@ -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, -- cgit 1.4.1-3-g733a5