|
1 | 1 | error[E0277]: `*const ()` cannot be sent between threads safely
|
2 |
| - --> $DIR/not-send.rs:19:15 |
| 2 | + --> ui/not-send.rs:19:15 |
3 | 3 | |
|
4 | 4 | 19 | is_send::<Consumer<NotSend, 4>>();
|
5 | 5 | | ^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
|
6 | 6 | |
|
7 | 7 | = help: within `PhantomData<*const ()>`, the trait `Send` is not implemented for `*const ()`
|
8 |
| - = note: required because it appears within the type `PhantomData<*const ()>` |
| 8 | +note: required because it appears within the type `PhantomData<*const ()>` |
| 9 | + --> $RUST/core/src/marker.rs |
| 10 | + | |
| 11 | + | pub struct PhantomData<T: ?Sized>; |
| 12 | + | ^^^^^^^^^^^ |
9 | 13 | = note: required for `Consumer<'_, PhantomData<*const ()>, 4>` to implement `Send`
|
10 | 14 | note: required by a bound in `is_send`
|
11 |
| - --> $DIR/not-send.rs:14:8 |
| 15 | + --> ui/not-send.rs:14:8 |
12 | 16 | |
|
13 | 17 | 12 | fn is_send<T>()
|
14 |
| - | ------- required by a bound in this |
| 18 | + | ------- required by a bound in this function |
15 | 19 | 13 | where
|
16 | 20 | 14 | T: Send,
|
17 | 21 | | ^^^^ required by this bound in `is_send`
|
18 | 22 |
|
19 | 23 | error[E0277]: `*const ()` cannot be sent between threads safely
|
20 |
| - --> $DIR/not-send.rs:20:15 |
| 24 | + --> ui/not-send.rs:20:15 |
21 | 25 | |
|
22 | 26 | 20 | is_send::<Producer<NotSend, 4>>();
|
23 | 27 | | ^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
|
24 | 28 | |
|
25 | 29 | = help: within `PhantomData<*const ()>`, the trait `Send` is not implemented for `*const ()`
|
26 |
| - = note: required because it appears within the type `PhantomData<*const ()>` |
| 30 | +note: required because it appears within the type `PhantomData<*const ()>` |
| 31 | + --> $RUST/core/src/marker.rs |
| 32 | + | |
| 33 | + | pub struct PhantomData<T: ?Sized>; |
| 34 | + | ^^^^^^^^^^^ |
27 | 35 | = note: required for `Producer<'_, PhantomData<*const ()>, 4>` to implement `Send`
|
28 | 36 | note: required by a bound in `is_send`
|
29 |
| - --> $DIR/not-send.rs:14:8 |
| 37 | + --> ui/not-send.rs:14:8 |
30 | 38 | |
|
31 | 39 | 12 | fn is_send<T>()
|
32 |
| - | ------- required by a bound in this |
| 40 | + | ------- required by a bound in this function |
33 | 41 | 13 | where
|
34 | 42 | 14 | T: Send,
|
35 | 43 | | ^^^^ required by this bound in `is_send`
|
36 | 44 |
|
37 | 45 | error[E0277]: `*const ()` cannot be sent between threads safely
|
38 |
| - --> $DIR/not-send.rs:21:15 |
| 46 | + --> ui/not-send.rs:21:15 |
39 | 47 | |
|
40 | 48 | 21 | is_send::<Queue<NotSend, 4>>();
|
41 | 49 | | ^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
|
42 | 50 | |
|
43 | 51 | = help: within `Queue<PhantomData<*const ()>, 4>`, the trait `Send` is not implemented for `*const ()`
|
44 |
| - = note: required because it appears within the type `PhantomData<*const ()>` |
45 |
| - = note: required because it appears within the type `ManuallyDrop<PhantomData<*const ()>>` |
46 |
| - = note: required because it appears within the type `MaybeUninit<PhantomData<*const ()>>` |
47 |
| - = note: required because it appears within the type `UnsafeCell<MaybeUninit<PhantomData<*const ()>>>` |
| 52 | +note: required because it appears within the type `PhantomData<*const ()>` |
| 53 | + --> $RUST/core/src/marker.rs |
| 54 | + | |
| 55 | + | pub struct PhantomData<T: ?Sized>; |
| 56 | + | ^^^^^^^^^^^ |
| 57 | +note: required because it appears within the type `ManuallyDrop<PhantomData<*const ()>>` |
| 58 | + --> $RUST/core/src/mem/manually_drop.rs |
| 59 | + | |
| 60 | + | pub struct ManuallyDrop<T: ?Sized> { |
| 61 | + | ^^^^^^^^^^^^ |
| 62 | +note: required because it appears within the type `MaybeUninit<PhantomData<*const ()>>` |
| 63 | + --> $RUST/core/src/mem/maybe_uninit.rs |
| 64 | + | |
| 65 | + | pub union MaybeUninit<T> { |
| 66 | + | ^^^^^^^^^^^ |
| 67 | +note: required because it appears within the type `UnsafeCell<MaybeUninit<PhantomData<*const ()>>>` |
| 68 | + --> $RUST/core/src/cell.rs |
| 69 | + | |
| 70 | + | pub struct UnsafeCell<T: ?Sized> { |
| 71 | + | ^^^^^^^^^^ |
48 | 72 | = note: required because it appears within the type `[UnsafeCell<MaybeUninit<PhantomData<*const ()>>>; 4]`
|
49 |
| - = note: required because it appears within the type `Queue<PhantomData<*const ()>, 4>` |
| 73 | +note: required because it appears within the type `Queue<PhantomData<*const ()>, 4>` |
| 74 | + --> $HEAPLESS/src/spsc.rs |
| 75 | + | |
| 76 | + | pub struct Queue<T, const N: usize> { |
| 77 | + | ^^^^^ |
50 | 78 | note: required by a bound in `is_send`
|
51 |
| - --> $DIR/not-send.rs:14:8 |
| 79 | + --> ui/not-send.rs:14:8 |
52 | 80 | |
|
53 | 81 | 12 | fn is_send<T>()
|
54 |
| - | ------- required by a bound in this |
| 82 | + | ------- required by a bound in this function |
55 | 83 | 13 | where
|
56 | 84 | 14 | T: Send,
|
57 | 85 | | ^^^^ required by this bound in `is_send`
|
58 | 86 |
|
59 | 87 | error[E0277]: `*const ()` cannot be sent between threads safely
|
60 |
| - --> $DIR/not-send.rs:22:15 |
| 88 | + --> ui/not-send.rs:22:15 |
61 | 89 | |
|
62 | 90 | 22 | is_send::<Vec<NotSend, 4>>();
|
63 | 91 | | ^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
|
64 | 92 | |
|
65 | 93 | = help: within `heapless::Vec<PhantomData<*const ()>, 4>`, 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 `ManuallyDrop<PhantomData<*const ()>>` |
68 |
| - = note: required because it appears within the type `MaybeUninit<PhantomData<*const ()>>` |
| 94 | +note: required because it appears within the type `PhantomData<*const ()>` |
| 95 | + --> $RUST/core/src/marker.rs |
| 96 | + | |
| 97 | + | pub struct PhantomData<T: ?Sized>; |
| 98 | + | ^^^^^^^^^^^ |
| 99 | +note: required because it appears within the type `ManuallyDrop<PhantomData<*const ()>>` |
| 100 | + --> $RUST/core/src/mem/manually_drop.rs |
| 101 | + | |
| 102 | + | pub struct ManuallyDrop<T: ?Sized> { |
| 103 | + | ^^^^^^^^^^^^ |
| 104 | +note: required because it appears within the type `MaybeUninit<PhantomData<*const ()>>` |
| 105 | + --> $RUST/core/src/mem/maybe_uninit.rs |
| 106 | + | |
| 107 | + | pub union MaybeUninit<T> { |
| 108 | + | ^^^^^^^^^^^ |
69 | 109 | = 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>` |
| 110 | +note: required because it appears within the type `Vec<PhantomData<*const ()>, 4>` |
| 111 | + --> $HEAPLESS/src/vec.rs |
| 112 | + | |
| 113 | + | pub struct Vec<T, const N: usize> { |
| 114 | + | ^^^ |
71 | 115 | note: required by a bound in `is_send`
|
72 |
| - --> $DIR/not-send.rs:14:8 |
| 116 | + --> ui/not-send.rs:14:8 |
73 | 117 | |
|
74 | 118 | 12 | fn is_send<T>()
|
75 |
| - | ------- required by a bound in this |
| 119 | + | ------- required by a bound in this function |
76 | 120 | 13 | where
|
77 | 121 | 14 | T: Send,
|
78 | 122 | | ^^^^ required by this bound in `is_send`
|
79 | 123 |
|
80 | 124 | error[E0277]: `*const ()` cannot be sent between threads safely
|
81 |
| - --> $DIR/not-send.rs:23:15 |
| 125 | + --> ui/not-send.rs:23:15 |
82 | 126 | |
|
83 | 127 | 23 | is_send::<HistoryBuffer<NotSend, 4>>();
|
84 | 128 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
|
85 | 129 | |
|
86 | 130 | = help: within `HistoryBuffer<PhantomData<*const ()>, 4>`, the trait `Send` is not implemented for `*const ()`
|
87 |
| - = note: required because it appears within the type `PhantomData<*const ()>` |
88 |
| - = note: required because it appears within the type `ManuallyDrop<PhantomData<*const ()>>` |
89 |
| - = note: required because it appears within the type `MaybeUninit<PhantomData<*const ()>>` |
| 131 | +note: required because it appears within the type `PhantomData<*const ()>` |
| 132 | + --> $RUST/core/src/marker.rs |
| 133 | + | |
| 134 | + | pub struct PhantomData<T: ?Sized>; |
| 135 | + | ^^^^^^^^^^^ |
| 136 | +note: required because it appears within the type `ManuallyDrop<PhantomData<*const ()>>` |
| 137 | + --> $RUST/core/src/mem/manually_drop.rs |
| 138 | + | |
| 139 | + | pub struct ManuallyDrop<T: ?Sized> { |
| 140 | + | ^^^^^^^^^^^^ |
| 141 | +note: required because it appears within the type `MaybeUninit<PhantomData<*const ()>>` |
| 142 | + --> $RUST/core/src/mem/maybe_uninit.rs |
| 143 | + | |
| 144 | + | pub union MaybeUninit<T> { |
| 145 | + | ^^^^^^^^^^^ |
90 | 146 | = note: required because it appears within the type `[MaybeUninit<PhantomData<*const ()>>; 4]`
|
91 |
| - = note: required because it appears within the type `HistoryBuffer<PhantomData<*const ()>, 4>` |
| 147 | +note: required because it appears within the type `HistoryBuffer<PhantomData<*const ()>, 4>` |
| 148 | + --> $HEAPLESS/src/histbuf.rs |
| 149 | + | |
| 150 | + | pub struct HistoryBuffer<T, const N: usize> { |
| 151 | + | ^^^^^^^^^^^^^ |
92 | 152 | note: required by a bound in `is_send`
|
93 |
| - --> $DIR/not-send.rs:14:8 |
| 153 | + --> ui/not-send.rs:14:8 |
94 | 154 | |
|
95 | 155 | 12 | fn is_send<T>()
|
96 |
| - | ------- required by a bound in this |
| 156 | + | ------- required by a bound in this function |
97 | 157 | 13 | where
|
98 | 158 | 14 | T: Send,
|
99 | 159 | | ^^^^ required by this bound in `is_send`
|
0 commit comments