diff --git a/compiler/rustc_passes/src/check_attr.rs b/compiler/rustc_passes/src/check_attr.rs index cfd07e7e5600..fe20b9cba2e8 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,