diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-03-06 00:32:05 +0100 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-03-10 08:35:23 +0100 |
| commit | fe848b44feb5078f4f5c81bca0b61a29f71b6ef2 (patch) | |
| tree | 574880a7b68a088b2d68348223962d55cc26c10a /src/librustc_parse/parser | |
| parent | addbc5b9df3fca76e7c271a78a0568144b9634f9 (diff) | |
| download | rust-fe848b44feb5078f4f5c81bca0b61a29f71b6ef2.tar.gz rust-fe848b44feb5078f4f5c81bca0b61a29f71b6ef2.zip | |
parse_block_tail: reduce visibility
Diffstat (limited to 'src/librustc_parse/parser')
| -rw-r--r-- | src/librustc_parse/parser/stmt.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/librustc_parse/parser/stmt.rs b/src/librustc_parse/parser/stmt.rs index 036e8a5d258..8afc86c704d 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<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 { |
