1
Fork 0

Follow up on https://github.com/rust-lang/rust/pull/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:
PSeitz 2018-06-14 10:18:44 +02:00 committed by Pascal Seitz
parent 68cee8bb36
commit b1c0857f62

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;