aboutsummaryrefslogtreecommitdiff
path: root/tests/expand/pinned_drop/struct.expanded.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/expand/pinned_drop/struct.expanded.rs')
-rw-r--r--tests/expand/pinned_drop/struct.expanded.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/expand/pinned_drop/struct.expanded.rs b/tests/expand/pinned_drop/struct.expanded.rs
index 9d7f489..10ca8c1 100644
--- a/tests/expand/pinned_drop/struct.expanded.rs
+++ b/tests/expand/pinned_drop/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 Struct<T, U> {
#[pin]
@@ -78,7 +78,7 @@ const _: () = {
}
}
}
- #[forbid(safe_packed_borrows)]
+ #[forbid(unaligned_references, safe_packed_borrows)]
fn __assert_not_repr_packed<T, U>(this: &Struct<T, U>) {
let _ = &this.pinned;
let _ = &this.unpinned;
@@ -112,6 +112,7 @@ const _: () = {
}
}
};
+#[doc(hidden)]
impl<T, U> ::pin_project::__private::PinnedDrop for Struct<T, U> {
unsafe fn drop(self: Pin<&mut Self>) {
#[allow(clippy::needless_pass_by_value)]