mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-10-01 06:20:34 +00:00
Fix cfail tests
This commit is contained in:
parent
2fe9669b91
commit
af8cf129f6
@ -72,7 +72,7 @@ error[E0277]: `*const ()` cannot be sent between threads safely
|
|||||||
22 | is_send::<Vec<NotSend, 4>>();
|
22 | is_send::<Vec<NotSend, 4>>();
|
||||||
| ^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
|
| ^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
|
||||||
|
|
|
|
||||||
= help: within `heapless::Vec<PhantomData<*const ()>, 4>`, the trait `Send` is not implemented for `*const ()`
|
= help: within `heapless::vec::VecInner<[MaybeUninit<PhantomData<*const ()>>; 4]>`, the trait `Send` is not implemented for `*const ()`
|
||||||
note: required because it appears within the type `PhantomData<*const ()>`
|
note: required because it appears within the type `PhantomData<*const ()>`
|
||||||
--> $RUST/core/src/marker.rs
|
--> $RUST/core/src/marker.rs
|
||||||
note: required because it appears within the type `ManuallyDrop<PhantomData<*const ()>>`
|
note: required because it appears within the type `ManuallyDrop<PhantomData<*const ()>>`
|
||||||
@ -80,11 +80,11 @@ note: required because it appears within the type `ManuallyDrop<PhantomData<*con
|
|||||||
note: required because it appears within the type `MaybeUninit<PhantomData<*const ()>>`
|
note: required because it appears within the type `MaybeUninit<PhantomData<*const ()>>`
|
||||||
--> $RUST/core/src/mem/maybe_uninit.rs
|
--> $RUST/core/src/mem/maybe_uninit.rs
|
||||||
= note: required because it appears within the type `[MaybeUninit<PhantomData<*const ()>>; 4]`
|
= note: required because it appears within the type `[MaybeUninit<PhantomData<*const ()>>; 4]`
|
||||||
note: required because it appears within the type `Vec<PhantomData<*const ()>, 4>`
|
note: required because it appears within the type `VecInner<[MaybeUninit<PhantomData<*const ()>>; 4]>`
|
||||||
--> $HEAPLESS/src/vec.rs
|
--> $HEAPLESS/src/vec.rs
|
||||||
|
|
|
|
||||||
| pub struct Vec<T, const N: usize> {
|
| pub struct VecInner<B: ?Sized + VecDrop> {
|
||||||
| ^^^
|
| ^^^^^^^^
|
||||||
note: required by a bound in `is_send`
|
note: required by a bound in `is_send`
|
||||||
--> ui/not-send.rs:14:8
|
--> ui/not-send.rs:14:8
|
||||||
|
|
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user