mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
parse_block_tail: reduce visibility
This commit is contained in:
@@ -318,11 +318,7 @@ pub(super) fn parse_block_common(
|
||||
|
||||
/// Parses the rest of a block expression or function body.
|
||||
/// Precondition: already parsed the '{'.
|
||||
pub(super) fn parse_block_tail(
|
||||
&mut self,
|
||||
lo: Span,
|
||||
s: BlockCheckMode,
|
||||
) -> PResult<'a, P<Block>> {
|
||||
fn parse_block_tail(&mut self, lo: Span, s: BlockCheckMode) -> PResult<'a, P<Block>> {
|
||||
let mut stmts = vec![];
|
||||
while !self.eat(&token::CloseDelim(token::Brace)) {
|
||||
if self.token == token::Eof {
|
||||
|
||||
Reference in New Issue
Block a user