From 6fa246a0546fc678c4812ccb59306b6b264c27a0 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 1 Sep 2024 21:20:25 -0700 Subject: [PATCH] Ignore nightly's new elided_named_lifetimes lint in generated code --- src/expand.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/expand.rs b/src/expand.rs index 5bbf2bd..1eb27a2 100644 --- a/src/expand.rs +++ b/src/expand.rs @@ -125,6 +125,7 @@ pub fn expand(input: &mut Item, is_local: bool) { fn lint_suppress_with_body() -> Attribute { parse_quote! { #[allow( + elided_named_lifetimes, clippy::async_yields_async, clippy::diverging_sub_expression, clippy::let_unit_value, @@ -140,6 +141,7 @@ fn lint_suppress_with_body() -> Attribute { fn lint_suppress_without_body() -> Attribute { parse_quote! { #[allow( + elided_named_lifetimes, clippy::type_complexity, clippy::type_repetition_in_bounds )]