From 09981f5448f53249ed7595c4410372b3d0c83fa0 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 29 Oct 2024 19:17:09 -0700 Subject: [PATCH] Update ui test suite to nightly-2024-10-30 --- tests/ui/opaque_autotraits.stderr | 6 +++--- tests/ui/opaque_not_sized.stderr | 2 +- tests/ui/rust_pinned.stderr | 2 +- tests/ui/vector_autotraits.stderr | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/ui/opaque_autotraits.stderr b/tests/ui/opaque_autotraits.stderr index 0a797b460..64a64ee6a 100644 --- a/tests/ui/opaque_autotraits.stderr +++ b/tests/ui/opaque_autotraits.stderr @@ -4,7 +4,7 @@ error[E0277]: `*const cxx::void` cannot be sent between threads safely 13 | assert_send::(); | ^^^^^^^^^^^ `*const cxx::void` cannot be sent between threads safely | - = help: within `ffi::Opaque`, the trait `Send` is not implemented for `*const cxx::void`, which is required by `ffi::Opaque: Send` + = help: within `ffi::Opaque`, the trait `Send` is not implemented for `*const cxx::void` = note: required because it appears within the type `[*const cxx::void; 0]` note: required because it appears within the type `cxx::private::Opaque` --> src/opaque.rs @@ -28,7 +28,7 @@ error[E0277]: `*const cxx::void` cannot be shared between threads safely 14 | assert_sync::(); | ^^^^^^^^^^^ `*const cxx::void` cannot be shared between threads safely | - = help: within `ffi::Opaque`, the trait `Sync` is not implemented for `*const cxx::void`, which is required by `ffi::Opaque: Sync` + = help: within `ffi::Opaque`, the trait `Sync` is not implemented for `*const cxx::void` = note: required because it appears within the type `[*const cxx::void; 0]` note: required because it appears within the type `cxx::private::Opaque` --> src/opaque.rs @@ -50,7 +50,7 @@ error[E0277]: `PhantomPinned` cannot be unpinned --> tests/ui/opaque_autotraits.rs:15:20 | 15 | assert_unpin::(); - | ^^^^^^^^^^^ within `ffi::Opaque`, the trait `Unpin` is not implemented for `PhantomPinned`, which is required by `ffi::Opaque: Unpin` + | ^^^^^^^^^^^ within `ffi::Opaque`, 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/opaque_not_sized.stderr b/tests/ui/opaque_not_sized.stderr index 732ffeb95..85be4af3b 100644 --- a/tests/ui/opaque_not_sized.stderr +++ b/tests/ui/opaque_not_sized.stderr @@ -4,7 +4,7 @@ error[E0277]: the size for values of type `str` cannot be known at compilation t 4 | type TypeR; | ^^^^^ doesn't have a size known at compile-time | - = help: within `TypeR`, the trait `Sized` is not implemented for `str`, which is required by `TypeR: Sized` + = help: within `TypeR`, the trait `Sized` is not implemented for `str` note: required because it appears within the type `TypeR` --> tests/ui/opaque_not_sized.rs:8:8 | diff --git a/tests/ui/rust_pinned.stderr b/tests/ui/rust_pinned.stderr index 94079d9a0..ba1852b84 100644 --- a/tests/ui/rust_pinned.stderr +++ b/tests/ui/rust_pinned.stderr @@ -2,7 +2,7 @@ error[E0277]: `PhantomPinned` cannot be unpinned --> tests/ui/rust_pinned.rs:6:14 | 6 | type Pinned; - | ^^^^^^ within `Pinned`, the trait `Unpin` is not implemented for `PhantomPinned`, which is required by `Pinned: Unpin` + | ^^^^^^ within `Pinned`, 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/vector_autotraits.stderr b/tests/ui/vector_autotraits.stderr index 1f0c522e1..5bdb8975b 100644 --- a/tests/ui/vector_autotraits.stderr +++ b/tests/ui/vector_autotraits.stderr @@ -4,7 +4,7 @@ error[E0277]: `*const cxx::void` cannot be sent between threads safely 20 | assert_send::>(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const cxx::void` cannot be sent between threads safely | - = help: within `CxxVector`, the trait `Send` is not implemented for `*const cxx::void`, which is required by `CxxVector: Send` + = help: within `CxxVector`, the trait `Send` is not implemented for `*const cxx::void` = note: required because it appears within the type `[*const cxx::void; 0]` note: required because it appears within the type `cxx::private::Opaque` --> src/opaque.rs