diff options
| author | PSeitz <PSeitz@users.noreply.github.com> | 2018-06-14 10:18:44 +0200 |
|---|---|---|
| committer | Pascal Seitz <pascal.seitz@gmail.com> | 2018-06-16 08:00:14 +0200 |
| commit | b1c0857f6246c3359c1e40a2a39d938f267ee2a4 (patch) | |
| tree | da9c9e50effb7d325a396799efce4e99097f1ccf /src/libsyntax/parse | |
| parent | 68cee8bb36d8cf0c5fe1e9b7ffa0bf096ac5bd68 (diff) | |
| download | rust-b1c0857f6246c3359c1e40a2a39d938f267ee2a4.tar.gz rust-b1c0857f6246c3359c1e40a2a39d938f267ee2a4.zip | |
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.
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index e1f920c16fd..e44f3d14d55 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -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; |
