diff options
author | Joel Galenson <jgalenson@google.com> | 2021-05-27 16:38:49 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-05-27 16:38:49 +0000 |
commit | a5c0a13309164da22025014778cf4d794aec96a6 (patch) | |
tree | a2808291a9d00789d7f23e0e6bc9e133aace307a /examples/pinned_drop-expanded.rs | |
parent | 4eafa0cc0e589d8dd142ef7d2c30718b0f9c0e5b (diff) | |
parent | fcb335e6ca1967ccc95468d5c8ea80541c14d9ef (diff) | |
download | pin-project-a5c0a13309164da22025014778cf4d794aec96a6.tar.gz |
Upgrade rust/crates/pin-project to 1.0.7 am: c95dc51644 am: b845c5fd84 am: fcb335e6ca
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/pin-project/+/1713049
Change-Id: Ic50e02a253e1644202b2133a68c1b2112ea1773c
Diffstat (limited to 'examples/pinned_drop-expanded.rs')
-rw-r--r-- | examples/pinned_drop-expanded.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/pinned_drop-expanded.rs b/examples/pinned_drop-expanded.rs index 48eb7fc..019f151 100644 --- a/examples/pinned_drop-expanded.rs +++ b/examples/pinned_drop-expanded.rs @@ -82,7 +82,7 @@ const _: () = { // // See ./struct-default-expanded.rs and https://github.com/taiki-e/pin-project/pull/34 // for details. - #[forbid(safe_packed_borrows)] + #[forbid(unaligned_references, safe_packed_borrows)] fn __assert_not_repr_packed<'a, T>(this: &Struct<'a, T>) { let _ = &this.was_dropped; let _ = &this.field; @@ -135,6 +135,7 @@ const _: () = { // Users can implement [`Drop`] safely using `#[pinned_drop]` and can drop a // type that implements `PinnedDrop` using the [`drop`] function safely. // **Do not call or implement this trait directly.** +#[doc(hidden)] impl<T> ::pin_project::__private::PinnedDrop for Struct<'_, T> { // Since calling it twice on the same object would be UB, // this method is unsafe. |