From 5bf562b8a13cec173f4c55fc6d48c49baef155b1 Mon Sep 17 00:00:00 2001 From: daxpedda Date: Thu, 25 Jan 2024 13:07:23 +0100 Subject: [PATCH] Add `allow(clippy::missing_docs_in_private_items)` --- pin-project-internal/src/pin_project/derive.rs | 1 + tests/expand/multifields/enum.expanded.rs | 1 + tests/expand/multifields/struct.expanded.rs | 1 + tests/expand/multifields/tuple_struct.expanded.rs | 1 + tests/expand/naming/enum-all.expanded.rs | 1 + tests/expand/naming/enum-own.expanded.rs | 1 + tests/expand/naming/struct-all.expanded.rs | 1 + tests/expand/naming/struct-own.expanded.rs | 1 + tests/expand/naming/tuple_struct-all.expanded.rs | 1 + tests/expand/naming/tuple_struct-own.expanded.rs | 1 + tests/expand/project_replace/enum.expanded.rs | 1 + tests/expand/project_replace/struct.expanded.rs | 1 + tests/expand/project_replace/tuple_struct.expanded.rs | 1 + 13 files changed, 13 insertions(+) diff --git a/pin-project-internal/src/pin_project/derive.rs b/pin-project-internal/src/pin_project/derive.rs index 2cd3be20..4dfc9a6f 100644 --- a/pin-project-internal/src/pin_project/derive.rs +++ b/pin-project-internal/src/pin_project/derive.rs @@ -148,6 +148,7 @@ fn proj_allowed_lints(cx: &Context<'_>) -> (TokenStream, TokenStream, TokenStrea let proj_own = quote! { #proj_own_allowed_lints #[allow(dead_code)] // This lint warns unused fields/variants. + #[allow(clippy::missing_docs_in_private_items)] #large_enum_variant }; (proj_mut, proj_ref, proj_own) diff --git a/tests/expand/multifields/enum.expanded.rs b/tests/expand/multifields/enum.expanded.rs index 003f1c7e..e2e85953 100644 --- a/tests/expand/multifields/enum.expanded.rs +++ b/tests/expand/multifields/enum.expanded.rs @@ -82,6 +82,7 @@ where #[allow(clippy::redundant_pub_crate)] #[allow(clippy::type_repetition_in_bounds)] #[allow(dead_code)] +#[allow(clippy::missing_docs_in_private_items)] #[allow(variant_size_differences)] #[allow(clippy::large_enum_variant)] enum EnumProjOwn { diff --git a/tests/expand/multifields/struct.expanded.rs b/tests/expand/multifields/struct.expanded.rs index c3e7a02e..066a8d59 100644 --- a/tests/expand/multifields/struct.expanded.rs +++ b/tests/expand/multifields/struct.expanded.rs @@ -48,6 +48,7 @@ const _: () = { unpinned2: &'pin (U), } #[allow(dead_code)] + #[allow(clippy::missing_docs_in_private_items)] struct __StructProjectionOwned { pinned1: ::pin_project::__private::PhantomData, pinned2: ::pin_project::__private::PhantomData, diff --git a/tests/expand/multifields/tuple_struct.expanded.rs b/tests/expand/multifields/tuple_struct.expanded.rs index 3931e09c..36480546 100644 --- a/tests/expand/multifields/tuple_struct.expanded.rs +++ b/tests/expand/multifields/tuple_struct.expanded.rs @@ -39,6 +39,7 @@ const _: () = { where TupleStruct: 'pin; #[allow(dead_code)] + #[allow(clippy::missing_docs_in_private_items)] struct __TupleStructProjectionOwned( ::pin_project::__private::PhantomData, ::pin_project::__private::PhantomData, diff --git a/tests/expand/naming/enum-all.expanded.rs b/tests/expand/naming/enum-all.expanded.rs index 8f7c8aff..d3197ff4 100644 --- a/tests/expand/naming/enum-all.expanded.rs +++ b/tests/expand/naming/enum-all.expanded.rs @@ -59,6 +59,7 @@ where #[allow(clippy::redundant_pub_crate)] #[allow(clippy::type_repetition_in_bounds)] #[allow(dead_code)] +#[allow(clippy::missing_docs_in_private_items)] #[allow(variant_size_differences)] #[allow(clippy::large_enum_variant)] enum ProjOwn { diff --git a/tests/expand/naming/enum-own.expanded.rs b/tests/expand/naming/enum-own.expanded.rs index 5fc04308..908b74da 100644 --- a/tests/expand/naming/enum-own.expanded.rs +++ b/tests/expand/naming/enum-own.expanded.rs @@ -16,6 +16,7 @@ enum Enum { #[allow(clippy::redundant_pub_crate)] #[allow(clippy::type_repetition_in_bounds)] #[allow(dead_code)] +#[allow(clippy::missing_docs_in_private_items)] #[allow(variant_size_differences)] #[allow(clippy::large_enum_variant)] enum ProjOwn { diff --git a/tests/expand/naming/struct-all.expanded.rs b/tests/expand/naming/struct-all.expanded.rs index 36c12304..090074ec 100644 --- a/tests/expand/naming/struct-all.expanded.rs +++ b/tests/expand/naming/struct-all.expanded.rs @@ -54,6 +54,7 @@ where #[allow(clippy::redundant_pub_crate)] #[allow(clippy::type_repetition_in_bounds)] #[allow(dead_code)] +#[allow(clippy::missing_docs_in_private_items)] struct ProjOwn { pinned: ::pin_project::__private::PhantomData, unpinned: U, diff --git a/tests/expand/naming/struct-own.expanded.rs b/tests/expand/naming/struct-own.expanded.rs index b2f6079d..94c4ab5b 100644 --- a/tests/expand/naming/struct-own.expanded.rs +++ b/tests/expand/naming/struct-own.expanded.rs @@ -16,6 +16,7 @@ struct Struct { #[allow(clippy::redundant_pub_crate)] #[allow(clippy::type_repetition_in_bounds)] #[allow(dead_code)] +#[allow(clippy::missing_docs_in_private_items)] struct ProjOwn { pinned: ::pin_project::__private::PhantomData, unpinned: U, diff --git a/tests/expand/naming/tuple_struct-all.expanded.rs b/tests/expand/naming/tuple_struct-all.expanded.rs index 441da9cf..57459066 100644 --- a/tests/expand/naming/tuple_struct-all.expanded.rs +++ b/tests/expand/naming/tuple_struct-all.expanded.rs @@ -48,6 +48,7 @@ where #[allow(clippy::redundant_pub_crate)] #[allow(clippy::type_repetition_in_bounds)] #[allow(dead_code)] +#[allow(clippy::missing_docs_in_private_items)] struct ProjOwn(::pin_project::__private::PhantomData, U); #[allow(box_pointers)] #[allow(deprecated)] diff --git a/tests/expand/naming/tuple_struct-own.expanded.rs b/tests/expand/naming/tuple_struct-own.expanded.rs index c85f05da..4dc3bcbf 100644 --- a/tests/expand/naming/tuple_struct-own.expanded.rs +++ b/tests/expand/naming/tuple_struct-own.expanded.rs @@ -12,6 +12,7 @@ struct TupleStruct(#[pin] T, U); #[allow(clippy::redundant_pub_crate)] #[allow(clippy::type_repetition_in_bounds)] #[allow(dead_code)] +#[allow(clippy::missing_docs_in_private_items)] struct ProjOwn(::pin_project::__private::PhantomData, U); #[allow(box_pointers)] #[allow(deprecated)] diff --git a/tests/expand/project_replace/enum.expanded.rs b/tests/expand/project_replace/enum.expanded.rs index 230f6a98..d41d71c8 100644 --- a/tests/expand/project_replace/enum.expanded.rs +++ b/tests/expand/project_replace/enum.expanded.rs @@ -16,6 +16,7 @@ enum Enum { #[allow(clippy::redundant_pub_crate)] #[allow(clippy::type_repetition_in_bounds)] #[allow(dead_code)] +#[allow(clippy::missing_docs_in_private_items)] #[allow(variant_size_differences)] #[allow(clippy::large_enum_variant)] enum EnumProjOwn { diff --git a/tests/expand/project_replace/struct.expanded.rs b/tests/expand/project_replace/struct.expanded.rs index 126640ad..09fb8c4e 100644 --- a/tests/expand/project_replace/struct.expanded.rs +++ b/tests/expand/project_replace/struct.expanded.rs @@ -41,6 +41,7 @@ const _: () = { unpinned: &'pin (U), } #[allow(dead_code)] + #[allow(clippy::missing_docs_in_private_items)] struct __StructProjectionOwned { pinned: ::pin_project::__private::PhantomData, unpinned: U, diff --git a/tests/expand/project_replace/tuple_struct.expanded.rs b/tests/expand/project_replace/tuple_struct.expanded.rs index fced02c0..a6d40e71 100644 --- a/tests/expand/project_replace/tuple_struct.expanded.rs +++ b/tests/expand/project_replace/tuple_struct.expanded.rs @@ -35,6 +35,7 @@ const _: () = { where TupleStruct: 'pin; #[allow(dead_code)] + #[allow(clippy::missing_docs_in_private_items)] struct __TupleStructProjectionOwned( ::pin_project::__private::PhantomData, U,