Skip to content

Commit e0192f4

Browse files
compiler: Privatize Parser::current_closure
This was added as pub in 2021 and remains only privately used in 2024!
1 parent 7c4ac06 commit e0192f4

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_parse/src/parser

1 file changed

+1
-1
lines changed

compiler/rustc_parse/src/parser/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ pub struct Parser<'a> {
170170
capture_state: CaptureState,
171171
/// This allows us to recover when the user forget to add braces around
172172
/// multiple statements in the closure body.
173-
pub current_closure: Option<ClosureSpans>,
173+
current_closure: Option<ClosureSpans>,
174174
/// Whether the parser is allowed to do recovery.
175175
/// This is disabled when parsing macro arguments, see #103534
176176
pub recovery: Recovery,

0 commit comments

Comments
 (0)