Auto merge of #51549 - PSeitz:patch-1, r=kennytm

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.
This commit is contained in:
bors 2018-06-17 14:05:43 +00:00
commit 9181741ede

View File

@ -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>> {
@ -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;