1
1
error: some fields in `RingBuffer<T>` are not safe to be sent to another thread
2
- --> $DIR/non_send_fields_in_send_ty.rs:17 :1
2
+ --> $DIR/non_send_fields_in_send_ty.rs:16 :1
3
3
|
4
4
LL | unsafe impl<T> Send for RingBuffer<T> {}
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
6
|
7
7
note: it is not safe to send field `data` to another thread
8
- --> $DIR/non_send_fields_in_send_ty.rs:12 :5
8
+ --> $DIR/non_send_fields_in_send_ty.rs:11 :5
9
9
|
10
10
LL | data: Vec<UnsafeCell<T>>,
11
11
| ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -14,155 +14,155 @@ LL | data: Vec<UnsafeCell<T>>,
14
14
= help: to override `-D warnings` add `#[allow(clippy::non_send_fields_in_send_ty)]`
15
15
16
16
error: some fields in `MvccRwLock<T>` are not safe to be sent to another thread
17
- --> $DIR/non_send_fields_in_send_ty.rs:26 :1
17
+ --> $DIR/non_send_fields_in_send_ty.rs:25 :1
18
18
|
19
19
LL | unsafe impl<T> Send for MvccRwLock<T> {}
20
20
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21
21
|
22
22
note: it is not safe to send field `lock` to another thread
23
- --> $DIR/non_send_fields_in_send_ty.rs:23 :5
23
+ --> $DIR/non_send_fields_in_send_ty.rs:22 :5
24
24
|
25
25
LL | lock: Mutex<Box<T>>,
26
26
| ^^^^^^^^^^^^^^^^^^^
27
27
= help: add bounds on type parameter `T` that satisfy `Mutex<Box<T>>: Send`
28
28
29
29
error: some fields in `ArcGuard<RC, T>` are not safe to be sent to another thread
30
- --> $DIR/non_send_fields_in_send_ty.rs:35 :1
30
+ --> $DIR/non_send_fields_in_send_ty.rs:34 :1
31
31
|
32
32
LL | unsafe impl<RC, T: Send> Send for ArcGuard<RC, T> {}
33
33
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34
34
|
35
35
note: it is not safe to send field `head` to another thread
36
- --> $DIR/non_send_fields_in_send_ty.rs:32 :5
36
+ --> $DIR/non_send_fields_in_send_ty.rs:31 :5
37
37
|
38
38
LL | head: Arc<RC>,
39
39
| ^^^^^^^^^^^^^
40
40
= help: add bounds on type parameter `RC` that satisfy `Arc<RC>: Send`
41
41
42
42
error: some fields in `DeviceHandle<T>` are not safe to be sent to another thread
43
- --> $DIR/non_send_fields_in_send_ty.rs:52 :1
43
+ --> $DIR/non_send_fields_in_send_ty.rs:51 :1
44
44
|
45
45
LL | unsafe impl<T: UsbContext> Send for DeviceHandle<T> {}
46
46
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
47
47
|
48
48
note: it is not safe to send field `context` to another thread
49
- --> $DIR/non_send_fields_in_send_ty.rs:48 :5
49
+ --> $DIR/non_send_fields_in_send_ty.rs:47 :5
50
50
|
51
51
LL | context: T,
52
52
| ^^^^^^^^^^
53
53
= help: add `T: Send` bound in `Send` impl
54
54
55
55
error: some fields in `NoGeneric` are not safe to be sent to another thread
56
- --> $DIR/non_send_fields_in_send_ty.rs:60 :1
56
+ --> $DIR/non_send_fields_in_send_ty.rs:59 :1
57
57
|
58
58
LL | unsafe impl Send for NoGeneric {}
59
59
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
60
60
|
61
61
note: it is not safe to send field `rc_is_not_send` to another thread
62
- --> $DIR/non_send_fields_in_send_ty.rs:57 :5
62
+ --> $DIR/non_send_fields_in_send_ty.rs:56 :5
63
63
|
64
64
LL | rc_is_not_send: Rc<String>,
65
65
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
66
66
= help: use a thread-safe type that implements `Send`
67
67
68
68
error: some fields in `MultiField<T>` are not safe to be sent to another thread
69
- --> $DIR/non_send_fields_in_send_ty.rs:69 :1
69
+ --> $DIR/non_send_fields_in_send_ty.rs:68 :1
70
70
|
71
71
LL | unsafe impl<T> Send for MultiField<T> {}
72
72
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
73
73
|
74
74
note: it is not safe to send field `field1` to another thread
75
- --> $DIR/non_send_fields_in_send_ty.rs:64 :5
75
+ --> $DIR/non_send_fields_in_send_ty.rs:63 :5
76
76
|
77
77
LL | field1: T,
78
78
| ^^^^^^^^^
79
79
= help: add `T: Send` bound in `Send` impl
80
80
note: it is not safe to send field `field2` to another thread
81
- --> $DIR/non_send_fields_in_send_ty.rs:65 :5
81
+ --> $DIR/non_send_fields_in_send_ty.rs:64 :5
82
82
|
83
83
LL | field2: T,
84
84
| ^^^^^^^^^
85
85
= help: add `T: Send` bound in `Send` impl
86
86
note: it is not safe to send field `field3` to another thread
87
- --> $DIR/non_send_fields_in_send_ty.rs:66 :5
87
+ --> $DIR/non_send_fields_in_send_ty.rs:65 :5
88
88
|
89
89
LL | field3: T,
90
90
| ^^^^^^^^^
91
91
= help: add `T: Send` bound in `Send` impl
92
92
93
93
error: some fields in `MyOption<T>` are not safe to be sent to another thread
94
- --> $DIR/non_send_fields_in_send_ty.rs:77 :1
94
+ --> $DIR/non_send_fields_in_send_ty.rs:76 :1
95
95
|
96
96
LL | unsafe impl<T> Send for MyOption<T> {}
97
97
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
98
98
|
99
99
note: it is not safe to send field `0` to another thread
100
- --> $DIR/non_send_fields_in_send_ty.rs:73 :12
100
+ --> $DIR/non_send_fields_in_send_ty.rs:72 :12
101
101
|
102
102
LL | MySome(T),
103
103
| ^
104
104
= help: add `T: Send` bound in `Send` impl
105
105
106
106
error: some fields in `MultiParam<A, B>` are not safe to be sent to another thread
107
- --> $DIR/non_send_fields_in_send_ty.rs:90 :1
107
+ --> $DIR/non_send_fields_in_send_ty.rs:89 :1
108
108
|
109
109
LL | unsafe impl<A, B> Send for MultiParam<A, B> {}
110
110
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
111
111
|
112
112
note: it is not safe to send field `vec` to another thread
113
- --> $DIR/non_send_fields_in_send_ty.rs:87 :5
113
+ --> $DIR/non_send_fields_in_send_ty.rs:86 :5
114
114
|
115
115
LL | vec: Vec<(A, B)>,
116
116
| ^^^^^^^^^^^^^^^^
117
117
= help: add bounds on type parameters `A, B` that satisfy `Vec<(A, B)>: Send`
118
118
119
119
error: some fields in `HeuristicTest` are not safe to be sent to another thread
120
- --> $DIR/non_send_fields_in_send_ty.rs:109 :1
120
+ --> $DIR/non_send_fields_in_send_ty.rs:108 :1
121
121
|
122
122
LL | unsafe impl Send for HeuristicTest {}
123
123
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
124
124
|
125
125
note: it is not safe to send field `field4` to another thread
126
- --> $DIR/non_send_fields_in_send_ty.rs:104 :5
126
+ --> $DIR/non_send_fields_in_send_ty.rs:103 :5
127
127
|
128
128
LL | field4: (*const NonSend, Rc<u8>),
129
129
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
130
130
= help: use a thread-safe type that implements `Send`
131
131
132
132
error: some fields in `AttrTest3<T>` are not safe to be sent to another thread
133
- --> $DIR/non_send_fields_in_send_ty.rs:129 :1
133
+ --> $DIR/non_send_fields_in_send_ty.rs:128 :1
134
134
|
135
135
LL | unsafe impl<T> Send for AttrTest3<T> {}
136
136
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
137
137
|
138
138
note: it is not safe to send field `0` to another thread
139
- --> $DIR/non_send_fields_in_send_ty.rs:124 :11
139
+ --> $DIR/non_send_fields_in_send_ty.rs:123 :11
140
140
|
141
141
LL | Enum2(T),
142
142
| ^
143
143
= help: add `T: Send` bound in `Send` impl
144
144
145
145
error: some fields in `Complex<P, u32>` are not safe to be sent to another thread
146
- --> $DIR/non_send_fields_in_send_ty.rs:138 :1
146
+ --> $DIR/non_send_fields_in_send_ty.rs:137 :1
147
147
|
148
148
LL | unsafe impl<P> Send for Complex<P, u32> {}
149
149
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
150
150
|
151
151
note: it is not safe to send field `field1` to another thread
152
- --> $DIR/non_send_fields_in_send_ty.rs:134 :5
152
+ --> $DIR/non_send_fields_in_send_ty.rs:133 :5
153
153
|
154
154
LL | field1: A,
155
155
| ^^^^^^^^^
156
156
= help: add `P: Send` bound in `Send` impl
157
157
158
158
error: some fields in `Complex<Q, MutexGuard<'static, bool>>` are not safe to be sent to another thread
159
- --> $DIR/non_send_fields_in_send_ty.rs:142 :1
159
+ --> $DIR/non_send_fields_in_send_ty.rs:141 :1
160
160
|
161
161
LL | unsafe impl<Q: Send> Send for Complex<Q, MutexGuard<'static, bool>> {}
162
162
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
163
163
|
164
164
note: it is not safe to send field `field2` to another thread
165
- --> $DIR/non_send_fields_in_send_ty.rs:135 :5
165
+ --> $DIR/non_send_fields_in_send_ty.rs:134 :5
166
166
|
167
167
LL | field2: B,
168
168
| ^^^^^^^^^
0 commit comments