From f8ac78abd6555fa99f580fa9a57da36a1d0bc2b2 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Wed, 15 Oct 2025 04:17:47 -0700 Subject: [PATCH] Remove extraneous #[automatically_derived] annotations that are causing warnings as reported by Tobias --- crates/fayalite-proc-macros-impl/src/hdl_bundle.rs | 1 - crates/fayalite-proc-macros-impl/src/hdl_enum.rs | 4 ---- 2 files changed, 5 deletions(-) diff --git a/crates/fayalite-proc-macros-impl/src/hdl_bundle.rs b/crates/fayalite-proc-macros-impl/src/hdl_bundle.rs index 538c2da..09189bd 100644 --- a/crates/fayalite-proc-macros-impl/src/hdl_bundle.rs +++ b/crates/fayalite-proc-macros-impl/src/hdl_bundle.rs @@ -345,7 +345,6 @@ impl ToTokens for Builder { } })); quote_spanned! {self.ident.span()=> - #[automatically_derived] #[allow(non_camel_case_types, non_snake_case, dead_code)] impl #impl_generics #unfilled_ty #where_clause diff --git a/crates/fayalite-proc-macros-impl/src/hdl_enum.rs b/crates/fayalite-proc-macros-impl/src/hdl_enum.rs index e5cbe27..47a5df1 100644 --- a/crates/fayalite-proc-macros-impl/src/hdl_enum.rs +++ b/crates/fayalite-proc-macros-impl/src/hdl_enum.rs @@ -549,7 +549,6 @@ impl ToTokens for ParsedEnum { for (index, ParsedVariant { ident, field, .. }) in variants.iter().enumerate() { if let Some(ParsedVariantField { ty, .. }) = field { quote_spanned! {span=> - #[automatically_derived] impl #impl_generics #target #type_generics #where_clause { @@ -571,7 +570,6 @@ impl ToTokens for ParsedEnum { ) } } - #[automatically_derived] impl #impl_generics #sim_builder_ident #type_generics #where_clause { @@ -593,7 +591,6 @@ impl ToTokens for ParsedEnum { } } else { quote_spanned! {span=> - #[automatically_derived] impl #impl_generics #target #type_generics #where_clause { @@ -608,7 +605,6 @@ impl ToTokens for ParsedEnum { ) } } - #[automatically_derived] impl #impl_generics #sim_builder_ident #type_generics #where_clause {