diff options
author | Joel Galenson <jgalenson@google.com> | 2021-08-11 14:43:30 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-08-11 14:43:30 +0000 |
commit | 854e9fcb8c82f15786589be06db1c743ebf62319 (patch) | |
tree | 4ff684b6890583131074a1033210f0ac7abb1d0d /tests/ui/pinned_drop/conditional-drop-impl.stderr | |
parent | fcb335e6ca1967ccc95468d5c8ea80541c14d9ef (diff) | |
parent | 02a74e9451d4ea00816d0489f8aaaee4ef5f9ae6 (diff) | |
download | pin-project-854e9fcb8c82f15786589be06db1c743ebf62319.tar.gz |
Upgrade rust/crates/pin-project to 1.0.8 am: c1569cc62c am: 02a74e9451android-s-v2-preview-2android-s-v2-preview-1android-s-v2-beta-2android-s-v2-preview-1
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/pin-project/+/1791108
Change-Id: I26d5c7e71b70cf09c655f7cc6678f76b073d19f3
Diffstat (limited to 'tests/ui/pinned_drop/conditional-drop-impl.stderr')
-rw-r--r-- | tests/ui/pinned_drop/conditional-drop-impl.stderr | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/tests/ui/pinned_drop/conditional-drop-impl.stderr b/tests/ui/pinned_drop/conditional-drop-impl.stderr index 8ab2294..a512578 100644 --- a/tests/ui/pinned_drop/conditional-drop-impl.stderr +++ b/tests/ui/pinned_drop/conditional-drop-impl.stderr @@ -13,19 +13,23 @@ note: the implementor must specify the same requirement | |_^ error[E0277]: `T` cannot be unpinned - --> $DIR/conditional-drop-impl.rs:16:15 - | -16 | #[pin_project(PinnedDrop)] //~ ERROR E0277 - | ^^^^^^^^^^ the trait `Unpin` is not implemented for `T` - | - = note: consider using `Box::pin` + --> $DIR/conditional-drop-impl.rs:16:15 + | +16 | #[pin_project(PinnedDrop)] //~ ERROR E0277 + | ^^^^^^^^^^ the trait `Unpin` is not implemented for `T` + | + = note: consider using `Box::pin` note: required because of the requirements on the impl of `PinnedDrop` for `PinnedDropImpl<T>` - --> $DIR/conditional-drop-impl.rs:23:16 - | -23 | impl<T: Unpin> PinnedDrop for PinnedDropImpl<T> { - | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ - = note: required by `pin_project::__private::PinnedDrop::drop` + --> $DIR/conditional-drop-impl.rs:23:16 + | +23 | impl<T: Unpin> PinnedDrop for PinnedDropImpl<T> { + | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ +note: required by `pin_project::__private::PinnedDrop::drop` + --> $DIR/lib.rs:186:9 + | +186 | unsafe fn drop(self: Pin<&mut Self>); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider restricting type parameter `T` - | -17 | struct PinnedDropImpl<T: std::marker::Unpin> { - | ^^^^^^^^^^^^^^^^^^^^ + | +17 | struct PinnedDropImpl<T: std::marker::Unpin> { + | ^^^^^^^^^^^^^^^^^^^^ |