about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/validate_attr.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-07-14 04:29:53 +0000
committerbors <bors@rust-lang.org>2025-07-14 04:29:53 +0000
commitad635e5d0696076b4412dd7db7b7e8c0867d6e0c (patch)
treea7ec0ac87282349ff496a05ad5de004292dad224 /compiler/rustc_parse/src/validate_attr.rs
parent9c3064e131f4939cc95a29bb11413c49bbda1491 (diff)
parent68066b90b84b52fa4907c12e708b8418317e2a5d (diff)
downloadrust-ad635e5d0696076b4412dd7db7b7e8c0867d6e0c.tar.gz
rust-ad635e5d0696076b4412dd7db7b7e8c0867d6e0c.zip
Auto merge of #143779 - JonathanBrouwer:automatically_derived_parser, r=oli-obk
Port `#[automatically_derived]` to the new attribute parsing infrastructure

Ports `#[automatically_derived]` to the new attribute parsing infrastructure for https://github.com/rust-lang/rust/issues/131229#issuecomment-2971351163

r? `@oli-obk`
cc `@jdonszelmann`
Diffstat (limited to 'compiler/rustc_parse/src/validate_attr.rs')
-rw-r--r--compiler/rustc_parse/src/validate_attr.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_parse/src/validate_attr.rs b/compiler/rustc_parse/src/validate_attr.rs
index bb5c1e0e653..3e80af82bef 100644
--- a/compiler/rustc_parse/src/validate_attr.rs
+++ b/compiler/rustc_parse/src/validate_attr.rs
@@ -316,6 +316,7 @@ pub fn check_builtin_meta_item(
                 | sym::rustc_layout_scalar_valid_range_start
                 | sym::rustc_layout_scalar_valid_range_end
                 | sym::no_implicit_prelude
+                | sym::automatically_derived
         ) {
             return;
         }