about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/validate_attr.rs
diff options
context:
space:
mode:
authorJonathan Brouwer <jonathantbrouwer@gmail.com>2025-07-11 12:01:11 +0200
committerJonathan Brouwer <jonathantbrouwer@gmail.com>2025-07-12 17:48:50 +0200
commitef82007ed7b7833e3efdec0d80712849048c5c1f (patch)
tree76a8c855164384dd5daa3c36a99fff02aacc00c3 /compiler/rustc_parse/src/validate_attr.rs
parent915e5352448afb3c24f89117468935283bc7d2cf (diff)
downloadrust-ef82007ed7b7833e3efdec0d80712849048c5c1f.tar.gz
rust-ef82007ed7b7833e3efdec0d80712849048c5c1f.zip
Port `#[automatically_derived]` to the new attribute parsing infrastructure
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
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;
         }