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:
commit
9181741ede
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user