Skip to content

Commit

Permalink
Update ui test to nightly-2021-11-22
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Nov 22, 2021
1 parent 64a1118 commit fa23406
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 50 deletions.
16 changes: 8 additions & 8 deletions tests/ui/pin_project/project_replace_unsized.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ note: required because it appears within the type `Struct<T>`
|
4 | struct Struct<T: ?Sized> {
| ^^^^^^
note: required by `UnsafeOverwriteGuard`
--> src/lib.rs:271:5
note: required by a bound in `UnsafeOverwriteGuard`
--> src/lib.rs
|
271 | pub struct UnsafeOverwriteGuard<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| pub struct UnsafeOverwriteGuard<T> {
| ^ required by this bound in `UnsafeOverwriteGuard`
= note: this error originates in the derive macro `::pin_project::__private::__PinProjectInternalDerive` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider removing the `?Sized` bound to make the type parameter `Sized`
|
Expand Down Expand Up @@ -105,11 +105,11 @@ note: required because it appears within the type `TupleStruct<T>`
|
9 | struct TupleStruct<T: ?Sized>(T);
| ^^^^^^^^^^^
note: required by `UnsafeOverwriteGuard`
--> src/lib.rs:271:5
note: required by a bound in `UnsafeOverwriteGuard`
--> src/lib.rs
|
271 | pub struct UnsafeOverwriteGuard<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| pub struct UnsafeOverwriteGuard<T> {
| ^ required by this bound in `UnsafeOverwriteGuard`
= note: this error originates in the derive macro `::pin_project::__private::__PinProjectInternalDerive` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider removing the `?Sized` bound to make the type parameter `Sized`
|
Expand Down
16 changes: 8 additions & 8 deletions tests/ui/pin_project/project_replace_unsized_fn_params.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ note: required because it appears within the type `Struct<T>`
|
6 | struct Struct<T: ?Sized> {
| ^^^^^^
note: required by `UnsafeOverwriteGuard`
--> src/lib.rs:271:5
note: required by a bound in `UnsafeOverwriteGuard`
--> src/lib.rs
|
271 | pub struct UnsafeOverwriteGuard<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| pub struct UnsafeOverwriteGuard<T> {
| ^ required by this bound in `UnsafeOverwriteGuard`
= note: this error originates in the derive macro `::pin_project::__private::__PinProjectInternalDerive` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider removing the `?Sized` bound to make the type parameter `Sized`
|
Expand Down Expand Up @@ -99,11 +99,11 @@ note: required because it appears within the type `TupleStruct<T>`
|
11 | struct TupleStruct<T: ?Sized>(T);
| ^^^^^^^^^^^
note: required by `UnsafeOverwriteGuard`
--> src/lib.rs:271:5
note: required by a bound in `UnsafeOverwriteGuard`
--> src/lib.rs
|
271 | pub struct UnsafeOverwriteGuard<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| pub struct UnsafeOverwriteGuard<T> {
| ^ required by this bound in `UnsafeOverwriteGuard`
= note: this error originates in the derive macro `::pin_project::__private::__PinProjectInternalDerive` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider removing the `?Sized` bound to make the type parameter `Sized`
|
Expand Down
12 changes: 6 additions & 6 deletions tests/ui/pin_project/remove-attr-from-struct.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ note: required because it appears within the type `A`
|
10 | struct A {
| ^
note: required by `Pin::<P>::new`
note: required by a bound in `Pin::<P>::new`
--> $RUST/core/src/pin.rs
|
| pub const fn new(pointer: P) -> Pin<P> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| 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
--> tests/ui/pin_project/remove-attr-from-struct.rs:40:30
Expand All @@ -94,11 +94,11 @@ note: required because it appears within the type `B`
|
17 | struct B {
| ^
note: required by `Pin::<P>::new`
note: required by a bound in `Pin::<P>::new`
--> $RUST/core/src/pin.rs
|
| pub const fn new(pointer: P) -> Pin<P> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| 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
--> tests/ui/pin_project/remove-attr-from-struct.rs:43:30
Expand Down
31 changes: 13 additions & 18 deletions tests/ui/pinned_drop/conditional-drop-impl.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,18 @@ note: the implementor must specify the same requirement
| |_^

error[E0277]: `T` cannot be unpinned
--> tests/ui/pinned_drop/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`
--> tests/ui/pinned_drop/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>`
--> tests/ui/pinned_drop/conditional-drop-impl.rs:23:16
|
23 | impl<T: Unpin> PinnedDrop for PinnedDropImpl<T> {
| ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^
note: required by `pin_project::__private::PinnedDrop::drop`
--> src/lib.rs:188:9
|
188 | unsafe fn drop(self: Pin<&mut Self>);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--> tests/ui/pinned_drop/conditional-drop-impl.rs:23:16
|
23 | impl<T: Unpin> PinnedDrop for PinnedDropImpl<T> {
| ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^
help: consider restricting type parameter `T`
|
17 | struct PinnedDropImpl<T: std::marker::Unpin> {
| ++++++++++++++++++++
|
17 | struct PinnedDropImpl<T: std::marker::Unpin> {
| ++++++++++++++++++++
14 changes: 4 additions & 10 deletions tests/ui/pinned_drop/forget-pinned-drop-impl.stderr
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
error[E0277]: the trait bound `Struct: PinnedDrop` is not satisfied
--> tests/ui/pinned_drop/forget-pinned-drop-impl.rs:3:15
|
3 | #[pin_project(PinnedDrop)] //~ ERROR E0277
| ^^^^^^^^^^ the trait `PinnedDrop` is not implemented for `Struct`
|
note: required by `pin_project::__private::PinnedDrop::drop`
--> src/lib.rs:188:9
|
188 | unsafe fn drop(self: Pin<&mut Self>);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--> tests/ui/pinned_drop/forget-pinned-drop-impl.rs:3:15
|
3 | #[pin_project(PinnedDrop)] //~ ERROR E0277
| ^^^^^^^^^^ the trait `PinnedDrop` is not implemented for `Struct`

0 comments on commit fa23406

Please sign in to comment.