Stabilise inline_const
This commit is contained in:
parent
e9362896e0
commit
94c1920497
16 changed files with 11 additions and 68 deletions
|
@ -1252,8 +1252,6 @@ impl<'a> Parser<'a> {
|
|||
fn parse_const_block(&mut self, span: Span, pat: bool) -> PResult<'a, P<Expr>> {
|
||||
if pat {
|
||||
self.psess.gated_spans.gate(sym::inline_const_pat, span);
|
||||
} else {
|
||||
self.psess.gated_spans.gate(sym::inline_const, span);
|
||||
}
|
||||
self.eat_keyword(kw::Const);
|
||||
let (attrs, blk) = self.parse_inner_attrs_and_block()?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue