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
22 --> $DIR/non_send_fields_in_send_ty.rs:16:1
33 |
44LL | unsafe impl<T> Send for RingBuffer<T> {}
@@ -12,7 +12,7 @@ LL | data: Vec<UnsafeCell<T>>,
1212 | ^^^^^^^^^^^^^^^^^^^^^^^^
1313 = help: add bounds on type parameter `T` that satisfy `Vec<UnsafeCell<T>>: Send`
1414
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
1616 --> $DIR/non_send_fields_in_send_ty.rs:24:1
1717 |
1818LL | unsafe impl<T> Send for MvccRwLock<T> {}
@@ -25,7 +25,7 @@ LL | lock: Mutex<Box<T>>,
2525 | ^^^^^^^^^^^^^^^^^^^
2626 = help: add bounds on type parameter `T` that satisfy `Mutex<Box<T>>: Send`
2727
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
2929 --> $DIR/non_send_fields_in_send_ty.rs:32:1
3030 |
3131LL | unsafe impl<RC, T: Send> Send for ArcGuard<RC, T> {}
@@ -38,7 +38,7 @@ LL | head: Arc<RC>,
3838 | ^^^^^^^^^^^^^
3939 = help: add bounds on type parameter `RC` that satisfy `Arc<RC>: Send`
4040
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
4242 --> $DIR/non_send_fields_in_send_ty.rs:48:1
4343 |
4444LL | unsafe impl<T: UsbContext> Send for DeviceHandle<T> {}
@@ -51,7 +51,7 @@ LL | context: T,
5151 | ^^^^^^^^^^
5252 = help: add `T: Send` bound in `Send` impl
5353
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
5555 --> $DIR/non_send_fields_in_send_ty.rs:55:1
5656 |
5757LL | unsafe impl Send for NoGeneric {}
@@ -64,7 +64,7 @@ LL | rc_is_not_send: Rc<String>,
6464 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
6565 = help: use a thread-safe type that implements `Send`
6666
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
6868 --> $DIR/non_send_fields_in_send_ty.rs:63:1
6969 |
7070LL | unsafe impl<T> Send for MultiField<T> {}
@@ -89,7 +89,7 @@ LL | field3: T,
8989 | ^^^^^^^^^
9090 = help: add `T: Send` bound in `Send` impl
9191
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
9393 --> $DIR/non_send_fields_in_send_ty.rs:70:1
9494 |
9595LL | unsafe impl<T> Send for MyOption<T> {}
@@ -102,7 +102,7 @@ LL | MySome(T),
102102 | ^
103103 = help: add `T: Send` bound in `Send` impl
104104
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
106106 --> $DIR/non_send_fields_in_send_ty.rs:82:1
107107 |
108108LL | unsafe impl<A, B> Send for MultiParam<A, B> {}
@@ -115,7 +115,7 @@ LL | vec: Vec<(A, B)>,
115115 | ^^^^^^^^^^^^^^^^
116116 = help: add bounds on type parameters `A, B` that satisfy `Vec<(A, B)>: Send`
117117
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
119119 --> $DIR/non_send_fields_in_send_ty.rs:100:1
120120 |
121121LL | unsafe impl Send for HeuristicTest {}
@@ -128,7 +128,7 @@ LL | field4: (*const NonSend, Rc<u8>),
128128 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
129129 = help: use a thread-safe type that implements `Send`
130130
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
132132 --> $DIR/non_send_fields_in_send_ty.rs:119:1
133133 |
134134LL | unsafe impl<T> Send for AttrTest3<T> {}
@@ -141,7 +141,7 @@ LL | Enum2(T),
141141 | ^
142142 = help: add `T: Send` bound in `Send` impl
143143
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
145145 --> $DIR/non_send_fields_in_send_ty.rs:127:1
146146 |
147147LL | unsafe impl<P> Send for Complex<P, u32> {}
@@ -154,7 +154,7 @@ LL | field1: A,
154154 | ^^^^^^^^^
155155 = help: add `P: Send` bound in `Send` impl
156156
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
158158 --> $DIR/non_send_fields_in_send_ty.rs:130:1
159159 |
160160LL | unsafe impl<Q: Send> Send for Complex<Q, MutexGuard<'static, bool>> {}
0 commit comments