1
- error: there are some fields in `RingBuffer<T>` are not safe to be sent to another thread
1
+ error: some fields in `RingBuffer<T>` are not safe to be sent to another thread
2
2
--> $DIR/non_send_fields_in_send_ty.rs:16:1
3
3
|
4
4
LL | unsafe impl<T> Send for RingBuffer<T> {}
@@ -12,7 +12,7 @@ LL | data: Vec<UnsafeCell<T>>,
12
12
| ^^^^^^^^^^^^^^^^^^^^^^^^
13
13
= help: add bounds on type parameter `T` that satisfy `Vec<UnsafeCell<T>>: Send`
14
14
15
- error: there are some fields in `MvccRwLock<T>` are not safe to be sent to another thread
15
+ error: some fields in `MvccRwLock<T>` are not safe to be sent to another thread
16
16
--> $DIR/non_send_fields_in_send_ty.rs:24:1
17
17
|
18
18
LL | unsafe impl<T> Send for MvccRwLock<T> {}
@@ -25,7 +25,7 @@ LL | lock: Mutex<Box<T>>,
25
25
| ^^^^^^^^^^^^^^^^^^^
26
26
= help: add bounds on type parameter `T` that satisfy `Mutex<Box<T>>: Send`
27
27
28
- error: there are some fields in `ArcGuard<RC, T>` are not safe to be sent to another thread
28
+ error: some fields in `ArcGuard<RC, T>` are not safe to be sent to another thread
29
29
--> $DIR/non_send_fields_in_send_ty.rs:32:1
30
30
|
31
31
LL | unsafe impl<RC, T: Send> Send for ArcGuard<RC, T> {}
@@ -38,7 +38,7 @@ LL | head: Arc<RC>,
38
38
| ^^^^^^^^^^^^^
39
39
= help: add bounds on type parameter `RC` that satisfy `Arc<RC>: Send`
40
40
41
- error: there are some fields in `DeviceHandle<T>` are not safe to be sent to another thread
41
+ error: some fields in `DeviceHandle<T>` are not safe to be sent to another thread
42
42
--> $DIR/non_send_fields_in_send_ty.rs:48:1
43
43
|
44
44
LL | unsafe impl<T: UsbContext> Send for DeviceHandle<T> {}
@@ -51,7 +51,7 @@ LL | context: T,
51
51
| ^^^^^^^^^^
52
52
= help: add `T: Send` bound in `Send` impl
53
53
54
- error: there are some fields in `NoGeneric` are not safe to be sent to another thread
54
+ error: some fields in `NoGeneric` are not safe to be sent to another thread
55
55
--> $DIR/non_send_fields_in_send_ty.rs:55:1
56
56
|
57
57
LL | unsafe impl Send for NoGeneric {}
@@ -64,7 +64,7 @@ LL | rc_is_not_send: Rc<String>,
64
64
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
65
65
= help: use a thread-safe type that implements `Send`
66
66
67
- error: there are some fields in `MultiField<T>` are not safe to be sent to another thread
67
+ error: some fields in `MultiField<T>` are not safe to be sent to another thread
68
68
--> $DIR/non_send_fields_in_send_ty.rs:63:1
69
69
|
70
70
LL | unsafe impl<T> Send for MultiField<T> {}
@@ -89,7 +89,7 @@ LL | field3: T,
89
89
| ^^^^^^^^^
90
90
= help: add `T: Send` bound in `Send` impl
91
91
92
- error: there are some fields in `MyOption<T>` are not safe to be sent to another thread
92
+ error: some fields in `MyOption<T>` are not safe to be sent to another thread
93
93
--> $DIR/non_send_fields_in_send_ty.rs:70:1
94
94
|
95
95
LL | unsafe impl<T> Send for MyOption<T> {}
@@ -102,7 +102,7 @@ LL | MySome(T),
102
102
| ^
103
103
= help: add `T: Send` bound in `Send` impl
104
104
105
- error: there are some fields in `MultiParam<A, B>` are not safe to be sent to another thread
105
+ error: some fields in `MultiParam<A, B>` are not safe to be sent to another thread
106
106
--> $DIR/non_send_fields_in_send_ty.rs:82:1
107
107
|
108
108
LL | unsafe impl<A, B> Send for MultiParam<A, B> {}
@@ -115,7 +115,7 @@ LL | vec: Vec<(A, B)>,
115
115
| ^^^^^^^^^^^^^^^^
116
116
= help: add bounds on type parameters `A, B` that satisfy `Vec<(A, B)>: Send`
117
117
118
- error: there are some fields in `HeuristicTest` are not safe to be sent to another thread
118
+ error: some fields in `HeuristicTest` are not safe to be sent to another thread
119
119
--> $DIR/non_send_fields_in_send_ty.rs:100:1
120
120
|
121
121
LL | unsafe impl Send for HeuristicTest {}
@@ -128,7 +128,7 @@ LL | field4: (*const NonSend, Rc<u8>),
128
128
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
129
129
= help: use a thread-safe type that implements `Send`
130
130
131
- error: there are some fields in `AttrTest3<T>` are not safe to be sent to another thread
131
+ error: some fields in `AttrTest3<T>` are not safe to be sent to another thread
132
132
--> $DIR/non_send_fields_in_send_ty.rs:119:1
133
133
|
134
134
LL | unsafe impl<T> Send for AttrTest3<T> {}
@@ -141,7 +141,7 @@ LL | Enum2(T),
141
141
| ^
142
142
= help: add `T: Send` bound in `Send` impl
143
143
144
- error: there are some fields in `Complex<P, u32>` are not safe to be sent to another thread
144
+ error: some fields in `Complex<P, u32>` are not safe to be sent to another thread
145
145
--> $DIR/non_send_fields_in_send_ty.rs:127:1
146
146
|
147
147
LL | unsafe impl<P> Send for Complex<P, u32> {}
@@ -154,7 +154,7 @@ LL | field1: A,
154
154
| ^^^^^^^^^
155
155
= help: add `P: Send` bound in `Send` impl
156
156
157
- error: there are some fields in `Complex<Q, MutexGuard<'static, bool>>` are not safe to be sent to another thread
157
+ error: some fields in `Complex<Q, MutexGuard<'static, bool>>` are not safe to be sent to another thread
158
158
--> $DIR/non_send_fields_in_send_ty.rs:130:1
159
159
|
160
160
LL | unsafe impl<Q: Send> Send for Complex<Q, MutexGuard<'static, bool>> {}
0 commit comments