diff options
| author | Jubilee Young <workingjubilee@gmail.com> | 2024-05-05 12:23:37 -0700 |
|---|---|---|
| committer | Jubilee Young <workingjubilee@gmail.com> | 2024-05-05 16:56:23 -0700 |
| commit | e0192f48c9a19aadec88742de2647de7d16b2a6c (patch) | |
| tree | 4be981fab597865769644317cde2b116deb09f44 /compiler/rustc_parse/src | |
| parent | 7c4ac0603e9ee5295bc802c90575391288a69a8a (diff) | |
| download | rust-e0192f48c9a19aadec88742de2647de7d16b2a6c.tar.gz rust-e0192f48c9a19aadec88742de2647de7d16b2a6c.zip | |
compiler: Privatize `Parser::current_closure`
This was added as pub in 2021 and remains only privately used in 2024!
Diffstat (limited to 'compiler/rustc_parse/src')
| -rw-r--r-- | compiler/rustc_parse/src/parser/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<ClosureSpans>, + current_closure: Option<ClosureSpans>, /// Whether the parser is allowed to do recovery. /// This is disabled when parsing macro arguments, see #103534 pub recovery: Recovery, |
