From 5df0bb1c3ea18b2304862b3bdd21f48ef201af97 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sat, 2 Nov 2024 14:04:27 +0900 Subject: [PATCH] tests: Update ui test output to nightly-2024-11-02 --- tests/ui/pin_project/add-pinned-field.stderr | 4 ++-- tests/ui/pin_project/overlapping_unpin_struct.stderr | 2 +- tests/ui/pin_project/remove-attr-from-struct.stderr | 8 ++++---- tests/ui/pinned_drop/conditional-drop-impl.stderr | 2 +- .../unstable-features/trivial_bounds-feature-gate.stderr | 6 +++--- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/ui/pin_project/add-pinned-field.stderr b/tests/ui/pin_project/add-pinned-field.stderr index dd6c717f..50e1f5ce 100644 --- a/tests/ui/pin_project/add-pinned-field.stderr +++ b/tests/ui/pin_project/add-pinned-field.stderr @@ -2,7 +2,7 @@ error[E0277]: `PhantomPinned` cannot be unpinned --> tests/ui/pin_project/add-pinned-field.rs:23:16 | 23 | is_unpin::(); //~ ERROR E0277 - | ^^^ within `__Foo<'_>`, the trait `Unpin` is not implemented for `PhantomPinned`, which is required by `Foo: Unpin` + | ^^^ within `__Foo<'_>`, the trait `Unpin` is not implemented for `PhantomPinned` | = note: consider using the `pin!` macro consider using `Box::pin` if you need to access the pinned value outside of the current scope @@ -30,7 +30,7 @@ error[E0277]: `PhantomPinned` cannot be unpinned --> tests/ui/pin_project/add-pinned-field.rs:24:16 | 24 | is_unpin::(); //~ ERROR E0277 - | ^^^ within `__Bar<'_>`, the trait `Unpin` is not implemented for `PhantomPinned`, which is required by `Bar: Unpin` + | ^^^ within `__Bar<'_>`, the trait `Unpin` is not implemented for `PhantomPinned` | = note: consider using the `pin!` macro consider using `Box::pin` if you need to access the pinned value outside of the current scope diff --git a/tests/ui/pin_project/overlapping_unpin_struct.stderr b/tests/ui/pin_project/overlapping_unpin_struct.stderr index c1cee9e0..40b9e3b1 100644 --- a/tests/ui/pin_project/overlapping_unpin_struct.stderr +++ b/tests/ui/pin_project/overlapping_unpin_struct.stderr @@ -2,7 +2,7 @@ error[E0277]: `PhantomPinned` cannot be unpinned --> tests/ui/pin_project/overlapping_unpin_struct.rs:20:16 | 20 | is_unpin::>(); //~ ERROR E0277 - | ^^^^^^^^^^^^^^^^ within `_::__S<'_, PhantomPinned>`, the trait `Unpin` is not implemented for `PhantomPinned`, which is required by `S: Unpin` + | ^^^^^^^^^^^^^^^^ within `_::__S<'_, PhantomPinned>`, the trait `Unpin` is not implemented for `PhantomPinned` | = note: consider using the `pin!` macro consider using `Box::pin` if you need to access the pinned value outside of the current scope diff --git a/tests/ui/pin_project/remove-attr-from-struct.stderr b/tests/ui/pin_project/remove-attr-from-struct.stderr index af38b85b..c05d8451 100644 --- a/tests/ui/pin_project/remove-attr-from-struct.stderr +++ b/tests/ui/pin_project/remove-attr-from-struct.stderr @@ -22,7 +22,7 @@ error[E0277]: `PhantomPinned` cannot be unpinned --> tests/ui/pin_project/remove-attr-from-struct.rs:37:16 | 37 | is_unpin::(); //~ ERROR E0277 - | ^ within `A`, the trait `Unpin` is not implemented for `PhantomPinned`, which is required by `A: Unpin` + | ^ within `A`, the trait `Unpin` is not implemented for `PhantomPinned` | = note: consider using the `pin!` macro consider using `Box::pin` if you need to access the pinned value outside of the current scope @@ -41,7 +41,7 @@ error[E0277]: `PhantomPinned` cannot be unpinned --> tests/ui/pin_project/remove-attr-from-struct.rs:38:16 | 38 | is_unpin::(); //~ ERROR E0277 - | ^ within `B`, the trait `Unpin` is not implemented for `PhantomPinned`, which is required by `B: Unpin` + | ^ within `B`, the trait `Unpin` is not implemented for `PhantomPinned` | = note: consider using the `pin!` macro consider using `Box::pin` if you need to access the pinned value outside of the current scope @@ -60,7 +60,7 @@ error[E0277]: `PhantomPinned` cannot be unpinned --> tests/ui/pin_project/remove-attr-from-struct.rs:42:22 | 42 | let _ = Pin::new(&mut x).project(); //~ ERROR E0277,E0599 - | -------- ^^^^^^ within `A`, the trait `Unpin` is not implemented for `PhantomPinned`, which is required by `A: Unpin` + | -------- ^^^^^^ within `A`, the trait `Unpin` is not implemented for `PhantomPinned` | | | required by a bound introduced by this call | @@ -90,7 +90,7 @@ error[E0277]: `PhantomPinned` cannot be unpinned --> tests/ui/pin_project/remove-attr-from-struct.rs:45:22 | 45 | let _ = Pin::new(&mut x).project(); //~ ERROR E0277,E0599 - | -------- ^^^^^^ within `B`, the trait `Unpin` is not implemented for `PhantomPinned`, which is required by `B: Unpin` + | -------- ^^^^^^ within `B`, the trait `Unpin` is not implemented for `PhantomPinned` | | | required by a bound introduced by this call | diff --git a/tests/ui/pinned_drop/conditional-drop-impl.stderr b/tests/ui/pinned_drop/conditional-drop-impl.stderr index 6228ecbc..0e744385 100644 --- a/tests/ui/pinned_drop/conditional-drop-impl.stderr +++ b/tests/ui/pinned_drop/conditional-drop-impl.stderr @@ -14,7 +14,7 @@ error[E0277]: `T` cannot be unpinned --> tests/ui/pinned_drop/conditional-drop-impl.rs:18:15 | 18 | #[pin_project(PinnedDrop)] //~ ERROR E0277 - | ^^^^^^^^^^ the trait `Unpin` is not implemented for `T`, which is required by `PinnedDropImpl: PinnedDrop` + | ^^^^^^^^^^ the trait `Unpin` is not implemented for `T` | = note: consider using the `pin!` macro consider using `Box::pin` if you need to access the pinned value outside of the current scope diff --git a/tests/ui/unstable-features/trivial_bounds-feature-gate.stderr b/tests/ui/unstable-features/trivial_bounds-feature-gate.stderr index c33c78a1..69ddca6e 100644 --- a/tests/ui/unstable-features/trivial_bounds-feature-gate.stderr +++ b/tests/ui/unstable-features/trivial_bounds-feature-gate.stderr @@ -16,7 +16,7 @@ error[E0277]: `PhantomPinned` cannot be unpinned --> tests/ui/unstable-features/trivial_bounds-feature-gate.rs:18:28 | 18 | impl Unpin for B where Wrapper: Unpin {} //~ ERROR E0277 - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Unpin` is not implemented for `PhantomPinned`, which is required by `phantom_pinned::Wrapper: Unpin` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Unpin` is not implemented for `PhantomPinned` | = note: consider using the `pin!` macro consider using `Box::pin` if you need to access the pinned value outside of the current scope @@ -35,7 +35,7 @@ error[E0277]: `PhantomPinned` cannot be unpinned --> tests/ui/unstable-features/trivial_bounds-feature-gate.rs:36:28 | 36 | impl Unpin for A where Inner: Unpin {} //~ ERROR E0277 - | ^^^^^^^^^^^^ within `Inner`, the trait `Unpin` is not implemented for `PhantomPinned`, which is required by `Inner: Unpin` + | ^^^^^^^^^^^^ within `Inner`, the trait `Unpin` is not implemented for `PhantomPinned` | = note: consider using the `pin!` macro consider using `Box::pin` if you need to access the pinned value outside of the current scope @@ -54,7 +54,7 @@ error[E0277]: `PhantomPinned` cannot be unpinned --> tests/ui/unstable-features/trivial_bounds-feature-gate.rs:44:28 | 44 | impl Unpin for B where Wrapper: Unpin {} //~ ERROR E0277 - | ^^^^^^^^^^^^^^^^^^^^^ within `Inner`, the trait `Unpin` is not implemented for `PhantomPinned`, which is required by `inner::Wrapper: Unpin` + | ^^^^^^^^^^^^^^^^^^^^^ within `Inner`, the trait `Unpin` is not implemented for `PhantomPinned` | = note: consider using the `pin!` macro consider using `Box::pin` if you need to access the pinned value outside of the current scope