We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f19fc49 commit 4dbe2acCopy full SHA for 4dbe2ac
compiler/rustc_parse/src/parser/mod.rs
@@ -890,6 +890,8 @@ impl<'a> Parser<'a> {
890
891
/// Parses inline const expressions. The `const` keyword was already eaten.
892
fn parse_const_block(&mut self, span: Span) -> PResult<'a, P<Expr>> {
893
+ self.sess.gated_spans.gate(sym::inline_const, span);
894
+
895
let blk = self.parse_block()?;
896
let anon_const = AnonConst {
897
id: DUMMY_NODE_ID,
0 commit comments