aboutsummaryrefslogtreecommitdiff
path: root/tests/expand/pinned_drop/tuple_struct.expanded.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/expand/pinned_drop/tuple_struct.expanded.rs')
-rw-r--r--tests/expand/pinned_drop/tuple_struct.expanded.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/expand/pinned_drop/tuple_struct.expanded.rs b/tests/expand/pinned_drop/tuple_struct.expanded.rs
index b30ee66..506726c 100644
--- a/tests/expand/pinned_drop/tuple_struct.expanded.rs
+++ b/tests/expand/pinned_drop/tuple_struct.expanded.rs
@@ -1,5 +1,5 @@
-use pin_project::{pin_project, pinned_drop};
use std::pin::Pin;
+use pin_project::{pin_project, pinned_drop};
#[pin(__private(PinnedDrop))]
struct TupleStruct<T, U>(#[pin] T, U);
#[allow(box_pointers)]
@@ -66,7 +66,7 @@ const _: () = {
}
}
}
- #[forbid(safe_packed_borrows)]
+ #[forbid(unaligned_references, safe_packed_borrows)]
fn __assert_not_repr_packed<T, U>(this: &TupleStruct<T, U>) {
let _ = &this.0;
let _ = &this.1;
@@ -100,6 +100,7 @@ const _: () = {
}
}
};
+#[doc(hidden)]
impl<T, U> ::pin_project::__private::PinnedDrop for TupleStruct<T, U> {
unsafe fn drop(self: Pin<&mut Self>) {
#[allow(clippy::needless_pass_by_value)]