We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68cee8b commit b1c0857Copy full SHA for b1c0857
src/libsyntax/parse/parser.rs
@@ -2469,7 +2469,7 @@ impl<'a> Parser<'a> {
2469
}
2470
2471
/// Parse a block or unsafe block
2472
- pub fn parse_block_expr(&mut self, opt_label: Option<Label>,
+ fn parse_block_expr(&mut self, opt_label: Option<Label>,
2473
lo: Span, blk_mode: BlockCheckMode,
2474
outer_attrs: ThinVec<Attribute>)
2475
-> PResult<'a, P<Expr>> {
@@ -4572,7 +4572,7 @@ impl<'a> Parser<'a> {
4572
4573
4574
/// Parse a block. No inner attrs are allowed.
4575
- crate fn parse_block(&mut self) -> PResult<'a, P<Block>> {
+ pub fn parse_block(&mut self) -> PResult<'a, P<Block>> {
4576
maybe_whole!(self, NtBlock, |x| x);
4577
4578
let lo = self.span;
0 commit comments