about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/path.rs
diff options
context:
space:
mode:
authorMax Niederman <max@maxniederman.com>2024-08-22 22:05:48 -0700
committerNadrieril <nadrieril+git@gmail.com>2024-11-24 18:08:20 +0100
commit35bbc45f1651024579ff9091698684ef4a1609ca (patch)
tree3c1857205a55037e99aab8fb78121410fc254eb4 /compiler/rustc_parse/src/parser/path.rs
parentf8e50d87368099032e2ae04a1e3c8fca9fdfeee8 (diff)
downloadrust-35bbc45f1651024579ff9091698684ef4a1609ca.tar.gz
rust-35bbc45f1651024579ff9091698684ef4a1609ca.zip
refactor pat parser method names/doc-comments to agree with RFC 3637
Diffstat (limited to 'compiler/rustc_parse/src/parser/path.rs')
-rw-r--r--compiler/rustc_parse/src/parser/path.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/path.rs b/compiler/rustc_parse/src/parser/path.rs
index 2f19a9b6b20..9587b53a44b 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_allow_top_alt(
+                        p.parse_pat_no_top_guard(
                             None,
                             RecoverComma::No,
                             RecoverColon::No,