Split inline const to two feature gates

This commit is contained in:
Gary Guo 2021-11-22 16:25:28 +00:00
parent cebd2dda1d
commit 6d61d87b22
21 changed files with 67 additions and 31 deletions

View file

@ -1243,7 +1243,7 @@ impl<'a> Parser<'a> {
} else if self.eat_keyword(kw::Unsafe) {
self.parse_block_expr(None, lo, BlockCheckMode::Unsafe(ast::UserProvided), attrs)
} else if self.check_inline_const(0) {
self.parse_const_block(lo.to(self.token.span))
self.parse_const_block(lo.to(self.token.span), false)
} else if self.is_do_catch_block() {
self.recover_do_catch(attrs)
} else if self.is_try_block() {