Skip to content

Commit

Permalink
Auto merge of #51549 - PSeitz:patch-1, r=kennytm
Browse files Browse the repository at this point in the history
Follow up to #51508, make parse_block public instead parse_block_expr

This is an follow up to #51508

I mistakenly made parse_block_expr public instead of parse_block.
This fixes this.
  • Loading branch information
bors committed Jun 17, 2018
2 parents 499583a + b1c0857 commit 9181741
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libsyntax/parse/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2469,7 +2469,7 @@ impl<'a> Parser<'a> {
}

/// Parse a block or unsafe block
pub fn parse_block_expr(&mut self, opt_label: Option<Label>,
fn parse_block_expr(&mut self, opt_label: Option<Label>,
lo: Span, blk_mode: BlockCheckMode,
outer_attrs: ThinVec<Attribute>)
-> PResult<'a, P<Expr>> {
Expand Down Expand Up @@ -4572,7 +4572,7 @@ impl<'a> Parser<'a> {
}

/// Parse a block. No inner attrs are allowed.
crate fn parse_block(&mut self) -> PResult<'a, P<Block>> {
pub fn parse_block(&mut self) -> PResult<'a, P<Block>> {
maybe_whole!(self, NtBlock, |x| x);

let lo = self.span;
Expand Down

0 comments on commit 9181741

Please sign in to comment.