Skip to content

Commit

Permalink
Update ui test to nightly-2022-07-02
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jul 2, 2022
1 parent 9ce302b commit 2a63666
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 17 deletions.
2 changes: 1 addition & 1 deletion tests/ui/not_unpin/conflict-unpin.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ error[E0119]: conflicting implementations of trait `std::marker::Unpin` for type
| ^^^^^^ conflicting implementation for `Foo<_, _>`
...
10 | impl<T, U> Unpin for Foo<T, U> where T: Unpin {}
| --------------------------------------------- first implementation here
| ------------------------------ first implementation here

error[E0119]: conflicting implementations of trait `std::marker::Unpin` for type `Bar<_, _>`
--> tests/ui/not_unpin/conflict-unpin.rs:12:15
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/not_unpin/impl-unsafe-unpin.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ error[E0119]: conflicting implementations of trait `_::_pin_project::UnsafeUnpin
| ^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `Foo<_, _>`
...
10 | unsafe impl<T, U> UnsafeUnpin for Foo<T, U> where T: Unpin {}
| ---------------------------------------------------------- first implementation here
| ------------------------------------------- first implementation here
|
= note: this error originates in the derive macro `::pin_project::__private::__PinProjectInternalDerive` (in Nightly builds, run with -Z macro-backtrace for more info)

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/pin_project/conflict-unpin.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ error[E0119]: conflicting implementations of trait `std::marker::Unpin` for type
| ^^^^^^^^^^^^^^ conflicting implementation for `Foo<_, _>`
...
13 | impl<T, U> Unpin for Foo<T, U> where T: Unpin {} // Conditional Unpin impl
| --------------------------------------------- first implementation here
| ------------------------------ first implementation here
|
= note: this error originates in the derive macro `::pin_project::__private::__PinProjectInternalDerive` (in Nightly builds, run with -Z macro-backtrace for more info)

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/pin_project/impl-unsafe-unpin.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ error[E0119]: conflicting implementations of trait `_::_pin_project::UnsafeUnpin
| ^^^^^^^^^^^^^^ conflicting implementation for `Foo<_, _>`
...
10 | unsafe impl<T, U> UnsafeUnpin for Foo<T, U> where T: Unpin {}
| ---------------------------------------------------------- first implementation here
| ------------------------------------------- first implementation here
|
= note: this error originates in the derive macro `::pin_project::__private::__PinProjectInternalDerive` (in Nightly builds, run with -Z macro-backtrace for more info)

Expand Down
6 changes: 2 additions & 4 deletions tests/ui/pinned_drop/conditional-drop-impl.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ error[E0367]: `Drop` impl requires `T: Unpin` but the struct it is implemented f
note: the implementor must specify the same requirement
--> tests/ui/pinned_drop/conditional-drop-impl.rs:7:1
|
7 | / struct DropImpl<T> {
8 | | f: T,
9 | | }
| |_^
7 | struct DropImpl<T> {
| ^^^^^^^^^^^^^^^^^^

error[E0277]: `T` cannot be unpinned
--> tests/ui/pinned_drop/conditional-drop-impl.rs:16:15
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/unsafe_unpin/conflict-unpin.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ error[E0119]: conflicting implementations of trait `std::marker::Unpin` for type
| ^^^^^^^^^^^ conflicting implementation for `Foo<_, _>`
...
10 | impl<T, U> Unpin for Foo<T, U> where T: Unpin {}
| --------------------------------------------- first implementation here
| ------------------------------ first implementation here
|
= note: upstream crates may add a new impl of trait `_::_pin_project::UnsafeUnpin` for type `_::_pin_project::__private::Wrapper<'_, Foo<_, _>>` in future versions

Expand Down
11 changes: 3 additions & 8 deletions tests/ui/unstable-features/negative_impls.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ error: cross-crate traits with a default impl, like `Unpin`, should not be speci
--> tests/ui/unstable-features/negative_impls.rs:17:1
|
17 | impl Unpin for Foo<MyPhantomPinned, ()> {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> tests/ui/unstable-features/negative_impls.rs:2:9
Expand All @@ -15,10 +15,5 @@ note: the lint level is defined here
note: try using the same sequence of generic parameters as the struct definition
--> tests/ui/unstable-features/negative_impls.rs:8:1
|
8 | / struct Foo<Pinned, Unpinned> {
9 | | #[pin]
10 | | pinned: Pinned,
11 | |
12 | | unpinned: Unpinned,
13 | | }
| |_^
8 | struct Foo<Pinned, Unpinned> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 comments on commit 2a63666

Please sign in to comment.