Skip to content

Commit 967e9f7

Browse files
committed
Update cfail output.
1 parent df1c274 commit 967e9f7

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

cfail/ui/not-send.stderr

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ error[E0277]: `*const ()` cannot be sent between threads safely
77
= help: within `PhantomData<*const ()>`, the trait `Send` is not implemented for `*const ()`
88
note: required because it appears within the type `PhantomData<*const ()>`
99
--> $RUST/core/src/marker.rs
10+
|
11+
| pub struct PhantomData<T: ?Sized>;
12+
| ^^^^^^^^^^^
1013
= note: required for `Consumer<'_, PhantomData<*const ()>, 4>` to implement `Send`
1114
note: required by a bound in `is_send`
1215
--> ui/not-send.rs:14:8
@@ -26,6 +29,9 @@ error[E0277]: `*const ()` cannot be sent between threads safely
2629
= help: within `PhantomData<*const ()>`, the trait `Send` is not implemented for `*const ()`
2730
note: required because it appears within the type `PhantomData<*const ()>`
2831
--> $RUST/core/src/marker.rs
32+
|
33+
| pub struct PhantomData<T: ?Sized>;
34+
| ^^^^^^^^^^^
2935
= note: required for `Producer<'_, PhantomData<*const ()>, 4>` to implement `Send`
3036
note: required by a bound in `is_send`
3137
--> ui/not-send.rs:14:8
@@ -45,12 +51,24 @@ error[E0277]: `*const ()` cannot be sent between threads safely
4551
= help: within `Queue<PhantomData<*const ()>, 4>`, the trait `Send` is not implemented for `*const ()`
4652
note: required because it appears within the type `PhantomData<*const ()>`
4753
--> $RUST/core/src/marker.rs
54+
|
55+
| pub struct PhantomData<T: ?Sized>;
56+
| ^^^^^^^^^^^
4857
note: required because it appears within the type `ManuallyDrop<PhantomData<*const ()>>`
4958
--> $RUST/core/src/mem/manually_drop.rs
59+
|
60+
| pub struct ManuallyDrop<T: ?Sized> {
61+
| ^^^^^^^^^^^^
5062
note: required because it appears within the type `MaybeUninit<PhantomData<*const ()>>`
5163
--> $RUST/core/src/mem/maybe_uninit.rs
64+
|
65+
| pub union MaybeUninit<T> {
66+
| ^^^^^^^^^^^
5267
note: required because it appears within the type `UnsafeCell<MaybeUninit<PhantomData<*const ()>>>`
5368
--> $RUST/core/src/cell.rs
69+
|
70+
| pub struct UnsafeCell<T: ?Sized> {
71+
| ^^^^^^^^^^
5472
= note: required because it appears within the type `[UnsafeCell<MaybeUninit<PhantomData<*const ()>>>; 4]`
5573
note: required because it appears within the type `Queue<PhantomData<*const ()>, 4>`
5674
--> $HEAPLESS/src/spsc.rs
@@ -75,13 +93,22 @@ error[E0277]: `*const ()` cannot be sent between threads safely
7593
= help: within `heapless::Vec<PhantomData<*const ()>, 4>`, the trait `Send` is not implemented for `*const ()`
7694
note: required because it appears within the type `PhantomData<*const ()>`
7795
--> $RUST/core/src/marker.rs
96+
|
97+
| pub struct PhantomData<T: ?Sized>;
98+
| ^^^^^^^^^^^
7899
note: required because it appears within the type `ManuallyDrop<PhantomData<*const ()>>`
79100
--> $RUST/core/src/mem/manually_drop.rs
101+
|
102+
| pub struct ManuallyDrop<T: ?Sized> {
103+
| ^^^^^^^^^^^^
80104
note: required because it appears within the type `MaybeUninit<PhantomData<*const ()>>`
81105
--> $RUST/core/src/mem/maybe_uninit.rs
106+
|
107+
| pub union MaybeUninit<T> {
108+
| ^^^^^^^^^^^
82109
= note: required because it appears within the type `[MaybeUninit<PhantomData<*const ()>>; 4]`
83110
note: required because it appears within the type `Vec<PhantomData<*const ()>, 4>`
84-
--> $HEAPLESS/src/vec.rs
111+
--> $HEAPLESS/src/vec/mod.rs
85112
|
86113
| pub struct Vec<T, const N: usize> {
87114
| ^^^
@@ -103,10 +130,19 @@ error[E0277]: `*const ()` cannot be sent between threads safely
103130
= help: within `HistoryBuffer<PhantomData<*const ()>, 4>`, the trait `Send` is not implemented for `*const ()`
104131
note: required because it appears within the type `PhantomData<*const ()>`
105132
--> $RUST/core/src/marker.rs
133+
|
134+
| pub struct PhantomData<T: ?Sized>;
135+
| ^^^^^^^^^^^
106136
note: required because it appears within the type `ManuallyDrop<PhantomData<*const ()>>`
107137
--> $RUST/core/src/mem/manually_drop.rs
138+
|
139+
| pub struct ManuallyDrop<T: ?Sized> {
140+
| ^^^^^^^^^^^^
108141
note: required because it appears within the type `MaybeUninit<PhantomData<*const ()>>`
109142
--> $RUST/core/src/mem/maybe_uninit.rs
143+
|
144+
| pub union MaybeUninit<T> {
145+
| ^^^^^^^^^^^
110146
= note: required because it appears within the type `[MaybeUninit<PhantomData<*const ()>>; 4]`
111147
note: required because it appears within the type `HistoryBuffer<PhantomData<*const ()>, 4>`
112148
--> $HEAPLESS/src/histbuf.rs

0 commit comments

Comments
 (0)