@@ -5,46 +5,46 @@ 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 `!Send`
8+ note: the type of field `data` is `!Send`
99 --> $DIR/non_send_field_in_send_ty.rs:11:5
1010 |
1111LL | data: Vec<UnsafeCell<T>>,
1212 | ^^^^^^^^^^^^^^^^^^^^^^^^
13- = help: add bounds on type parameter `T` that satisfy `std::vec:: Vec<std::cell:: UnsafeCell<T>>: Send`
13+ = help: add bounds on type parameter `T` that satisfy `Vec<UnsafeCell<T>>: Send`
1414
1515error: this implementation is unsound, as some fields in `MvccRwLock<T>` are `!Send`
1616 --> $DIR/non_send_field_in_send_ty.rs:24:1
1717 |
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 `!Send`
21+ note: the type of field `lock` is `!Send`
2222 --> $DIR/non_send_field_in_send_ty.rs:21:5
2323 |
2424LL | lock: Mutex<Box<T>>,
2525 | ^^^^^^^^^^^^^^^^^^^
26- = help: add bounds on type parameter `T` that satisfy `std::sync:: Mutex<std::boxed:: Box<T>>: Send`
26+ = help: add bounds on type parameter `T` that satisfy `Mutex<Box<T>>: Send`
2727
2828error: this implementation is unsound, as some fields in `ArcGuard<RC, T>` are `!Send`
2929 --> $DIR/non_send_field_in_send_ty.rs:32:1
3030 |
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 `!Send`
34+ note: the type of field `head` is `!Send`
3535 --> $DIR/non_send_field_in_send_ty.rs:29:5
3636 |
3737LL | head: Arc<RC>,
3838 | ^^^^^^^^^^^^^
39- = help: add bounds on type parameter `RC` that satisfy `std::sync:: Arc<RC>: Send`
39+ = help: add bounds on type parameter `RC` that satisfy `Arc<RC>: Send`
4040
4141error: this implementation is unsound, as some fields in `DeviceHandle<T>` are `!Send`
4242 --> $DIR/non_send_field_in_send_ty.rs:48:1
4343 |
4444LL | unsafe impl<T: UsbContext> Send for DeviceHandle<T> {}
4545 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4646 |
47- note: the field `context` has type `T` which is `!Send`
47+ note: the type of field `context` 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 `!Send`
60+ note: the type of field `rc_is_not_send` 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 `!Send`
73+ note: the type of field `field1` 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 `!Send`
79+ note: the type of field `field2` 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 `!Send`
85+ note: the type of field `field3` 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 `!Send`
98+ note: the type of field `0` is `!Send`
9999 --> $DIR/non_send_field_in_send_ty.rs:66:12
100100 |
101101LL | MySome(T),
@@ -108,20 +108,20 @@ 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 `!Send`
111+ note: the type of field ` vec` is `!Send`
112112 --> $DIR/non_send_field_in_send_ty.rs:74:5
113113 |
114114LL | vec: Vec<(A, B)>,
115115 | ^^^^^^^^^^^^^^^^
116- = help: add bounds on type parameters `A, B` that satisfy `std::vec:: Vec<(A, B)>: Send`
116+ = help: add bounds on type parameters `A, B` that satisfy `Vec<(A, B)>: Send`
117117
118118error: this implementation is unsound, as some fields in `HeuristicTest` are `!Send`
119119 --> $DIR/non_send_field_in_send_ty.rs:95:1
120120 |
121121LL | unsafe impl Send for HeuristicTest {}
122122 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
123123 |
124- note: the field `field4` has type `(*const NonSend, std::rc::Rc<u8>)` which is `!Send`
124+ note: the type of field `field4` 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 `!Send`
137+ note: the type of field `0` is `!Send`
138138 --> $DIR/non_send_field_in_send_ty.rs:109:11
139139 |
140140LL | Enum2(T),
@@ -147,20 +147,20 @@ 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 `!Send`
150+ note: the type of field `field1` is `!Send`
151151 --> $DIR/non_send_field_in_send_ty.rs:118:5
152152 |
153153LL | field1: A,
154154 | ^^^^^^^^^
155155 = help: add `P: Send` bound in `Send` impl
156156
157- error: this implementation is unsound, as some fields in `Complex<Q, std::sync:: MutexGuard<'static, bool>>` are `!Send`
157+ error: this implementation is unsound, as some fields in `Complex<Q, MutexGuard<'static, bool>>` are `!Send`
158158 --> $DIR/non_send_field_in_send_ty.rs:125:1
159159 |
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 `!Send`
163+ note: the type of field `field2` is `!Send`
164164 --> $DIR/non_send_field_in_send_ty.rs:119:5
165165 |
166166LL | field2: B,
0 commit comments