|
1 | 1 | error[E0277]: `*const ()` cannot be sent between threads safely
|
2 |
| - --> $DIR/not-send.rs:18:5 |
| 2 | + --> $DIR/not-send.rs:19:5 |
3 | 3 | |
|
4 |
| -11 | fn is_send<T>() |
| 4 | +12 | fn is_send<T>() |
5 | 5 | | ------- required by a bound in this
|
6 |
| -12 | where |
7 |
| -13 | T: Send, |
| 6 | +13 | where |
| 7 | +14 | T: Send, |
8 | 8 | | ---- required by this bound in `is_send`
|
9 | 9 | ...
|
10 |
| -18 | is_send::<Consumer<NotSend, _, 4>>(); |
11 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely |
| 10 | +19 | is_send::<Consumer<NotSend, 4>>(); |
| 11 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely |
12 | 12 | |
|
13 | 13 | = help: within `PhantomData<*const ()>`, the trait `Send` is not implemented for `*const ()`
|
14 | 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>` |
| 15 | + = note: required because of the requirements on the impl of `Send` for `Consumer<'_, PhantomData<*const ()>, 4_usize>` |
16 | 16 |
|
17 | 17 | error[E0277]: `*const ()` cannot be sent between threads safely
|
18 |
| - --> $DIR/not-send.rs:19:5 |
| 18 | + --> $DIR/not-send.rs:20:5 |
19 | 19 | |
|
20 |
| -11 | fn is_send<T>() |
| 20 | +12 | fn is_send<T>() |
21 | 21 | | ------- required by a bound in this
|
22 |
| -12 | where |
23 |
| -13 | T: Send, |
| 22 | +13 | where |
| 23 | +14 | T: Send, |
24 | 24 | | ---- required by this bound in `is_send`
|
25 | 25 | ...
|
26 |
| -19 | is_send::<Producer<NotSend, _, 4>>(); |
27 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely |
| 26 | +20 | is_send::<Producer<NotSend, 4>>(); |
| 27 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely |
28 | 28 | |
|
29 | 29 | = help: within `PhantomData<*const ()>`, the trait `Send` is not implemented for `*const ()`
|
30 | 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>` |
| 31 | + = note: required because of the requirements on the impl of `Send` for `Producer<'_, PhantomData<*const ()>, 4_usize>` |
32 | 32 |
|
33 | 33 | error[E0277]: `*const ()` cannot be sent between threads safely
|
34 |
| - --> $DIR/not-send.rs:20:5 |
| 34 | + --> $DIR/not-send.rs:21:5 |
35 | 35 | |
|
36 |
| -11 | fn is_send<T>() |
| 36 | +12 | fn is_send<T>() |
37 | 37 | | ------- required by a bound in this
|
38 |
| -12 | where |
39 |
| -13 | T: Send, |
| 38 | +13 | where |
| 39 | +14 | T: Send, |
40 | 40 | | ---- required by this bound in `is_send`
|
41 | 41 | ...
|
42 |
| -20 | is_send::<Queue<NotSend, _, 4>>(); |
43 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely |
| 42 | +21 | is_send::<Queue<NotSend, 4>>(); |
| 43 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely |
44 | 44 | |
|
45 |
| - = help: within `Queue<PhantomData<*const ()>, _, 4_usize>`, the trait `Send` is not implemented for `*const ()` |
| 45 | + = help: within `Queue<PhantomData<*const ()>, 4_usize>`, the trait `Send` is not implemented for `*const ()` |
46 | 46 | = note: required because it appears within the type `PhantomData<*const ()>`
|
47 |
| - = note: required because it appears within the type `[PhantomData<*const ()>; 4]` |
48 |
| - = note: required because it appears within the type `ManuallyDrop<[PhantomData<*const ()>; 4]>` |
49 |
| - = note: required because it appears within the type `MaybeUninit<[PhantomData<*const ()>; 4]>` |
50 |
| - = note: required because it appears within the type `Queue<PhantomData<*const ()>, _, 4_usize>` |
| 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>` |
51 | 52 |
|
52 | 53 | error[E0277]: `*const ()` cannot be sent between threads safely
|
53 |
| - --> $DIR/not-send.rs:21:5 |
| 54 | + --> $DIR/not-send.rs:22:5 |
54 | 55 | |
|
55 |
| -11 | fn is_send<T>() |
| 56 | +12 | fn is_send<T>() |
56 | 57 | | ------- required by a bound in this
|
57 |
| -12 | where |
58 |
| -13 | T: Send, |
| 58 | +13 | where |
| 59 | +14 | T: Send, |
59 | 60 | | ---- required by this bound in `is_send`
|
60 | 61 | ...
|
61 |
| -21 | is_send::<heapless::Vec<NotSend, 4>>(); |
62 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely |
| 62 | +22 | is_send::<Vec<NotSend, 4>>(); |
| 63 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely |
63 | 64 | |
|
64 | 65 | = help: within `heapless::Vec<PhantomData<*const ()>, 4_usize>`, the trait `Send` is not implemented for `*const ()`
|
65 | 66 | = note: required because it appears within the type `PhantomData<*const ()>`
|
66 | 67 | = note: required because it appears within the type `[PhantomData<*const ()>; 4]`
|
67 | 68 | = note: required because it appears within the type `ManuallyDrop<[PhantomData<*const ()>; 4]>`
|
68 | 69 | = note: required because it appears within the type `MaybeUninit<[PhantomData<*const ()>; 4]>`
|
69 | 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 |
| 74 | + | |
| 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 |
| 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