@@ -5,7 +5,7 @@ LL | unsafe impl<T> Send for RingBuffer<T> {}
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66 |
77 = note: `-D clippy::non-send-field-in-send-ty` implied by `-D warnings`
8- note: the field `data` has type `std::vec::Vec<std::cell::UnsafeCell<T>>` which is not ` Send`
8+ note: the field `data` has type `std::vec::Vec<std::cell::UnsafeCell<T>>` which is `! Send`
99 --> $DIR/non_send_field_in_send_ty.rs:11:5
1010 |
1111LL | data: Vec<UnsafeCell<T>>,
@@ -18,7 +18,7 @@ error: this implementation is unsound, as some fields in `MvccRwLock<T>` are `!S
1818LL | unsafe impl<T> Send for MvccRwLock<T> {}
1919 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2020 |
21- note: the field `lock` has type `std::sync::Mutex<std::boxed::Box<T>>` which is not ` Send`
21+ note: the field `lock` has type `std::sync::Mutex<std::boxed::Box<T>>` which is `! Send`
2222 --> $DIR/non_send_field_in_send_ty.rs:21:5
2323 |
2424LL | lock: Mutex<Box<T>>,
@@ -31,7 +31,7 @@ error: this implementation is unsound, as some fields in `ArcGuard<RC, T>` are `
3131LL | unsafe impl<RC, T: Send> Send for ArcGuard<RC, T> {}
3232 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3333 |
34- note: the field `head` has type `std::sync::Arc<RC>` which is not ` Send`
34+ note: the field `head` has type `std::sync::Arc<RC>` which is `! Send`
3535 --> $DIR/non_send_field_in_send_ty.rs:29:5
3636 |
3737LL | head: Arc<RC>,
@@ -44,7 +44,7 @@ error: this implementation is unsound, as some fields in `DeviceHandle<T>` are `
4444LL | unsafe impl<T: UsbContext> Send for DeviceHandle<T> {}
4545 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4646 |
47- note: the field `context` has type `T` which is not ` Send`
47+ note: the field `context` has type `T` which is `! Send`
4848 --> $DIR/non_send_field_in_send_ty.rs:44:5
4949 |
5050LL | context: T,
@@ -57,7 +57,7 @@ error: this implementation is unsound, as some fields in `NoGeneric` are `!Send`
5757LL | unsafe impl Send for NoGeneric {}
5858 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5959 |
60- note: the field `rc_is_not_send` has type `std::rc::Rc<std::string::String>` which is not ` Send`
60+ note: the field `rc_is_not_send` has type `std::rc::Rc<std::string::String>` which is `! Send`
6161 --> $DIR/non_send_field_in_send_ty.rs:52:5
6262 |
6363LL | rc_is_not_send: Rc<String>,
@@ -70,19 +70,19 @@ error: this implementation is unsound, as some fields in `MultiField<T>` are `!S
7070LL | unsafe impl<T> Send for MultiField<T> {}
7171 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7272 |
73- note: the field `field1` has type `T` which is not ` Send`
73+ note: the field `field1` has type `T` which is `! Send`
7474 --> $DIR/non_send_field_in_send_ty.rs:58:5
7575 |
7676LL | field1: T,
7777 | ^^^^^^^^^
7878 = help: add `T: Send` bound in `Send` impl
79- note: the field `field2` has type `T` which is not ` Send`
79+ note: the field `field2` has type `T` which is `! Send`
8080 --> $DIR/non_send_field_in_send_ty.rs:59:5
8181 |
8282LL | field2: T,
8383 | ^^^^^^^^^
8484 = help: add `T: Send` bound in `Send` impl
85- note: the field `field3` has type `T` which is not ` Send`
85+ note: the field `field3` has type `T` which is `! Send`
8686 --> $DIR/non_send_field_in_send_ty.rs:60:5
8787 |
8888LL | field3: T,
@@ -95,7 +95,7 @@ error: this implementation is unsound, as some fields in `MyOption<T>` are `!Sen
9595LL | unsafe impl<T> Send for MyOption<T> {}
9696 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9797 |
98- note: the field `0` has type `T` which is not ` Send`
98+ note: the field `0` has type `T` which is `! Send`
9999 --> $DIR/non_send_field_in_send_ty.rs:66:12
100100 |
101101LL | MySome(T),
@@ -108,7 +108,7 @@ error: this implementation is unsound, as some fields in `MultiParam<A, B>` are
108108LL | unsafe impl<A, B> Send for MultiParam<A, B> {}
109109 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
110110 |
111- note: the field `vec` has type `std::vec::Vec<(A, B)>` which is not ` Send`
111+ note: the field `vec` has type `std::vec::Vec<(A, B)>` which is `! Send`
112112 --> $DIR/non_send_field_in_send_ty.rs:74:5
113113 |
114114LL | vec: Vec<(A, B)>,
@@ -121,7 +121,7 @@ error: this implementation is unsound, as some fields in `HeuristicTest` are `!S
121121LL | unsafe impl Send for HeuristicTest {}
122122 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
123123 |
124- note: the field `field4` has type `(*const NonSend, std::rc::Rc<u8>)` which is not ` Send`
124+ note: the field `field4` has type `(*const NonSend, std::rc::Rc<u8>)` which is `! Send`
125125 --> $DIR/non_send_field_in_send_ty.rs:90:5
126126 |
127127LL | field4: (*const NonSend, Rc<u8>),
@@ -134,7 +134,7 @@ error: this implementation is unsound, as some fields in `AttrTest3<T>` are `!Se
134134LL | unsafe impl<T> Send for AttrTest3<T> {}
135135 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
136136 |
137- note: the field `0` has type `T` which is not ` Send`
137+ note: the field `0` has type `T` which is `! Send`
138138 --> $DIR/non_send_field_in_send_ty.rs:109:11
139139 |
140140LL | Enum2(T),
@@ -147,7 +147,7 @@ error: this implementation is unsound, as some fields in `Complex<P, u32>` are `
147147LL | unsafe impl<P> Send for Complex<P, u32> {}
148148 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
149149 |
150- note: the field `field1` has type `P` which is not ` Send`
150+ note: the field `field1` has type `P` which is `! Send`
151151 --> $DIR/non_send_field_in_send_ty.rs:118:5
152152 |
153153LL | field1: A,
@@ -160,7 +160,7 @@ error: this implementation is unsound, as some fields in `Complex<Q, std::sync::
160160LL | unsafe impl<Q: Send> Send for Complex<Q, MutexGuard<'static, bool>> {}
161161 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
162162 |
163- note: the field `field2` has type `std::sync::MutexGuard<'static, bool>` which is not ` Send`
163+ note: the field `field2` has type `std::sync::MutexGuard<'static, bool>` which is `! Send`
164164 --> $DIR/non_send_field_in_send_ty.rs:119:5
165165 |
166166LL | field2: B,
0 commit comments