Rename parse_const_expr to parse_const_block
This commit is contained in:
parent
500ddc5efd
commit
954b5a81b4
3 changed files with 3 additions and 3 deletions
|
@ -315,7 +315,7 @@ impl<'a> Parser<'a> {
|
|||
PatKind::Box(pat)
|
||||
} else if self.check_inline_const() {
|
||||
// Parse `const pat`
|
||||
PatKind::Lit(self.parse_const_expr(lo.to(self.token.span))?)
|
||||
PatKind::Lit(self.parse_const_block(lo.to(self.token.span))?)
|
||||
} else if self.can_be_ident_pat() {
|
||||
// Parse `ident @ pat`
|
||||
// This can give false positives and parse nullary enums,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue