Skip to content

Commit 4dbe2ac

Browse files
committed
Re-add mistakenly removed code
1 parent f19fc49 commit 4dbe2ac

File tree

1 file changed

+2
-0
lines changed
  • compiler/rustc_parse/src/parser

1 file changed

+2
-0
lines changed

compiler/rustc_parse/src/parser/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -890,6 +890,8 @@ impl<'a> Parser<'a> {
890890

891891
/// Parses inline const expressions. The `const` keyword was already eaten.
892892
fn parse_const_block(&mut self, span: Span) -> PResult<'a, P<Expr>> {
893+
self.sess.gated_spans.gate(sym::inline_const, span);
894+
893895
let blk = self.parse_block()?;
894896
let anon_const = AnonConst {
895897
id: DUMMY_NODE_ID,

0 commit comments

Comments
 (0)