Skip to content

Commit

Permalink
Update ui test suite to nightly-2024-02-01
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Feb 1, 2024
1 parent 35d5d36 commit be9ddf3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions tests/ui/opaque_autotraits.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/opaque_not_sized.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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
|
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/rust_pinned.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/vector_autotraits.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit be9ddf3

Please sign in to comment.