From fe848b44feb5078f4f5c81bca0b61a29f71b6ef2 Mon Sep 17 00:00:00 2001 From: Mazdak Farrokhzad Date: Fri, 6 Mar 2020 00:32:05 +0100 Subject: [PATCH] parse_block_tail: reduce visibility --- src/librustc_parse/parser/stmt.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/librustc_parse/parser/stmt.rs b/src/librustc_parse/parser/stmt.rs index 036e8a5d2585..8afc86c704d3 100644 --- a/src/librustc_parse/parser/stmt.rs +++ b/src/librustc_parse/parser/stmt.rs @@ -318,11 +318,7 @@ impl<'a> Parser<'a> { /// 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> { + fn parse_block_tail(&mut self, lo: Span, s: BlockCheckMode) -> PResult<'a, P> { let mut stmts = vec![]; while !self.eat(&token::CloseDelim(token::Brace)) { if self.token == token::Eof {