allow various clippy lint groups

This commit is contained in:
Niko Matsakis 2024-04-05 05:40:58 -04:00
parent 3257fa95a7
commit 82b672df3b
4 changed files with 6 additions and 3 deletions

View file

@ -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: ?Sized>(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;

View file

@ -192,7 +192,7 @@ impl InputStruct {
}
} else {
parse_quote! {
#[allow(dead_code)]
#[allow(dead_code, clippy::pedantic, clippy::complexity, clippy::style)]
impl #ident {
#constructor

View file

@ -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)*

View file

@ -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
{