about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser
diff options
context:
space:
mode:
authorFolkert de Vries <folkert@folkertdev.nl>2024-08-29 15:33:34 +0200
committerFolkert de Vries <folkert@folkertdev.nl>2024-09-14 18:07:06 +0200
commita528f4ecd99cd5e1fb4454fc383688eccd4e34e1 (patch)
tree82359969ac2cc38b23170b3218a675a27860f4a0 /compiler/rustc_parse/src/parser
parent02b1be16c65e5716ade771afde7116ebdfbf9b4a (diff)
downloadrust-a528f4ecd99cd5e1fb4454fc383688eccd4e34e1.tar.gz
rust-a528f4ecd99cd5e1fb4454fc383688eccd4e34e1.zip
stabilize `const_extern_fn`
Diffstat (limited to 'compiler/rustc_parse/src/parser')
-rw-r--r--compiler/rustc_parse/src/parser/ty.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/compiler/rustc_parse/src/parser/ty.rs b/compiler/rustc_parse/src/parser/ty.rs
index dd1cc75c7ff..66019ffbc0a 100644
--- a/compiler/rustc_parse/src/parser/ty.rs
+++ b/compiler/rustc_parse/src/parser/ty.rs
@@ -607,9 +607,6 @@ impl<'a> Parser<'a> {
         let decl = self.parse_fn_decl(|_| false, AllowPlus::No, recover_return_sign)?;
         let whole_span = lo.to(self.prev_token.span);
         if let ast::Const::Yes(span) = constness {
-            // If we ever start to allow `const fn()`, then update
-            // feature gating for `#![feature(const_extern_fn)]` to
-            // cover it.
             self.dcx().emit_err(FnPointerCannotBeConst { span: whole_span, qualifier: span });
         }
         if let Some(ast::CoroutineKind::Async { span, .. }) = coroutine_kind {