diff --git a/components/salsa-2022-macros/src/accumulator.rs b/components/salsa-2022-macros/src/accumulator.rs index 2596b3d5..31bdf11a 100644 --- a/components/salsa-2022-macros/src/accumulator.rs +++ b/components/salsa-2022-macros/src/accumulator.rs @@ -95,6 +95,7 @@ fn struct_item_out( fn inherent_impl(args: &Args, struct_ty: &syn::Type, data_ty: &syn::Type) -> syn::ItemImpl { let jar_ty = args.jar_ty(); parse_quote_spanned! { struct_ty.span() => + #[allow(dead_code, clippy::pedantic, clippy::complexity, clippy::style)] impl #struct_ty { pub fn push(db: &DB, data: #data_ty) where @@ -116,6 +117,7 @@ fn ingredients_for_impl( let jar_ty = args.jar_ty(); let debug_name = crate::literal(struct_name); parse_quote_spanned! { struct_name.span() => + #[allow(dead_code, clippy::pedantic, clippy::complexity, clippy::style)] impl salsa::storage::IngredientsFor for #struct_name { type Ingredients = salsa::accumulator::AccumulatorIngredient<#data_ty>; type Jar = #jar_ty; @@ -143,6 +145,7 @@ fn ingredients_for_impl( fn accumulator_impl(args: &Args, struct_ty: &syn::Type, data_ty: &syn::Type) -> syn::ItemImpl { let jar_ty = args.jar_ty(); parse_quote_spanned! { struct_ty.span() => + #[allow(dead_code, clippy::pedantic, clippy::complexity, clippy::style)] impl salsa::accumulator::Accumulator for #struct_ty { type Data = #data_ty; type Jar = #jar_ty; diff --git a/components/salsa-2022-macros/src/input.rs b/components/salsa-2022-macros/src/input.rs index 9c059c8a..c3a0276b 100644 --- a/components/salsa-2022-macros/src/input.rs +++ b/components/salsa-2022-macros/src/input.rs @@ -192,7 +192,7 @@ impl InputStruct { } } else { parse_quote! { - #[allow(dead_code)] + #[allow(dead_code, clippy::pedantic, clippy::complexity, clippy::style)] impl #ident { #constructor diff --git a/components/salsa-2022-macros/src/interned.rs b/components/salsa-2022-macros/src/interned.rs index a944b1f5..c0bcbf0f 100644 --- a/components/salsa-2022-macros/src/interned.rs +++ b/components/salsa-2022-macros/src/interned.rs @@ -131,7 +131,7 @@ impl InternedStruct { }; parse_quote! { - #[allow(dead_code)] + #[allow(dead_code, clippy::pedantic, clippy::complexity, clippy::style)] impl #id_ident { #(#field_getters)* diff --git a/components/salsa-2022-macros/src/tracked_struct.rs b/components/salsa-2022-macros/src/tracked_struct.rs index 872f29e9..85afbbe0 100644 --- a/components/salsa-2022-macros/src/tracked_struct.rs +++ b/components/salsa-2022-macros/src/tracked_struct.rs @@ -194,7 +194,7 @@ impl TrackedStruct { let constructor_name = self.constructor_name(); parse_quote! { - #[allow(clippy::too_many_arguments)] + #[allow(dead_code, clippy::pedantic, clippy::complexity, clippy::style)] impl #ident { pub fn #constructor_name(__db: &#db_dyn_ty, #(#field_names: #field_tys,)*) -> Self {