From cd613fd63d1f44e37a9429fd331ea866055a116d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20K=C3=BCber?= Date: Wed, 4 Dec 2024 06:05:29 +0000 Subject: [PATCH] Make `rustc_cfg_placeholder` compatible with `naked` --- compiler/rustc_passes/src/check_attr.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/rustc_passes/src/check_attr.rs b/compiler/rustc_passes/src/check_attr.rs index cfd07e7e56001..9b8cfbc80515d 100644 --- a/compiler/rustc_passes/src/check_attr.rs +++ b/compiler/rustc_passes/src/check_attr.rs @@ -523,6 +523,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> { // conditional compilation sym::cfg, sym::cfg_attr, + sym::rustc_cfg_placeholder // testing (allowed here so better errors can be generated in `rustc_builtin_macros::test`) sym::test, sym::ignore,