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