@@ -7,6 +7,9 @@ error[E0277]: `*const ()` cannot be sent between threads safely
7
7
= help: within `PhantomData<*const ()>`, the trait `Send` is not implemented for `*const ()`
8
8
note: required because it appears within the type `PhantomData<*const ()>`
9
9
--> $RUST/core/src/marker.rs
10
+ |
11
+ | pub struct PhantomData<T: ?Sized>;
12
+ | ^^^^^^^^^^^
10
13
= note: required for `Consumer<'_, PhantomData<*const ()>, 4>` to implement `Send`
11
14
note: required by a bound in `is_send`
12
15
--> ui/not-send.rs:14:8
@@ -26,6 +29,9 @@ error[E0277]: `*const ()` cannot be sent between threads safely
26
29
= help: within `PhantomData<*const ()>`, the trait `Send` is not implemented for `*const ()`
27
30
note: required because it appears within the type `PhantomData<*const ()>`
28
31
--> $RUST/core/src/marker.rs
32
+ |
33
+ | pub struct PhantomData<T: ?Sized>;
34
+ | ^^^^^^^^^^^
29
35
= note: required for `Producer<'_, PhantomData<*const ()>, 4>` to implement `Send`
30
36
note: required by a bound in `is_send`
31
37
--> ui/not-send.rs:14:8
@@ -45,12 +51,24 @@ error[E0277]: `*const ()` cannot be sent between threads safely
45
51
= help: within `Queue<PhantomData<*const ()>, 4>`, the trait `Send` is not implemented for `*const ()`
46
52
note: required because it appears within the type `PhantomData<*const ()>`
47
53
--> $RUST/core/src/marker.rs
54
+ |
55
+ | pub struct PhantomData<T: ?Sized>;
56
+ | ^^^^^^^^^^^
48
57
note: required because it appears within the type `ManuallyDrop<PhantomData<*const ()>>`
49
58
--> $RUST/core/src/mem/manually_drop.rs
59
+ |
60
+ | pub struct ManuallyDrop<T: ?Sized> {
61
+ | ^^^^^^^^^^^^
50
62
note: required because it appears within the type `MaybeUninit<PhantomData<*const ()>>`
51
63
--> $RUST/core/src/mem/maybe_uninit.rs
64
+ |
65
+ | pub union MaybeUninit<T> {
66
+ | ^^^^^^^^^^^
52
67
note: required because it appears within the type `UnsafeCell<MaybeUninit<PhantomData<*const ()>>>`
53
68
--> $RUST/core/src/cell.rs
69
+ |
70
+ | pub struct UnsafeCell<T: ?Sized> {
71
+ | ^^^^^^^^^^
54
72
= note: required because it appears within the type `[UnsafeCell<MaybeUninit<PhantomData<*const ()>>>; 4]`
55
73
note: required because it appears within the type `Queue<PhantomData<*const ()>, 4>`
56
74
--> $HEAPLESS/src/spsc.rs
@@ -75,13 +93,22 @@ error[E0277]: `*const ()` cannot be sent between threads safely
75
93
= help: within `heapless::Vec<PhantomData<*const ()>, 4>`, the trait `Send` is not implemented for `*const ()`
76
94
note: required because it appears within the type `PhantomData<*const ()>`
77
95
--> $RUST/core/src/marker.rs
96
+ |
97
+ | pub struct PhantomData<T: ?Sized>;
98
+ | ^^^^^^^^^^^
78
99
note: required because it appears within the type `ManuallyDrop<PhantomData<*const ()>>`
79
100
--> $RUST/core/src/mem/manually_drop.rs
101
+ |
102
+ | pub struct ManuallyDrop<T: ?Sized> {
103
+ | ^^^^^^^^^^^^
80
104
note: required because it appears within the type `MaybeUninit<PhantomData<*const ()>>`
81
105
--> $RUST/core/src/mem/maybe_uninit.rs
106
+ |
107
+ | pub union MaybeUninit<T> {
108
+ | ^^^^^^^^^^^
82
109
= note: required because it appears within the type `[MaybeUninit<PhantomData<*const ()>>; 4]`
83
110
note: required because it appears within the type `Vec<PhantomData<*const ()>, 4>`
84
- --> $HEAPLESS/src/vec.rs
111
+ --> $HEAPLESS/src/vec/mod .rs
85
112
|
86
113
| pub struct Vec<T, const N: usize> {
87
114
| ^^^
@@ -103,10 +130,19 @@ error[E0277]: `*const ()` cannot be sent between threads safely
103
130
= help: within `HistoryBuffer<PhantomData<*const ()>, 4>`, the trait `Send` is not implemented for `*const ()`
104
131
note: required because it appears within the type `PhantomData<*const ()>`
105
132
--> $RUST/core/src/marker.rs
133
+ |
134
+ | pub struct PhantomData<T: ?Sized>;
135
+ | ^^^^^^^^^^^
106
136
note: required because it appears within the type `ManuallyDrop<PhantomData<*const ()>>`
107
137
--> $RUST/core/src/mem/manually_drop.rs
138
+ |
139
+ | pub struct ManuallyDrop<T: ?Sized> {
140
+ | ^^^^^^^^^^^^
108
141
note: required because it appears within the type `MaybeUninit<PhantomData<*const ()>>`
109
142
--> $RUST/core/src/mem/maybe_uninit.rs
143
+ |
144
+ | pub union MaybeUninit<T> {
145
+ | ^^^^^^^^^^^
110
146
= note: required because it appears within the type `[MaybeUninit<PhantomData<*const ()>>; 4]`
111
147
note: required because it appears within the type `HistoryBuffer<PhantomData<*const ()>, 4>`
112
148
--> $HEAPLESS/src/histbuf.rs
0 commit comments