Skip to content

Commit b1c0857

Browse files
committed
Follow up on #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.
1 parent 68cee8b commit b1c0857

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libsyntax/parse/parser.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2469,7 +2469,7 @@ impl<'a> Parser<'a> {
24692469
}
24702470

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

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

45784578
let lo = self.span;

0 commit comments

Comments
 (0)