Skip to content

Commit 14da181

Browse files
committed
update cfail tests.
1 parent 217dde4 commit 14da181

File tree

1 file changed

+90
-30
lines changed

1 file changed

+90
-30
lines changed

cfail/ui/not-send.stderr

Lines changed: 90 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,99 +1,159 @@
11
error[E0277]: `*const ()` cannot be sent between threads safely
2-
--> $DIR/not-send.rs:19:15
2+
--> ui/not-send.rs:19:15
33
|
44
19 | is_send::<Consumer<NotSend, 4>>();
55
| ^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
66
|
77
= 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+
| ^^^^^^^^^^^
913
= note: required for `Consumer<'_, PhantomData<*const ()>, 4>` to implement `Send`
1014
note: required by a bound in `is_send`
11-
--> $DIR/not-send.rs:14:8
15+
--> ui/not-send.rs:14:8
1216
|
1317
12 | fn is_send<T>()
14-
| ------- required by a bound in this
18+
| ------- required by a bound in this function
1519
13 | where
1620
14 | T: Send,
1721
| ^^^^ required by this bound in `is_send`
1822

1923
error[E0277]: `*const ()` cannot be sent between threads safely
20-
--> $DIR/not-send.rs:20:15
24+
--> ui/not-send.rs:20:15
2125
|
2226
20 | is_send::<Producer<NotSend, 4>>();
2327
| ^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
2428
|
2529
= 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+
| ^^^^^^^^^^^
2735
= note: required for `Producer<'_, PhantomData<*const ()>, 4>` to implement `Send`
2836
note: required by a bound in `is_send`
29-
--> $DIR/not-send.rs:14:8
37+
--> ui/not-send.rs:14:8
3038
|
3139
12 | fn is_send<T>()
32-
| ------- required by a bound in this
40+
| ------- required by a bound in this function
3341
13 | where
3442
14 | T: Send,
3543
| ^^^^ required by this bound in `is_send`
3644

3745
error[E0277]: `*const ()` cannot be sent between threads safely
38-
--> $DIR/not-send.rs:21:15
46+
--> ui/not-send.rs:21:15
3947
|
4048
21 | is_send::<Queue<NotSend, 4>>();
4149
| ^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
4250
|
4351
= 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+
| ^^^^^^^^^^
4872
= 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+
| ^^^^^
5078
note: required by a bound in `is_send`
51-
--> $DIR/not-send.rs:14:8
79+
--> ui/not-send.rs:14:8
5280
|
5381
12 | fn is_send<T>()
54-
| ------- required by a bound in this
82+
| ------- required by a bound in this function
5583
13 | where
5684
14 | T: Send,
5785
| ^^^^ required by this bound in `is_send`
5886

5987
error[E0277]: `*const ()` cannot be sent between threads safely
60-
--> $DIR/not-send.rs:22:15
88+
--> ui/not-send.rs:22:15
6189
|
6290
22 | is_send::<Vec<NotSend, 4>>();
6391
| ^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
6492
|
6593
= 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+
| ^^^^^^^^^^^
69109
= 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+
| ^^^
71115
note: required by a bound in `is_send`
72-
--> $DIR/not-send.rs:14:8
116+
--> ui/not-send.rs:14:8
73117
|
74118
12 | fn is_send<T>()
75-
| ------- required by a bound in this
119+
| ------- required by a bound in this function
76120
13 | where
77121
14 | T: Send,
78122
| ^^^^ required by this bound in `is_send`
79123

80124
error[E0277]: `*const ()` cannot be sent between threads safely
81-
--> $DIR/not-send.rs:23:15
125+
--> ui/not-send.rs:23:15
82126
|
83127
23 | is_send::<HistoryBuffer<NotSend, 4>>();
84128
| ^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
85129
|
86130
= 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+
| ^^^^^^^^^^^
90146
= 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+
| ^^^^^^^^^^^^^
92152
note: required by a bound in `is_send`
93-
--> $DIR/not-send.rs:14:8
153+
--> ui/not-send.rs:14:8
94154
|
95155
12 | fn is_send<T>()
96-
| ------- required by a bound in this
156+
| ------- required by a bound in this function
97157
13 | where
98158
14 | T: Send,
99159
| ^^^^ required by this bound in `is_send`

0 commit comments

Comments
 (0)