compiler: Privatize Parser::current_closure

This was added as pub in 2021 and remains only privately used in 2024!
This commit is contained in:
Jubilee Young 2024-05-05 12:23:37 -07:00
parent 7c4ac0603e
commit e0192f48c9

View File

@ -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,