|
1 | 1 | error[E0277]: `*const ()` cannot be sent between threads safely
|
2 | 2 | --> $DIR/not-send.rs:19:5
|
3 | 3 | |
|
4 |
| -19 | is_send::<Consumer<NotSend, consts::U4>>(); |
5 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely |
| 4 | +12 | fn is_send<T>() |
| 5 | + | ------- required by a bound in this |
| 6 | +13 | where |
| 7 | +14 | T: Send, |
| 8 | + | ---- required by this bound in `is_send` |
| 9 | +... |
| 10 | +19 | is_send::<Consumer<NotSend, 4>>(); |
| 11 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely |
6 | 12 | |
|
7 |
| - = help: within `std::marker::PhantomData<*const ()>`, the trait `std::marker::Send` is not implemented for `*const ()` |
8 |
| - = note: required because it appears within the type `std::marker::PhantomData<*const ()>` |
9 |
| - = note: required because of the requirements on the impl of `std::marker::Send` for `heapless::spsc::split::Consumer<'_, std::marker::PhantomData<*const ()>, typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UTerm, typenum::bit::B1>, typenum::bit::B0>, typenum::bit::B0>>` |
10 |
| -note: required by `is_send` |
11 |
| - --> $DIR/not-send.rs:12:1 |
12 |
| - | |
13 |
| -12 | / fn is_send<T>() |
14 |
| -13 | | where |
15 |
| -14 | | T: Send, |
16 |
| -15 | | { |
17 |
| -16 | | } |
18 |
| - | |_^ |
| 13 | + = help: within `PhantomData<*const ()>`, the trait `Send` is not implemented for `*const ()` |
| 14 | + = note: required because it appears within the type `PhantomData<*const ()>` |
| 15 | + = note: required because of the requirements on the impl of `Send` for `Consumer<'_, PhantomData<*const ()>, 4_usize>` |
19 | 16 |
|
20 | 17 | error[E0277]: `*const ()` cannot be sent between threads safely
|
21 | 18 | --> $DIR/not-send.rs:20:5
|
22 | 19 | |
|
23 |
| -20 | is_send::<Producer<NotSend, consts::U4>>(); |
24 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely |
25 |
| - | |
26 |
| - = help: within `std::marker::PhantomData<*const ()>`, the trait `std::marker::Send` is not implemented for `*const ()` |
27 |
| - = note: required because it appears within the type `std::marker::PhantomData<*const ()>` |
28 |
| - = note: required because of the requirements on the impl of `std::marker::Send` for `heapless::spsc::split::Producer<'_, std::marker::PhantomData<*const ()>, typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UTerm, typenum::bit::B1>, typenum::bit::B0>, typenum::bit::B0>>` |
29 |
| -note: required by `is_send` |
30 |
| - --> $DIR/not-send.rs:12:1 |
| 20 | +12 | fn is_send<T>() |
| 21 | + | ------- required by a bound in this |
| 22 | +13 | where |
| 23 | +14 | T: Send, |
| 24 | + | ---- required by this bound in `is_send` |
| 25 | +... |
| 26 | +20 | is_send::<Producer<NotSend, 4>>(); |
| 27 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely |
31 | 28 | |
|
32 |
| -12 | / fn is_send<T>() |
33 |
| -13 | | where |
34 |
| -14 | | T: Send, |
35 |
| -15 | | { |
36 |
| -16 | | } |
37 |
| - | |_^ |
| 29 | + = help: within `PhantomData<*const ()>`, the trait `Send` is not implemented for `*const ()` |
| 30 | + = note: required because it appears within the type `PhantomData<*const ()>` |
| 31 | + = note: required because of the requirements on the impl of `Send` for `Producer<'_, PhantomData<*const ()>, 4_usize>` |
38 | 32 |
|
39 | 33 | error[E0277]: `*const ()` cannot be sent between threads safely
|
40 | 34 | --> $DIR/not-send.rs:21:5
|
41 | 35 | |
|
42 |
| -21 | is_send::<Queue<NotSend, consts::U4>>(); |
43 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely |
44 |
| - | |
45 |
| - = help: within `std::marker::PhantomData<*const ()>`, the trait `std::marker::Send` is not implemented for `*const ()` |
46 |
| - = note: required because it appears within the type `std::marker::PhantomData<*const ()>` |
47 |
| - = note: required because of the requirements on the impl of `std::marker::Send` for `generic_array::GenericArray<std::marker::PhantomData<*const ()>, typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UTerm, typenum::bit::B1>, typenum::bit::B0>, typenum::bit::B0>>` |
48 |
| - = note: required because it appears within the type `std::mem::ManuallyDrop<generic_array::GenericArray<std::marker::PhantomData<*const ()>, typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UTerm, typenum::bit::B1>, typenum::bit::B0>, typenum::bit::B0>>>` |
49 |
| - = note: required because it appears within the type `std::mem::MaybeUninit<generic_array::GenericArray<std::marker::PhantomData<*const ()>, typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UTerm, typenum::bit::B1>, typenum::bit::B0>, typenum::bit::B0>>>` |
50 |
| - = note: required because it appears within the type `heapless::i::Queue<generic_array::GenericArray<std::marker::PhantomData<*const ()>, typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UTerm, typenum::bit::B1>, typenum::bit::B0>, typenum::bit::B0>>>` |
51 |
| - = note: required because it appears within the type `heapless::spsc::Queue<std::marker::PhantomData<*const ()>, typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UTerm, typenum::bit::B1>, typenum::bit::B0>, typenum::bit::B0>>` |
52 |
| -note: required by `is_send` |
53 |
| - --> $DIR/not-send.rs:12:1 |
| 36 | +12 | fn is_send<T>() |
| 37 | + | ------- required by a bound in this |
| 38 | +13 | where |
| 39 | +14 | T: Send, |
| 40 | + | ---- required by this bound in `is_send` |
| 41 | +... |
| 42 | +21 | is_send::<Queue<NotSend, 4>>(); |
| 43 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely |
54 | 44 | |
|
55 |
| -12 | / fn is_send<T>() |
56 |
| -13 | | where |
57 |
| -14 | | T: Send, |
58 |
| -15 | | { |
59 |
| -16 | | } |
60 |
| - | |_^ |
| 45 | + = help: within `Queue<PhantomData<*const ()>, 4_usize>`, the trait `Send` is not implemented for `*const ()` |
| 46 | + = note: required because it appears within the type `PhantomData<*const ()>` |
| 47 | + = note: required because it appears within the type `ManuallyDrop<PhantomData<*const ()>>` |
| 48 | + = note: required because it appears within the type `MaybeUninit<PhantomData<*const ()>>` |
| 49 | + = note: required because it appears within the type `UnsafeCell<MaybeUninit<PhantomData<*const ()>>>` |
| 50 | + = note: required because it appears within the type `[UnsafeCell<MaybeUninit<PhantomData<*const ()>>>; 4]` |
| 51 | + = note: required because it appears within the type `Queue<PhantomData<*const ()>, 4_usize>` |
61 | 52 |
|
62 | 53 | error[E0277]: `*const ()` cannot be sent between threads safely
|
63 | 54 | --> $DIR/not-send.rs:22:5
|
64 | 55 | |
|
65 |
| -22 | is_send::<heapless::Vec<NotSend, consts::U4>>(); |
66 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely |
| 56 | +12 | fn is_send<T>() |
| 57 | + | ------- required by a bound in this |
| 58 | +13 | where |
| 59 | +14 | T: Send, |
| 60 | + | ---- required by this bound in `is_send` |
| 61 | +... |
| 62 | +22 | is_send::<Vec<NotSend, 4>>(); |
| 63 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely |
| 64 | + | |
| 65 | + = help: within `heapless::Vec<PhantomData<*const ()>, 4_usize>`, the trait `Send` is not implemented for `*const ()` |
| 66 | + = note: required because it appears within the type `PhantomData<*const ()>` |
| 67 | + = note: required because it appears within the type `[PhantomData<*const ()>; 4]` |
| 68 | + = note: required because it appears within the type `ManuallyDrop<[PhantomData<*const ()>; 4]>` |
| 69 | + = note: required because it appears within the type `MaybeUninit<[PhantomData<*const ()>; 4]>` |
| 70 | + = note: required because it appears within the type `heapless::Vec<PhantomData<*const ()>, 4_usize>` |
| 71 | + |
| 72 | +error[E0277]: `*const ()` cannot be sent between threads safely |
| 73 | + --> $DIR/not-send.rs:23:5 |
67 | 74 | |
|
68 |
| - = help: within `std::marker::PhantomData<*const ()>`, the trait `std::marker::Send` is not implemented for `*const ()` |
69 |
| - = note: required because it appears within the type `std::marker::PhantomData<*const ()>` |
70 |
| - = note: required because of the requirements on the impl of `std::marker::Send` for `generic_array::GenericArray<std::marker::PhantomData<*const ()>, typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UTerm, typenum::bit::B1>, typenum::bit::B0>, typenum::bit::B0>>` |
71 |
| - = note: required because it appears within the type `std::mem::ManuallyDrop<generic_array::GenericArray<std::marker::PhantomData<*const ()>, typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UTerm, typenum::bit::B1>, typenum::bit::B0>, typenum::bit::B0>>>` |
72 |
| - = note: required because it appears within the type `std::mem::MaybeUninit<generic_array::GenericArray<std::marker::PhantomData<*const ()>, typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UTerm, typenum::bit::B1>, typenum::bit::B0>, typenum::bit::B0>>>` |
73 |
| - = note: required because it appears within the type `heapless::i::Vec<generic_array::GenericArray<std::marker::PhantomData<*const ()>, typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UTerm, typenum::bit::B1>, typenum::bit::B0>, typenum::bit::B0>>>` |
74 |
| - = note: required because it appears within the type `heapless::vec::Vec<std::marker::PhantomData<*const ()>, typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UTerm, typenum::bit::B1>, typenum::bit::B0>, typenum::bit::B0>>` |
75 |
| -note: required by `is_send` |
76 |
| - --> $DIR/not-send.rs:12:1 |
| 75 | +12 | fn is_send<T>() |
| 76 | + | ------- required by a bound in this |
| 77 | +13 | where |
| 78 | +14 | T: Send, |
| 79 | + | ---- required by this bound in `is_send` |
| 80 | +... |
| 81 | +23 | is_send::<HistoryBuffer<NotSend, 4>>(); |
| 82 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely |
77 | 83 | |
|
78 |
| -12 | / fn is_send<T>() |
79 |
| -13 | | where |
80 |
| -14 | | T: Send, |
81 |
| -15 | | { |
82 |
| -16 | | } |
83 |
| - | |_^ |
| 84 | + = help: within `HistoryBuffer<PhantomData<*const ()>, 4_usize>`, the trait `Send` is not implemented for `*const ()` |
| 85 | + = note: required because it appears within the type `PhantomData<*const ()>` |
| 86 | + = note: required because it appears within the type `ManuallyDrop<PhantomData<*const ()>>` |
| 87 | + = note: required because it appears within the type `MaybeUninit<PhantomData<*const ()>>` |
| 88 | + = note: required because it appears within the type `[MaybeUninit<PhantomData<*const ()>>; 4]` |
| 89 | + = note: required because it appears within the type `HistoryBuffer<PhantomData<*const ()>, 4_usize>` |
0 commit comments