compiler: Privatize Parser::current_closure
This was added as pub in 2021 and remains only privately used in 2024!
This commit is contained in:
@@ -170,7 +170,7 @@ pub struct Parser<'a> {
|
|||||||
capture_state: CaptureState,
|
capture_state: CaptureState,
|
||||||
/// This allows us to recover when the user forget to add braces around
|
/// This allows us to recover when the user forget to add braces around
|
||||||
/// multiple statements in the closure body.
|
/// multiple statements in the closure body.
|
||||||
pub current_closure: Option<ClosureSpans>,
|
current_closure: Option<ClosureSpans>,
|
||||||
/// Whether the parser is allowed to do recovery.
|
/// Whether the parser is allowed to do recovery.
|
||||||
/// This is disabled when parsing macro arguments, see #103534
|
/// This is disabled when parsing macro arguments, see #103534
|
||||||
pub recovery: Recovery,
|
pub recovery: Recovery,
|
||||||
|
|||||||
Reference in New Issue
Block a user