From e0192f48c9a19aadec88742de2647de7d16b2a6c Mon Sep 17 00:00:00 2001 From: Jubilee Young Date: Sun, 5 May 2024 12:23:37 -0700 Subject: [PATCH] compiler: Privatize `Parser::current_closure` This was added as pub in 2021 and remains only privately used in 2024! --- compiler/rustc_parse/src/parser/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_parse/src/parser/mod.rs b/compiler/rustc_parse/src/parser/mod.rs index 7486da33b21..ec025b44b7b 100644 --- a/compiler/rustc_parse/src/parser/mod.rs +++ b/compiler/rustc_parse/src/parser/mod.rs @@ -170,7 +170,7 @@ pub struct Parser<'a> { capture_state: CaptureState, /// This allows us to recover when the user forget to add braces around /// multiple statements in the closure body. - pub current_closure: Option, + current_closure: Option, /// Whether the parser is allowed to do recovery. /// This is disabled when parsing macro arguments, see #103534 pub recovery: Recovery,