Skip to content

Commit

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

cc taiki-e/pin-project#272 

Co-authored-by: Taiki Endo <te316e89@gmail.com>
  • Loading branch information
bors[bot] and taiki-e committed Oct 1, 2020
2 parents 3b7c561 + a6b1531 commit 506c864
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ macro_rules! __pin_project_internal {
// which will then comflict with the explicit MustNotImplDrop impl below.
// This will result in a compilation error, which is exactly what we want.
trait MustNotImplDrop {}
#[allow(clippy::drop_bounds)]
#[allow(clippy::drop_bounds, drop_bounds)]
impl<T: $crate::__private::Drop> MustNotImplDrop for T {}
impl <$($impl_generics)*> MustNotImplDrop for $ident <$($ty_generics)*>
$(where
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 @@ -60,7 +60,7 @@ const _: () = {
{
}
trait MustNotImplDrop {}
#[allow(clippy::drop_bounds)]
#[allow(clippy::drop_bounds, drop_bounds)]
impl<T: ::pin_project_lite::__private::Drop> MustNotImplDrop for T {}
impl<T, U> MustNotImplDrop for Struct<T, U> {}
#[forbid(safe_packed_borrows)]
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 @@ -60,7 +60,7 @@ const _: () = {
{
}
trait MustNotImplDrop {}
#[allow(clippy::drop_bounds)]
#[allow(clippy::drop_bounds, drop_bounds)]
impl<T: ::pin_project_lite::__private::Drop> MustNotImplDrop for T {}
impl<T, U> MustNotImplDrop for Struct<T, U> {}
#[forbid(safe_packed_borrows)]
Expand Down

0 comments on commit 506c864

Please sign in to comment.