Skip to content

Commit

Permalink
Merge #273
Browse files Browse the repository at this point in the history
273: Prepare for uplift of drop-bounds lint r=taiki-e a=taiki-e

cc #272 

Co-authored-by: Taiki Endo <[email protected]>
  • Loading branch information
bors[bot] and taiki-e authored Sep 22, 2020
2 parents aebe2dd + 8a7859b commit 7d40769
Show file tree
Hide file tree
Showing 37 changed files with 42 additions and 42 deletions.
4 changes: 2 additions & 2 deletions examples/enum-default-expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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<T: ::pin_project::__private::Drop> EnumMustNotImplDrop for T {}
impl<T, U> EnumMustNotImplDrop for Enum<T, U> {}
impl<T, U> ::pin_project::__private::PinnedDrop for Enum<T, U> {
Expand Down
4 changes: 2 additions & 2 deletions examples/not_unpin-expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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<T: ::pin_project::__private::Drop> StructMustNotImplDrop for T {}
impl<T, U> StructMustNotImplDrop for Struct<T, U> {}
impl<T, U> ::pin_project::__private::PinnedDrop for Struct<T, U> {
Expand Down
2 changes: 1 addition & 1 deletion examples/pinned_drop-expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions examples/project_replace-expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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<T: ::pin_project::__private::Drop> StructMustNotImplDrop for T {}
impl<T, U> StructMustNotImplDrop for Struct<T, U> {}
impl<T, U> ::pin_project::__private::PinnedDrop for Struct<T, U> {
Expand Down
4 changes: 2 additions & 2 deletions examples/struct-default-expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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<T: ::pin_project::__private::Drop> StructMustNotImplDrop for T {}
impl<T, U> StructMustNotImplDrop for Struct<T, U> {}
// A dummy impl of `PinnedDrop`, to ensure that users don't accidentally
Expand Down
4 changes: 2 additions & 2 deletions examples/unsafe_unpin-expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};

Expand Down Expand Up @@ -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<T: ::pin_project::__private::Drop> StructMustNotImplDrop for T {}
impl<T, U> StructMustNotImplDrop for Struct<T, U> {}
impl<T, U> ::pin_project::__private::PinnedDrop for Struct<T, U> {
Expand Down
2 changes: 1 addition & 1 deletion pin-project-internal/src/pin_project/derive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T: ::pin_project::__private::Drop> #trait_ident for T {}
impl #impl_generics #trait_ident for #ident #ty_generics #where_clause {}

Expand Down
2 changes: 1 addition & 1 deletion tests/expand/tests/expand/default-enum.expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const _: () = {
}
unsafe impl<T, U> ::pin_project::UnsafeUnpin for Enum<T, U> {}
trait EnumMustNotImplDrop {}
#[allow(clippy::drop_bounds)]
#[allow(clippy::drop_bounds, drop_bounds)]
impl<T: ::pin_project::__private::Drop> EnumMustNotImplDrop for T {}
impl<T, U> EnumMustNotImplDrop for Enum<T, U> {}
impl<T, U> ::pin_project::__private::PinnedDrop for Enum<T, U> {
Expand Down
2 changes: 1 addition & 1 deletion tests/expand/tests/expand/default-struct.expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const _: () = {
}
unsafe impl<T, U> ::pin_project::UnsafeUnpin for Struct<T, U> {}
trait StructMustNotImplDrop {}
#[allow(clippy::drop_bounds)]
#[allow(clippy::drop_bounds, drop_bounds)]
impl<T: ::pin_project::__private::Drop> StructMustNotImplDrop for T {}
impl<T, U> StructMustNotImplDrop for Struct<T, U> {}
impl<T, U> ::pin_project::__private::PinnedDrop for Struct<T, U> {
Expand Down
2 changes: 1 addition & 1 deletion tests/expand/tests/expand/default-tuple_struct.expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const _: () = {
}
unsafe impl<T, U> ::pin_project::UnsafeUnpin for TupleStruct<T, U> {}
trait TupleStructMustNotImplDrop {}
#[allow(clippy::drop_bounds)]
#[allow(clippy::drop_bounds, drop_bounds)]
impl<T: ::pin_project::__private::Drop> TupleStructMustNotImplDrop for T {}
impl<T, U> TupleStructMustNotImplDrop for TupleStruct<T, U> {}
impl<T, U> ::pin_project::__private::PinnedDrop for TupleStruct<T, U> {
Expand Down
2 changes: 1 addition & 1 deletion tests/expand/tests/expand/naming-enum-all.expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const _: () = {
}
unsafe impl<T, U> ::pin_project::UnsafeUnpin for Enum<T, U> {}
trait EnumMustNotImplDrop {}
#[allow(clippy::drop_bounds)]
#[allow(clippy::drop_bounds, drop_bounds)]
impl<T: ::pin_project::__private::Drop> EnumMustNotImplDrop for T {}
impl<T, U> EnumMustNotImplDrop for Enum<T, U> {}
impl<T, U> ::pin_project::__private::PinnedDrop for Enum<T, U> {
Expand Down
2 changes: 1 addition & 1 deletion tests/expand/tests/expand/naming-enum-mut.expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const _: () = {
}
unsafe impl<T, U> ::pin_project::UnsafeUnpin for Enum<T, U> {}
trait EnumMustNotImplDrop {}
#[allow(clippy::drop_bounds)]
#[allow(clippy::drop_bounds, drop_bounds)]
impl<T: ::pin_project::__private::Drop> EnumMustNotImplDrop for T {}
impl<T, U> EnumMustNotImplDrop for Enum<T, U> {}
impl<T, U> ::pin_project::__private::PinnedDrop for Enum<T, U> {
Expand Down
2 changes: 1 addition & 1 deletion tests/expand/tests/expand/naming-enum-none.expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const _: () = {
}
unsafe impl<T, U> ::pin_project::UnsafeUnpin for Enum<T, U> {}
trait EnumMustNotImplDrop {}
#[allow(clippy::drop_bounds)]
#[allow(clippy::drop_bounds, drop_bounds)]
impl<T: ::pin_project::__private::Drop> EnumMustNotImplDrop for T {}
impl<T, U> EnumMustNotImplDrop for Enum<T, U> {}
impl<T, U> ::pin_project::__private::PinnedDrop for Enum<T, U> {
Expand Down
2 changes: 1 addition & 1 deletion tests/expand/tests/expand/naming-enum-own.expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const _: () = {
}
unsafe impl<T, U> ::pin_project::UnsafeUnpin for Enum<T, U> {}
trait EnumMustNotImplDrop {}
#[allow(clippy::drop_bounds)]
#[allow(clippy::drop_bounds, drop_bounds)]
impl<T: ::pin_project::__private::Drop> EnumMustNotImplDrop for T {}
impl<T, U> EnumMustNotImplDrop for Enum<T, U> {}
impl<T, U> ::pin_project::__private::PinnedDrop for Enum<T, U> {
Expand Down
2 changes: 1 addition & 1 deletion tests/expand/tests/expand/naming-enum-ref.expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const _: () = {
}
unsafe impl<T, U> ::pin_project::UnsafeUnpin for Enum<T, U> {}
trait EnumMustNotImplDrop {}
#[allow(clippy::drop_bounds)]
#[allow(clippy::drop_bounds, drop_bounds)]
impl<T: ::pin_project::__private::Drop> EnumMustNotImplDrop for T {}
impl<T, U> EnumMustNotImplDrop for Enum<T, U> {}
impl<T, U> ::pin_project::__private::PinnedDrop for Enum<T, U> {
Expand Down
2 changes: 1 addition & 1 deletion tests/expand/tests/expand/naming-struct-all.expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const _: () = {
}
unsafe impl<T, U> ::pin_project::UnsafeUnpin for Struct<T, U> {}
trait StructMustNotImplDrop {}
#[allow(clippy::drop_bounds)]
#[allow(clippy::drop_bounds, drop_bounds)]
impl<T: ::pin_project::__private::Drop> StructMustNotImplDrop for T {}
impl<T, U> StructMustNotImplDrop for Struct<T, U> {}
impl<T, U> ::pin_project::__private::PinnedDrop for Struct<T, U> {
Expand Down
2 changes: 1 addition & 1 deletion tests/expand/tests/expand/naming-struct-mut.expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const _: () = {
}
unsafe impl<T, U> ::pin_project::UnsafeUnpin for Struct<T, U> {}
trait StructMustNotImplDrop {}
#[allow(clippy::drop_bounds)]
#[allow(clippy::drop_bounds, drop_bounds)]
impl<T: ::pin_project::__private::Drop> StructMustNotImplDrop for T {}
impl<T, U> StructMustNotImplDrop for Struct<T, U> {}
impl<T, U> ::pin_project::__private::PinnedDrop for Struct<T, U> {
Expand Down
2 changes: 1 addition & 1 deletion tests/expand/tests/expand/naming-struct-none.expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const _: () = {
}
unsafe impl<T, U> ::pin_project::UnsafeUnpin for Struct<T, U> {}
trait StructMustNotImplDrop {}
#[allow(clippy::drop_bounds)]
#[allow(clippy::drop_bounds, drop_bounds)]
impl<T: ::pin_project::__private::Drop> StructMustNotImplDrop for T {}
impl<T, U> StructMustNotImplDrop for Struct<T, U> {}
impl<T, U> ::pin_project::__private::PinnedDrop for Struct<T, U> {
Expand Down
2 changes: 1 addition & 1 deletion tests/expand/tests/expand/naming-struct-own.expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const _: () = {
}
unsafe impl<T, U> ::pin_project::UnsafeUnpin for Struct<T, U> {}
trait StructMustNotImplDrop {}
#[allow(clippy::drop_bounds)]
#[allow(clippy::drop_bounds, drop_bounds)]
impl<T: ::pin_project::__private::Drop> StructMustNotImplDrop for T {}
impl<T, U> StructMustNotImplDrop for Struct<T, U> {}
impl<T, U> ::pin_project::__private::PinnedDrop for Struct<T, U> {
Expand Down
2 changes: 1 addition & 1 deletion tests/expand/tests/expand/naming-struct-ref.expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const _: () = {
}
unsafe impl<T, U> ::pin_project::UnsafeUnpin for Struct<T, U> {}
trait StructMustNotImplDrop {}
#[allow(clippy::drop_bounds)]
#[allow(clippy::drop_bounds, drop_bounds)]
impl<T: ::pin_project::__private::Drop> StructMustNotImplDrop for T {}
impl<T, U> StructMustNotImplDrop for Struct<T, U> {}
impl<T, U> ::pin_project::__private::PinnedDrop for Struct<T, U> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const _: () = {
}
unsafe impl<T, U> ::pin_project::UnsafeUnpin for TupleStruct<T, U> {}
trait TupleStructMustNotImplDrop {}
#[allow(clippy::drop_bounds)]
#[allow(clippy::drop_bounds, drop_bounds)]
impl<T: ::pin_project::__private::Drop> TupleStructMustNotImplDrop for T {}
impl<T, U> TupleStructMustNotImplDrop for TupleStruct<T, U> {}
impl<T, U> ::pin_project::__private::PinnedDrop for TupleStruct<T, U> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const _: () = {
}
unsafe impl<T, U> ::pin_project::UnsafeUnpin for TupleStruct<T, U> {}
trait TupleStructMustNotImplDrop {}
#[allow(clippy::drop_bounds)]
#[allow(clippy::drop_bounds, drop_bounds)]
impl<T: ::pin_project::__private::Drop> TupleStructMustNotImplDrop for T {}
impl<T, U> TupleStructMustNotImplDrop for TupleStruct<T, U> {}
impl<T, U> ::pin_project::__private::PinnedDrop for TupleStruct<T, U> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const _: () = {
}
unsafe impl<T, U> ::pin_project::UnsafeUnpin for TupleStruct<T, U> {}
trait TupleStructMustNotImplDrop {}
#[allow(clippy::drop_bounds)]
#[allow(clippy::drop_bounds, drop_bounds)]
impl<T: ::pin_project::__private::Drop> TupleStructMustNotImplDrop for T {}
impl<T, U> TupleStructMustNotImplDrop for TupleStruct<T, U> {}
impl<T, U> ::pin_project::__private::PinnedDrop for TupleStruct<T, U> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const _: () = {
}
unsafe impl<T, U> ::pin_project::UnsafeUnpin for TupleStruct<T, U> {}
trait TupleStructMustNotImplDrop {}
#[allow(clippy::drop_bounds)]
#[allow(clippy::drop_bounds, drop_bounds)]
impl<T: ::pin_project::__private::Drop> TupleStructMustNotImplDrop for T {}
impl<T, U> TupleStructMustNotImplDrop for TupleStruct<T, U> {}
impl<T, U> ::pin_project::__private::PinnedDrop for TupleStruct<T, U> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const _: () = {
}
unsafe impl<T, U> ::pin_project::UnsafeUnpin for TupleStruct<T, U> {}
trait TupleStructMustNotImplDrop {}
#[allow(clippy::drop_bounds)]
#[allow(clippy::drop_bounds, drop_bounds)]
impl<T: ::pin_project::__private::Drop> TupleStructMustNotImplDrop for T {}
impl<T, U> TupleStructMustNotImplDrop for TupleStruct<T, U> {}
impl<T, U> ::pin_project::__private::PinnedDrop for TupleStruct<T, U> {
Expand Down
2 changes: 1 addition & 1 deletion tests/expand/tests/expand/not_unpin-enum.expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const _: () = {
}
unsafe impl<T, U> ::pin_project::UnsafeUnpin for Enum<T, U> {}
trait EnumMustNotImplDrop {}
#[allow(clippy::drop_bounds)]
#[allow(clippy::drop_bounds, drop_bounds)]
impl<T: ::pin_project::__private::Drop> EnumMustNotImplDrop for T {}
impl<T, U> EnumMustNotImplDrop for Enum<T, U> {}
impl<T, U> ::pin_project::__private::PinnedDrop for Enum<T, U> {
Expand Down
2 changes: 1 addition & 1 deletion tests/expand/tests/expand/not_unpin-struct.expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const _: () = {
}
unsafe impl<T, U> ::pin_project::UnsafeUnpin for Struct<T, U> {}
trait StructMustNotImplDrop {}
#[allow(clippy::drop_bounds)]
#[allow(clippy::drop_bounds, drop_bounds)]
impl<T: ::pin_project::__private::Drop> StructMustNotImplDrop for T {}
impl<T, U> StructMustNotImplDrop for Struct<T, U> {}
impl<T, U> ::pin_project::__private::PinnedDrop for Struct<T, U> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const _: () = {
}
unsafe impl<T, U> ::pin_project::UnsafeUnpin for TupleStruct<T, U> {}
trait TupleStructMustNotImplDrop {}
#[allow(clippy::drop_bounds)]
#[allow(clippy::drop_bounds, drop_bounds)]
impl<T: ::pin_project::__private::Drop> TupleStructMustNotImplDrop for T {}
impl<T, U> TupleStructMustNotImplDrop for TupleStruct<T, U> {}
impl<T, U> ::pin_project::__private::PinnedDrop for TupleStruct<T, U> {
Expand Down
2 changes: 1 addition & 1 deletion tests/expand/tests/expand/project_replace-enum.expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const _: () = {
}
unsafe impl<T, U> ::pin_project::UnsafeUnpin for Enum<T, U> {}
trait EnumMustNotImplDrop {}
#[allow(clippy::drop_bounds)]
#[allow(clippy::drop_bounds, drop_bounds)]
impl<T: ::pin_project::__private::Drop> EnumMustNotImplDrop for T {}
impl<T, U> EnumMustNotImplDrop for Enum<T, U> {}
impl<T, U> ::pin_project::__private::PinnedDrop for Enum<T, U> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const _: () = {
}
unsafe impl<T, U> ::pin_project::UnsafeUnpin for Struct<T, U> {}
trait StructMustNotImplDrop {}
#[allow(clippy::drop_bounds)]
#[allow(clippy::drop_bounds, drop_bounds)]
impl<T: ::pin_project::__private::Drop> StructMustNotImplDrop for T {}
impl<T, U> StructMustNotImplDrop for Struct<T, U> {}
impl<T, U> ::pin_project::__private::PinnedDrop for Struct<T, U> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const _: () = {
}
unsafe impl<T, U> ::pin_project::UnsafeUnpin for TupleStruct<T, U> {}
trait TupleStructMustNotImplDrop {}
#[allow(clippy::drop_bounds)]
#[allow(clippy::drop_bounds, drop_bounds)]
impl<T: ::pin_project::__private::Drop> TupleStructMustNotImplDrop for T {}
impl<T, U> TupleStructMustNotImplDrop for TupleStruct<T, U> {}
impl<T, U> ::pin_project::__private::PinnedDrop for TupleStruct<T, U> {
Expand Down
2 changes: 1 addition & 1 deletion tests/expand/tests/expand/pub-enum.expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const _: () = {
}
unsafe impl<T, U> ::pin_project::UnsafeUnpin for Enum<T, U> {}
trait EnumMustNotImplDrop {}
#[allow(clippy::drop_bounds)]
#[allow(clippy::drop_bounds, drop_bounds)]
impl<T: ::pin_project::__private::Drop> EnumMustNotImplDrop for T {}
impl<T, U> EnumMustNotImplDrop for Enum<T, U> {}
impl<T, U> ::pin_project::__private::PinnedDrop for Enum<T, U> {
Expand Down
2 changes: 1 addition & 1 deletion tests/expand/tests/expand/pub-struct.expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const _: () = {
}
unsafe impl<T, U> ::pin_project::UnsafeUnpin for Struct<T, U> {}
trait StructMustNotImplDrop {}
#[allow(clippy::drop_bounds)]
#[allow(clippy::drop_bounds, drop_bounds)]
impl<T: ::pin_project::__private::Drop> StructMustNotImplDrop for T {}
impl<T, U> StructMustNotImplDrop for Struct<T, U> {}
impl<T, U> ::pin_project::__private::PinnedDrop for Struct<T, U> {
Expand Down
2 changes: 1 addition & 1 deletion tests/expand/tests/expand/pub-tuple_struct.expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const _: () = {
}
unsafe impl<T, U> ::pin_project::UnsafeUnpin for TupleStruct<T, U> {}
trait TupleStructMustNotImplDrop {}
#[allow(clippy::drop_bounds)]
#[allow(clippy::drop_bounds, drop_bounds)]
impl<T: ::pin_project::__private::Drop> TupleStructMustNotImplDrop for T {}
impl<T, U> TupleStructMustNotImplDrop for TupleStruct<T, U> {}
impl<T, U> ::pin_project::__private::PinnedDrop for TupleStruct<T, U> {
Expand Down
2 changes: 1 addition & 1 deletion tests/expand/tests/expand/unsafe_unpin-enum.expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const _: () = {
{
}
trait EnumMustNotImplDrop {}
#[allow(clippy::drop_bounds)]
#[allow(clippy::drop_bounds, drop_bounds)]
impl<T: ::pin_project::__private::Drop> EnumMustNotImplDrop for T {}
impl<T, U> EnumMustNotImplDrop for Enum<T, U> {}
impl<T, U> ::pin_project::__private::PinnedDrop for Enum<T, U> {
Expand Down
2 changes: 1 addition & 1 deletion tests/expand/tests/expand/unsafe_unpin-struct.expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const _: () = {
{
}
trait StructMustNotImplDrop {}
#[allow(clippy::drop_bounds)]
#[allow(clippy::drop_bounds, drop_bounds)]
impl<T: ::pin_project::__private::Drop> StructMustNotImplDrop for T {}
impl<T, U> StructMustNotImplDrop for Struct<T, U> {}
impl<T, U> ::pin_project::__private::PinnedDrop for Struct<T, U> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const _: () = {
{
}
trait TupleStructMustNotImplDrop {}
#[allow(clippy::drop_bounds)]
#[allow(clippy::drop_bounds, drop_bounds)]
impl<T: ::pin_project::__private::Drop> TupleStructMustNotImplDrop for T {}
impl<T, U> TupleStructMustNotImplDrop for TupleStruct<T, U> {}
impl<T, U> ::pin_project::__private::PinnedDrop for TupleStruct<T, U> {
Expand Down

0 comments on commit 7d40769

Please sign in to comment.