Update ui test suite to nightly-2024-02-01

This commit is contained in:
David Tolnay 2024-01-31 18:43:46 -08:00
parent 35d5d36d3e
commit be9ddf3c10
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
4 changed files with 6 additions and 6 deletions

View File

@ -4,7 +4,7 @@ error[E0277]: `*const cxx::void` cannot be sent between threads safely
13 | assert_send::<ffi::Opaque>();
| ^^^^^^^^^^^ `*const cxx::void` cannot be sent between threads safely
|
= help: within `ffi::Opaque`, the trait `Send` is not implemented for `*const cxx::void`
= help: within `ffi::Opaque`, the trait `Send` is not implemented for `*const cxx::void`, which is required by `ffi::Opaque: Send`
= 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::<ffi::Opaque>();
| ^^^^^^^^^^^ `*const cxx::void` cannot be shared between threads safely
|
= help: within `ffi::Opaque`, the trait `Sync` is not implemented for `*const cxx::void`
= help: within `ffi::Opaque`, the trait `Sync` is not implemented for `*const cxx::void`, which is required by `ffi::Opaque: Sync`
= 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::<ffi::Opaque>();
| ^^^^^^^^^^^ within `ffi::Opaque`, the trait `Unpin` is not implemented for `PhantomPinned`
| ^^^^^^^^^^^ within `ffi::Opaque`, the trait `Unpin` is not implemented for `PhantomPinned`, which is required by `ffi::Opaque: Unpin`
|
= note: consider using the `pin!` macro
consider using `Box::pin` if you need to access the pinned value outside of the current scope

View File

@ -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`
= help: within `TypeR`, the trait `Sized` is not implemented for `str`, which is required by `TypeR: Sized`
note: required because it appears within the type `TypeR`
--> tests/ui/opaque_not_sized.rs:8:8
|

View File

@ -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`
| ^^^^^^ within `Pinned`, the trait `Unpin` is not implemented for `PhantomPinned`, which is required by `Pinned: Unpin`
|
= note: consider using the `pin!` macro
consider using `Box::pin` if you need to access the pinned value outside of the current scope

View File

@ -4,7 +4,7 @@ error[E0277]: `*const cxx::void` cannot be sent between threads safely
20 | assert_send::<CxxVector<ffi::NotThreadSafe>>();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const cxx::void` cannot be sent between threads safely
|
= help: within `CxxVector<NotThreadSafe>`, the trait `Send` is not implemented for `*const cxx::void`
= help: within `CxxVector<NotThreadSafe>`, the trait `Send` is not implemented for `*const cxx::void`, which is required by `CxxVector<NotThreadSafe>: Send`
= 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