about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/expr.rs
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2023-04-29 14:57:26 +0200
committerest31 <MTest31@outlook.com>2023-05-05 21:44:48 +0200
commit83b4df4e611961373ffaf4bfcd9f8940a4f37c09 (patch)
tree85d737c61f42bb70cef306a56292c83abcf25ab9 /compiler/rustc_parse/src/parser/expr.rs
parent5eb29c7f49c2d99e9bfc778f30984f7fdcf5fc08 (diff)
downloadrust-83b4df4e611961373ffaf4bfcd9f8940a4f37c09.tar.gz
rust-83b4df4e611961373ffaf4bfcd9f8940a4f37c09.zip
Add feature gate
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
-rw-r--r--compiler/rustc_parse/src/parser/expr.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs
index b84a088a7b7..c1095512bd4 100644
--- a/compiler/rustc_parse/src/parser/expr.rs
+++ b/compiler/rustc_parse/src/parser/expr.rs
@@ -1782,6 +1782,7 @@ impl<'a> Parser<'a> {
                 .into_diagnostic(&self.sess.span_diagnostic);
             return Err(err);
         };
+        self.sess.gated_spans.gate(sym::builtin_syntax, ident.span);
         self.bump();
 
         self.expect(&TokenKind::OpenDelim(Delimiter::Parenthesis))?;