Skip to content

Commit fe848b4

Browse files
committed
parse_block_tail: reduce visibility
1 parent addbc5b commit fe848b4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/librustc_parse/parser/stmt.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -318,11 +318,7 @@ impl<'a> Parser<'a> {
318318

319319
/// Parses the rest of a block expression or function body.
320320
/// Precondition: already parsed the '{'.
321-
pub(super) fn parse_block_tail(
322-
&mut self,
323-
lo: Span,
324-
s: BlockCheckMode,
325-
) -> PResult<'a, P<Block>> {
321+
fn parse_block_tail(&mut self, lo: Span, s: BlockCheckMode) -> PResult<'a, P<Block>> {
326322
let mut stmts = vec![];
327323
while !self.eat(&token::CloseDelim(token::Brace)) {
328324
if self.token == token::Eof {

0 commit comments

Comments
 (0)