From 8a7859bdf155a5cb09c815c01419c9c333f5dbf4 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Tue, 22 Sep 2020 13:58:59 +0900 Subject: [PATCH] Prepare for uplift of drop-bounds lint --- examples/enum-default-expanded.rs | 4 ++-- examples/not_unpin-expanded.rs | 4 ++-- examples/pinned_drop-expanded.rs | 2 +- examples/project_replace-expanded.rs | 4 ++-- examples/struct-default-expanded.rs | 4 ++-- examples/unsafe_unpin-expanded.rs | 4 ++-- pin-project-internal/src/pin_project/derive.rs | 2 +- tests/expand/tests/expand/default-enum.expanded.rs | 2 +- tests/expand/tests/expand/default-struct.expanded.rs | 2 +- tests/expand/tests/expand/default-tuple_struct.expanded.rs | 2 +- tests/expand/tests/expand/naming-enum-all.expanded.rs | 2 +- tests/expand/tests/expand/naming-enum-mut.expanded.rs | 2 +- tests/expand/tests/expand/naming-enum-none.expanded.rs | 2 +- tests/expand/tests/expand/naming-enum-own.expanded.rs | 2 +- tests/expand/tests/expand/naming-enum-ref.expanded.rs | 2 +- tests/expand/tests/expand/naming-struct-all.expanded.rs | 2 +- tests/expand/tests/expand/naming-struct-mut.expanded.rs | 2 +- tests/expand/tests/expand/naming-struct-none.expanded.rs | 2 +- tests/expand/tests/expand/naming-struct-own.expanded.rs | 2 +- tests/expand/tests/expand/naming-struct-ref.expanded.rs | 2 +- tests/expand/tests/expand/naming-tuple_struct-all.expanded.rs | 2 +- tests/expand/tests/expand/naming-tuple_struct-mut.expanded.rs | 2 +- .../expand/tests/expand/naming-tuple_struct-none.expanded.rs | 2 +- tests/expand/tests/expand/naming-tuple_struct-own.expanded.rs | 2 +- tests/expand/tests/expand/naming-tuple_struct-ref.expanded.rs | 2 +- tests/expand/tests/expand/not_unpin-enum.expanded.rs | 2 +- tests/expand/tests/expand/not_unpin-struct.expanded.rs | 2 +- tests/expand/tests/expand/not_unpin-tuple_struct.expanded.rs | 2 +- tests/expand/tests/expand/project_replace-enum.expanded.rs | 2 +- tests/expand/tests/expand/project_replace-struct.expanded.rs | 2 +- .../tests/expand/project_replace-tuple_struct.expanded.rs | 2 +- tests/expand/tests/expand/pub-enum.expanded.rs | 2 +- tests/expand/tests/expand/pub-struct.expanded.rs | 2 +- tests/expand/tests/expand/pub-tuple_struct.expanded.rs | 2 +- tests/expand/tests/expand/unsafe_unpin-enum.expanded.rs | 2 +- tests/expand/tests/expand/unsafe_unpin-struct.expanded.rs | 2 +- .../expand/tests/expand/unsafe_unpin-tuple_struct.expanded.rs | 2 +- 37 files changed, 42 insertions(+), 42 deletions(-) diff --git a/examples/enum-default-expanded.rs b/examples/enum-default-expanded.rs index e651498f..6553a992 100644 --- a/examples/enum-default-expanded.rs +++ b/examples/enum-default-expanded.rs @@ -14,7 +14,7 @@ // fn main() {} // ``` -#![allow(dead_code, unused_imports, unused_parens)] +#![allow(dead_code, unused_imports, unused_parens, unknown_lints, renamed_and_removed_lints)] #![allow(clippy::just_underscores_and_digits)] use pin_project::pin_project; @@ -89,7 +89,7 @@ const _: () = { // // See ./struct-default-expanded.rs for details. trait EnumMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl EnumMustNotImplDrop for T {} impl EnumMustNotImplDrop for Enum {} impl ::pin_project::__private::PinnedDrop for Enum { diff --git a/examples/not_unpin-expanded.rs b/examples/not_unpin-expanded.rs index 8842c420..10c53df4 100644 --- a/examples/not_unpin-expanded.rs +++ b/examples/not_unpin-expanded.rs @@ -18,7 +18,7 @@ // } // ``` -#![allow(dead_code, unused_imports, unused_parens)] +#![allow(dead_code, unused_imports, unused_parens, unknown_lints, renamed_and_removed_lints)] use pin_project::pin_project; @@ -111,7 +111,7 @@ const _: () = { // // See ./struct-default-expanded.rs for details. trait StructMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl StructMustNotImplDrop for T {} impl StructMustNotImplDrop for Struct {} impl ::pin_project::__private::PinnedDrop for Struct { diff --git a/examples/pinned_drop-expanded.rs b/examples/pinned_drop-expanded.rs index 0468a3fb..b9bd2ddb 100644 --- a/examples/pinned_drop-expanded.rs +++ b/examples/pinned_drop-expanded.rs @@ -21,7 +21,7 @@ // fn main() {} // ``` -#![allow(dead_code, unused_imports, unused_parens)] +#![allow(dead_code, unused_imports, unused_parens, unknown_lints, renamed_and_removed_lints)] use pin_project::{pin_project, pinned_drop}; use std::pin::Pin; diff --git a/examples/project_replace-expanded.rs b/examples/project_replace-expanded.rs index 39c0d4c9..ef42ddb6 100644 --- a/examples/project_replace-expanded.rs +++ b/examples/project_replace-expanded.rs @@ -15,7 +15,7 @@ // fn main() {} // ``` -#![allow(dead_code, unused_imports, unused_parens)] +#![allow(dead_code, unused_imports, unused_parens, unknown_lints, renamed_and_removed_lints)] use pin_project::pin_project; @@ -152,7 +152,7 @@ const _: () = { // // See ./struct-default-expanded.rs for details. trait StructMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl StructMustNotImplDrop for T {} impl StructMustNotImplDrop for Struct {} impl ::pin_project::__private::PinnedDrop for Struct { diff --git a/examples/struct-default-expanded.rs b/examples/struct-default-expanded.rs index f3f27469..9e47d012 100644 --- a/examples/struct-default-expanded.rs +++ b/examples/struct-default-expanded.rs @@ -15,7 +15,7 @@ // fn main() {} // ``` -#![allow(dead_code, unused_imports, unused_parens)] +#![allow(dead_code, unused_imports, unused_parens, unknown_lints, renamed_and_removed_lints)] use pin_project::pin_project; @@ -138,7 +138,7 @@ const _: () = { // then apply to your type, causing a compile-time error due to // the conflict with the second impl. trait StructMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl StructMustNotImplDrop for T {} impl StructMustNotImplDrop for Struct {} // A dummy impl of `PinnedDrop`, to ensure that users don't accidentally diff --git a/examples/unsafe_unpin-expanded.rs b/examples/unsafe_unpin-expanded.rs index 0d3db57b..fdee8a63 100644 --- a/examples/unsafe_unpin-expanded.rs +++ b/examples/unsafe_unpin-expanded.rs @@ -17,7 +17,7 @@ // fn main() {} // ``` -#![allow(dead_code, unused_imports, unused_parens)] +#![allow(dead_code, unused_imports, unused_parens, unknown_lints, renamed_and_removed_lints)] use pin_project::{pin_project, UnsafeUnpin}; @@ -98,7 +98,7 @@ const _: () = { // // See ./struct-default-expanded.rs for details. trait StructMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl StructMustNotImplDrop for T {} impl StructMustNotImplDrop for Struct {} impl ::pin_project::__private::PinnedDrop for Struct { diff --git a/pin-project-internal/src/pin_project/derive.rs b/pin-project-internal/src/pin_project/derive.rs index fcb0a81d..688e1b15 100644 --- a/pin-project-internal/src/pin_project/derive.rs +++ b/pin-project-internal/src/pin_project/derive.rs @@ -1123,7 +1123,7 @@ impl<'a> Context<'a> { // which will then conflict with the explicit MustNotImplDrop impl below. // This will result in a compilation error, which is exactly what we want. trait #trait_ident {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl #trait_ident for T {} impl #impl_generics #trait_ident for #ident #ty_generics #where_clause {} diff --git a/tests/expand/tests/expand/default-enum.expanded.rs b/tests/expand/tests/expand/default-enum.expanded.rs index 4e2b441c..61f01320 100644 --- a/tests/expand/tests/expand/default-enum.expanded.rs +++ b/tests/expand/tests/expand/default-enum.expanded.rs @@ -103,7 +103,7 @@ const _: () = { } unsafe impl ::pin_project::UnsafeUnpin for Enum {} trait EnumMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl EnumMustNotImplDrop for T {} impl EnumMustNotImplDrop for Enum {} impl ::pin_project::__private::PinnedDrop for Enum { diff --git a/tests/expand/tests/expand/default-struct.expanded.rs b/tests/expand/tests/expand/default-struct.expanded.rs index c5b48bdd..a1fe04d3 100644 --- a/tests/expand/tests/expand/default-struct.expanded.rs +++ b/tests/expand/tests/expand/default-struct.expanded.rs @@ -80,7 +80,7 @@ const _: () = { } unsafe impl ::pin_project::UnsafeUnpin for Struct {} trait StructMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl StructMustNotImplDrop for T {} impl StructMustNotImplDrop for Struct {} impl ::pin_project::__private::PinnedDrop for Struct { diff --git a/tests/expand/tests/expand/default-tuple_struct.expanded.rs b/tests/expand/tests/expand/default-tuple_struct.expanded.rs index c3b1ec34..06aa4cb4 100644 --- a/tests/expand/tests/expand/default-tuple_struct.expanded.rs +++ b/tests/expand/tests/expand/default-tuple_struct.expanded.rs @@ -68,7 +68,7 @@ const _: () = { } unsafe impl ::pin_project::UnsafeUnpin for TupleStruct {} trait TupleStructMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl TupleStructMustNotImplDrop for T {} impl TupleStructMustNotImplDrop for TupleStruct {} impl ::pin_project::__private::PinnedDrop for TupleStruct { diff --git a/tests/expand/tests/expand/naming-enum-all.expanded.rs b/tests/expand/tests/expand/naming-enum-all.expanded.rs index fe02ee91..b4a43299 100644 --- a/tests/expand/tests/expand/naming-enum-all.expanded.rs +++ b/tests/expand/tests/expand/naming-enum-all.expanded.rs @@ -163,7 +163,7 @@ const _: () = { } unsafe impl ::pin_project::UnsafeUnpin for Enum {} trait EnumMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl EnumMustNotImplDrop for T {} impl EnumMustNotImplDrop for Enum {} impl ::pin_project::__private::PinnedDrop for Enum { diff --git a/tests/expand/tests/expand/naming-enum-mut.expanded.rs b/tests/expand/tests/expand/naming-enum-mut.expanded.rs index dc66ec7d..083d10f1 100644 --- a/tests/expand/tests/expand/naming-enum-mut.expanded.rs +++ b/tests/expand/tests/expand/naming-enum-mut.expanded.rs @@ -68,7 +68,7 @@ const _: () = { } unsafe impl ::pin_project::UnsafeUnpin for Enum {} trait EnumMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl EnumMustNotImplDrop for T {} impl EnumMustNotImplDrop for Enum {} impl ::pin_project::__private::PinnedDrop for Enum { diff --git a/tests/expand/tests/expand/naming-enum-none.expanded.rs b/tests/expand/tests/expand/naming-enum-none.expanded.rs index 3fae6327..6c7dc963 100644 --- a/tests/expand/tests/expand/naming-enum-none.expanded.rs +++ b/tests/expand/tests/expand/naming-enum-none.expanded.rs @@ -35,7 +35,7 @@ const _: () = { } unsafe impl ::pin_project::UnsafeUnpin for Enum {} trait EnumMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl EnumMustNotImplDrop for T {} impl EnumMustNotImplDrop for Enum {} impl ::pin_project::__private::PinnedDrop for Enum { diff --git a/tests/expand/tests/expand/naming-enum-own.expanded.rs b/tests/expand/tests/expand/naming-enum-own.expanded.rs index 6a999bfa..50829cc0 100644 --- a/tests/expand/tests/expand/naming-enum-own.expanded.rs +++ b/tests/expand/tests/expand/naming-enum-own.expanded.rs @@ -98,7 +98,7 @@ const _: () = { } unsafe impl ::pin_project::UnsafeUnpin for Enum {} trait EnumMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl EnumMustNotImplDrop for T {} impl EnumMustNotImplDrop for Enum {} impl ::pin_project::__private::PinnedDrop for Enum { diff --git a/tests/expand/tests/expand/naming-enum-ref.expanded.rs b/tests/expand/tests/expand/naming-enum-ref.expanded.rs index 2bbfaead..ca4ef0b9 100644 --- a/tests/expand/tests/expand/naming-enum-ref.expanded.rs +++ b/tests/expand/tests/expand/naming-enum-ref.expanded.rs @@ -69,7 +69,7 @@ const _: () = { } unsafe impl ::pin_project::UnsafeUnpin for Enum {} trait EnumMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl EnumMustNotImplDrop for T {} impl EnumMustNotImplDrop for Enum {} impl ::pin_project::__private::PinnedDrop for Enum { diff --git a/tests/expand/tests/expand/naming-struct-all.expanded.rs b/tests/expand/tests/expand/naming-struct-all.expanded.rs index 8f4dfdd0..86269d06 100644 --- a/tests/expand/tests/expand/naming-struct-all.expanded.rs +++ b/tests/expand/tests/expand/naming-struct-all.expanded.rs @@ -109,7 +109,7 @@ const _: () = { } unsafe impl ::pin_project::UnsafeUnpin for Struct {} trait StructMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl StructMustNotImplDrop for T {} impl StructMustNotImplDrop for Struct {} impl ::pin_project::__private::PinnedDrop for Struct { diff --git a/tests/expand/tests/expand/naming-struct-mut.expanded.rs b/tests/expand/tests/expand/naming-struct-mut.expanded.rs index 5d687acf..603803e1 100644 --- a/tests/expand/tests/expand/naming-struct-mut.expanded.rs +++ b/tests/expand/tests/expand/naming-struct-mut.expanded.rs @@ -78,7 +78,7 @@ const _: () = { } unsafe impl ::pin_project::UnsafeUnpin for Struct {} trait StructMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl StructMustNotImplDrop for T {} impl StructMustNotImplDrop for Struct {} impl ::pin_project::__private::PinnedDrop for Struct { diff --git a/tests/expand/tests/expand/naming-struct-none.expanded.rs b/tests/expand/tests/expand/naming-struct-none.expanded.rs index c5b48bdd..a1fe04d3 100644 --- a/tests/expand/tests/expand/naming-struct-none.expanded.rs +++ b/tests/expand/tests/expand/naming-struct-none.expanded.rs @@ -80,7 +80,7 @@ const _: () = { } unsafe impl ::pin_project::UnsafeUnpin for Struct {} trait StructMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl StructMustNotImplDrop for T {} impl StructMustNotImplDrop for Struct {} impl ::pin_project::__private::PinnedDrop for Struct { diff --git a/tests/expand/tests/expand/naming-struct-own.expanded.rs b/tests/expand/tests/expand/naming-struct-own.expanded.rs index eeb381bc..46ba743b 100644 --- a/tests/expand/tests/expand/naming-struct-own.expanded.rs +++ b/tests/expand/tests/expand/naming-struct-own.expanded.rs @@ -111,7 +111,7 @@ const _: () = { } unsafe impl ::pin_project::UnsafeUnpin for Struct {} trait StructMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl StructMustNotImplDrop for T {} impl StructMustNotImplDrop for Struct {} impl ::pin_project::__private::PinnedDrop for Struct { diff --git a/tests/expand/tests/expand/naming-struct-ref.expanded.rs b/tests/expand/tests/expand/naming-struct-ref.expanded.rs index 7f9d8779..0b4b61fe 100644 --- a/tests/expand/tests/expand/naming-struct-ref.expanded.rs +++ b/tests/expand/tests/expand/naming-struct-ref.expanded.rs @@ -80,7 +80,7 @@ const _: () = { } unsafe impl ::pin_project::UnsafeUnpin for Struct {} trait StructMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl StructMustNotImplDrop for T {} impl StructMustNotImplDrop for Struct {} impl ::pin_project::__private::PinnedDrop for Struct { diff --git a/tests/expand/tests/expand/naming-tuple_struct-all.expanded.rs b/tests/expand/tests/expand/naming-tuple_struct-all.expanded.rs index 5b2d1134..50f4342f 100644 --- a/tests/expand/tests/expand/naming-tuple_struct-all.expanded.rs +++ b/tests/expand/tests/expand/naming-tuple_struct-all.expanded.rs @@ -88,7 +88,7 @@ const _: () = { } unsafe impl ::pin_project::UnsafeUnpin for TupleStruct {} trait TupleStructMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl TupleStructMustNotImplDrop for T {} impl TupleStructMustNotImplDrop for TupleStruct {} impl ::pin_project::__private::PinnedDrop for TupleStruct { diff --git a/tests/expand/tests/expand/naming-tuple_struct-mut.expanded.rs b/tests/expand/tests/expand/naming-tuple_struct-mut.expanded.rs index f0182f38..92789a84 100644 --- a/tests/expand/tests/expand/naming-tuple_struct-mut.expanded.rs +++ b/tests/expand/tests/expand/naming-tuple_struct-mut.expanded.rs @@ -63,7 +63,7 @@ const _: () = { } unsafe impl ::pin_project::UnsafeUnpin for TupleStruct {} trait TupleStructMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl TupleStructMustNotImplDrop for T {} impl TupleStructMustNotImplDrop for TupleStruct {} impl ::pin_project::__private::PinnedDrop for TupleStruct { diff --git a/tests/expand/tests/expand/naming-tuple_struct-none.expanded.rs b/tests/expand/tests/expand/naming-tuple_struct-none.expanded.rs index c3b1ec34..06aa4cb4 100644 --- a/tests/expand/tests/expand/naming-tuple_struct-none.expanded.rs +++ b/tests/expand/tests/expand/naming-tuple_struct-none.expanded.rs @@ -68,7 +68,7 @@ const _: () = { } unsafe impl ::pin_project::UnsafeUnpin for TupleStruct {} trait TupleStructMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl TupleStructMustNotImplDrop for T {} impl TupleStructMustNotImplDrop for TupleStruct {} impl ::pin_project::__private::PinnedDrop for TupleStruct { diff --git a/tests/expand/tests/expand/naming-tuple_struct-own.expanded.rs b/tests/expand/tests/expand/naming-tuple_struct-own.expanded.rs index a7d3c39e..23e18e3d 100644 --- a/tests/expand/tests/expand/naming-tuple_struct-own.expanded.rs +++ b/tests/expand/tests/expand/naming-tuple_struct-own.expanded.rs @@ -96,7 +96,7 @@ const _: () = { } unsafe impl ::pin_project::UnsafeUnpin for TupleStruct {} trait TupleStructMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl TupleStructMustNotImplDrop for T {} impl TupleStructMustNotImplDrop for TupleStruct {} impl ::pin_project::__private::PinnedDrop for TupleStruct { diff --git a/tests/expand/tests/expand/naming-tuple_struct-ref.expanded.rs b/tests/expand/tests/expand/naming-tuple_struct-ref.expanded.rs index 552e6465..e116ffde 100644 --- a/tests/expand/tests/expand/naming-tuple_struct-ref.expanded.rs +++ b/tests/expand/tests/expand/naming-tuple_struct-ref.expanded.rs @@ -65,7 +65,7 @@ const _: () = { } unsafe impl ::pin_project::UnsafeUnpin for TupleStruct {} trait TupleStructMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl TupleStructMustNotImplDrop for T {} impl TupleStructMustNotImplDrop for TupleStruct {} impl ::pin_project::__private::PinnedDrop for TupleStruct { diff --git a/tests/expand/tests/expand/not_unpin-enum.expanded.rs b/tests/expand/tests/expand/not_unpin-enum.expanded.rs index d167802b..4bc95287 100644 --- a/tests/expand/tests/expand/not_unpin-enum.expanded.rs +++ b/tests/expand/tests/expand/not_unpin-enum.expanded.rs @@ -93,7 +93,7 @@ const _: () = { } unsafe impl ::pin_project::UnsafeUnpin for Enum {} trait EnumMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl EnumMustNotImplDrop for T {} impl EnumMustNotImplDrop for Enum {} impl ::pin_project::__private::PinnedDrop for Enum { diff --git a/tests/expand/tests/expand/not_unpin-struct.expanded.rs b/tests/expand/tests/expand/not_unpin-struct.expanded.rs index 7ca31f73..405febb8 100644 --- a/tests/expand/tests/expand/not_unpin-struct.expanded.rs +++ b/tests/expand/tests/expand/not_unpin-struct.expanded.rs @@ -71,7 +71,7 @@ const _: () = { } unsafe impl ::pin_project::UnsafeUnpin for Struct {} trait StructMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl StructMustNotImplDrop for T {} impl StructMustNotImplDrop for Struct {} impl ::pin_project::__private::PinnedDrop for Struct { diff --git a/tests/expand/tests/expand/not_unpin-tuple_struct.expanded.rs b/tests/expand/tests/expand/not_unpin-tuple_struct.expanded.rs index 061b14ab..1973e8fa 100644 --- a/tests/expand/tests/expand/not_unpin-tuple_struct.expanded.rs +++ b/tests/expand/tests/expand/not_unpin-tuple_struct.expanded.rs @@ -59,7 +59,7 @@ const _: () = { } unsafe impl ::pin_project::UnsafeUnpin for TupleStruct {} trait TupleStructMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl TupleStructMustNotImplDrop for T {} impl TupleStructMustNotImplDrop for TupleStruct {} impl ::pin_project::__private::PinnedDrop for TupleStruct { diff --git a/tests/expand/tests/expand/project_replace-enum.expanded.rs b/tests/expand/tests/expand/project_replace-enum.expanded.rs index 32cefe0d..bb164957 100644 --- a/tests/expand/tests/expand/project_replace-enum.expanded.rs +++ b/tests/expand/tests/expand/project_replace-enum.expanded.rs @@ -98,7 +98,7 @@ const _: () = { } unsafe impl ::pin_project::UnsafeUnpin for Enum {} trait EnumMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl EnumMustNotImplDrop for T {} impl EnumMustNotImplDrop for Enum {} impl ::pin_project::__private::PinnedDrop for Enum { diff --git a/tests/expand/tests/expand/project_replace-struct.expanded.rs b/tests/expand/tests/expand/project_replace-struct.expanded.rs index 882d2282..e3bf7c2b 100644 --- a/tests/expand/tests/expand/project_replace-struct.expanded.rs +++ b/tests/expand/tests/expand/project_replace-struct.expanded.rs @@ -111,7 +111,7 @@ const _: () = { } unsafe impl ::pin_project::UnsafeUnpin for Struct {} trait StructMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl StructMustNotImplDrop for T {} impl StructMustNotImplDrop for Struct {} impl ::pin_project::__private::PinnedDrop for Struct { diff --git a/tests/expand/tests/expand/project_replace-tuple_struct.expanded.rs b/tests/expand/tests/expand/project_replace-tuple_struct.expanded.rs index 72214b86..a3a9cc91 100644 --- a/tests/expand/tests/expand/project_replace-tuple_struct.expanded.rs +++ b/tests/expand/tests/expand/project_replace-tuple_struct.expanded.rs @@ -96,7 +96,7 @@ const _: () = { } unsafe impl ::pin_project::UnsafeUnpin for TupleStruct {} trait TupleStructMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl TupleStructMustNotImplDrop for T {} impl TupleStructMustNotImplDrop for TupleStruct {} impl ::pin_project::__private::PinnedDrop for TupleStruct { diff --git a/tests/expand/tests/expand/pub-enum.expanded.rs b/tests/expand/tests/expand/pub-enum.expanded.rs index 9611d3c4..acd7d37f 100644 --- a/tests/expand/tests/expand/pub-enum.expanded.rs +++ b/tests/expand/tests/expand/pub-enum.expanded.rs @@ -103,7 +103,7 @@ const _: () = { } unsafe impl ::pin_project::UnsafeUnpin for Enum {} trait EnumMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl EnumMustNotImplDrop for T {} impl EnumMustNotImplDrop for Enum {} impl ::pin_project::__private::PinnedDrop for Enum { diff --git a/tests/expand/tests/expand/pub-struct.expanded.rs b/tests/expand/tests/expand/pub-struct.expanded.rs index ce71dd81..1fd97c48 100644 --- a/tests/expand/tests/expand/pub-struct.expanded.rs +++ b/tests/expand/tests/expand/pub-struct.expanded.rs @@ -80,7 +80,7 @@ const _: () = { } unsafe impl ::pin_project::UnsafeUnpin for Struct {} trait StructMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl StructMustNotImplDrop for T {} impl StructMustNotImplDrop for Struct {} impl ::pin_project::__private::PinnedDrop for Struct { diff --git a/tests/expand/tests/expand/pub-tuple_struct.expanded.rs b/tests/expand/tests/expand/pub-tuple_struct.expanded.rs index bcb85b36..460c90b1 100644 --- a/tests/expand/tests/expand/pub-tuple_struct.expanded.rs +++ b/tests/expand/tests/expand/pub-tuple_struct.expanded.rs @@ -68,7 +68,7 @@ const _: () = { } unsafe impl ::pin_project::UnsafeUnpin for TupleStruct {} trait TupleStructMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl TupleStructMustNotImplDrop for T {} impl TupleStructMustNotImplDrop for TupleStruct {} impl ::pin_project::__private::PinnedDrop for TupleStruct { diff --git a/tests/expand/tests/expand/unsafe_unpin-enum.expanded.rs b/tests/expand/tests/expand/unsafe_unpin-enum.expanded.rs index 4bb8eda1..495b340a 100644 --- a/tests/expand/tests/expand/unsafe_unpin-enum.expanded.rs +++ b/tests/expand/tests/expand/unsafe_unpin-enum.expanded.rs @@ -91,7 +91,7 @@ const _: () = { { } trait EnumMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl EnumMustNotImplDrop for T {} impl EnumMustNotImplDrop for Enum {} impl ::pin_project::__private::PinnedDrop for Enum { diff --git a/tests/expand/tests/expand/unsafe_unpin-struct.expanded.rs b/tests/expand/tests/expand/unsafe_unpin-struct.expanded.rs index 31078d95..c6b9b97c 100644 --- a/tests/expand/tests/expand/unsafe_unpin-struct.expanded.rs +++ b/tests/expand/tests/expand/unsafe_unpin-struct.expanded.rs @@ -69,7 +69,7 @@ const _: () = { { } trait StructMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl StructMustNotImplDrop for T {} impl StructMustNotImplDrop for Struct {} impl ::pin_project::__private::PinnedDrop for Struct { diff --git a/tests/expand/tests/expand/unsafe_unpin-tuple_struct.expanded.rs b/tests/expand/tests/expand/unsafe_unpin-tuple_struct.expanded.rs index 2f9078ee..d73ddff1 100644 --- a/tests/expand/tests/expand/unsafe_unpin-tuple_struct.expanded.rs +++ b/tests/expand/tests/expand/unsafe_unpin-tuple_struct.expanded.rs @@ -57,7 +57,7 @@ const _: () = { { } trait TupleStructMustNotImplDrop {} - #[allow(clippy::drop_bounds)] + #[allow(clippy::drop_bounds, drop_bounds)] impl TupleStructMustNotImplDrop for T {} impl TupleStructMustNotImplDrop for TupleStruct {} impl ::pin_project::__private::PinnedDrop for TupleStruct {