diff options
author | David LeGare <legare@google.com> | 2022-03-02 20:59:51 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2022-03-02 20:59:51 +0000 |
commit | ac81d17ea0cce1b865bbecae5677eeef7b1703e4 (patch) | |
tree | 80c46c7f97eb0158db00b2c4710dd54073c36733 /tests/ui/pin_project/remove-attr-from-struct.stderr | |
parent | 23cdec702c0235804c847247f16c7bc73f9d9fce (diff) | |
parent | 8915193b0de5f14b58aea0cd7bd72a6083529dc2 (diff) | |
download | pin-project-ac81d17ea0cce1b865bbecae5677eeef7b1703e4.tar.gz |
Update pin-project to 1.0.10 am: 8915193b0d
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/pin-project/+/2005953
Change-Id: I3c1379108ed7a86c8c877b70d6c1d516280db2e5
Diffstat (limited to 'tests/ui/pin_project/remove-attr-from-struct.stderr')
-rw-r--r-- | tests/ui/pin_project/remove-attr-from-struct.stderr | 62 |
1 files changed, 39 insertions, 23 deletions
diff --git a/tests/ui/pin_project/remove-attr-from-struct.stderr b/tests/ui/pin_project/remove-attr-from-struct.stderr index 57cf21d..1a9cd42 100644 --- a/tests/ui/pin_project/remove-attr-from-struct.stderr +++ b/tests/ui/pin_project/remove-attr-from-struct.stderr @@ -1,5 +1,5 @@ error: #[pin_project] attribute has been removed - --> $DIR/remove-attr-from-struct.rs:22:1 + --> tests/ui/pin_project/remove-attr-from-struct.rs:22:1 | 22 | #[pin_project] //~ ERROR has been removed | ^^^^^^^^^^^^^^ @@ -7,85 +7,101 @@ error: #[pin_project] attribute has been removed = note: this error originates in the derive macro `::pin_project::__private::__PinProjectInternalDerive` (in Nightly builds, run with -Z macro-backtrace for more info) error: cannot find attribute `pin` in this scope - --> $DIR/remove-attr-from-struct.rs:18:7 + --> tests/ui/pin_project/remove-attr-from-struct.rs:18:7 | 18 | #[pin] //~ ERROR cannot find attribute `pin` in this scope | ^^^ error: cannot find attribute `pin` in this scope - --> $DIR/remove-attr-from-struct.rs:11:7 + --> tests/ui/pin_project/remove-attr-from-struct.rs:11:7 | 11 | #[pin] //~ ERROR cannot find attribute `pin` in this scope | ^^^ error[E0277]: `PhantomPinned` cannot be unpinned - --> $DIR/remove-attr-from-struct.rs:35:5 + --> tests/ui/pin_project/remove-attr-from-struct.rs:35:5 | -6 | fn is_unpin<T: Unpin>() {} - | ----- required by this bound in `is_unpin` -... 35 | is_unpin::<A>(); //~ ERROR E0277 | ^^^^^^^^^^^^^ within `A`, the trait `Unpin` is not implemented for `PhantomPinned` | = note: consider using `Box::pin` note: required because it appears within the type `A` - --> $DIR/remove-attr-from-struct.rs:10:8 + --> tests/ui/pin_project/remove-attr-from-struct.rs:10:8 | 10 | struct A { | ^ +note: required by a bound in `is_unpin` + --> tests/ui/pin_project/remove-attr-from-struct.rs:6:16 + | +6 | fn is_unpin<T: Unpin>() {} + | ^^^^^ required by this bound in `is_unpin` error[E0277]: `PhantomPinned` cannot be unpinned - --> $DIR/remove-attr-from-struct.rs:36:5 + --> tests/ui/pin_project/remove-attr-from-struct.rs:36:5 | -6 | fn is_unpin<T: Unpin>() {} - | ----- required by this bound in `is_unpin` -... 36 | is_unpin::<B>(); //~ ERROR E0277 | ^^^^^^^^^^^^^ within `B`, the trait `Unpin` is not implemented for `PhantomPinned` | = note: consider using `Box::pin` note: required because it appears within the type `B` - --> $DIR/remove-attr-from-struct.rs:17:8 + --> tests/ui/pin_project/remove-attr-from-struct.rs:17:8 | 17 | struct B { | ^ +note: required by a bound in `is_unpin` + --> tests/ui/pin_project/remove-attr-from-struct.rs:6:16 + | +6 | fn is_unpin<T: Unpin>() {} + | ^^^^^ required by this bound in `is_unpin` error[E0277]: `PhantomPinned` cannot be unpinned - --> $DIR/remove-attr-from-struct.rs:40:13 + --> tests/ui/pin_project/remove-attr-from-struct.rs:40:22 | 40 | let _ = Pin::new(&mut x).project(); //~ ERROR E0277,E0599 - | ^^^^^^^^ within `A`, the trait `Unpin` is not implemented for `PhantomPinned` + | -------- ^^^^^^ within `A`, the trait `Unpin` is not implemented for `PhantomPinned` + | | + | required by a bound introduced by this call | = note: consider using `Box::pin` note: required because it appears within the type `A` - --> $DIR/remove-attr-from-struct.rs:10:8 + --> tests/ui/pin_project/remove-attr-from-struct.rs:10:8 | 10 | struct A { | ^ -note: required by `Pin::<P>::new` +note: required by a bound in `Pin::<P>::new` + --> $RUST/core/src/pin.rs + | + | impl<P: Deref<Target: Unpin>> Pin<P> { + | ^^^^^ required by this bound in `Pin::<P>::new` error[E0599]: no method named `project` found for struct `Pin<&mut A>` in the current scope - --> $DIR/remove-attr-from-struct.rs:40:30 + --> tests/ui/pin_project/remove-attr-from-struct.rs:40:30 | 40 | let _ = Pin::new(&mut x).project(); //~ ERROR E0277,E0599 | ^^^^^^^ method not found in `Pin<&mut A>` error[E0277]: `PhantomPinned` cannot be unpinned - --> $DIR/remove-attr-from-struct.rs:43:13 + --> tests/ui/pin_project/remove-attr-from-struct.rs:43:22 | 43 | let _ = Pin::new(&mut x).project(); //~ ERROR E0277,E0599 - | ^^^^^^^^ within `B`, the trait `Unpin` is not implemented for `PhantomPinned` + | -------- ^^^^^^ within `B`, the trait `Unpin` is not implemented for `PhantomPinned` + | | + | required by a bound introduced by this call | = note: consider using `Box::pin` note: required because it appears within the type `B` - --> $DIR/remove-attr-from-struct.rs:17:8 + --> tests/ui/pin_project/remove-attr-from-struct.rs:17:8 | 17 | struct B { | ^ -note: required by `Pin::<P>::new` +note: required by a bound in `Pin::<P>::new` + --> $RUST/core/src/pin.rs + | + | impl<P: Deref<Target: Unpin>> Pin<P> { + | ^^^^^ required by this bound in `Pin::<P>::new` error[E0599]: no method named `project` found for struct `Pin<&mut B>` in the current scope - --> $DIR/remove-attr-from-struct.rs:43:30 + --> tests/ui/pin_project/remove-attr-from-struct.rs:43:30 | 43 | let _ = Pin::new(&mut x).project(); //~ ERROR E0277,E0599 | ^^^^^^^ method not found in `Pin<&mut B>` |