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