diff --git a/turbopack/crates/turbo-tasks-macros/src/assert_fields.rs b/turbopack/crates/turbo-tasks-macros/src/assert_fields.rs index d26b081f509c1..34a0c69bab29e 100644 --- a/turbopack/crates/turbo-tasks-macros/src/assert_fields.rs +++ b/turbopack/crates/turbo-tasks-macros/src/assert_fields.rs @@ -40,12 +40,12 @@ pub fn assert_fields_impl_trait( } }); quote! { + #[allow(non_snake_case)] + #[allow(clippy::type_complexity)] const _: fn() = || { // create this struct just to hold onto our generics... // we reproduce the field types here to ensure any generics get used struct #assertion_struct_ident #impl_generics (#(#field_types),*) #where_clause; - - #[allow(non_snake_case)] impl #impl_generics #assertion_struct_ident #ty_generics #where_clause { fn #assertion_fn_ident< Expected: #trait_path + ?Sized