| 
1 | 1 | error: `#[pin_v2]` attribute cannot be used on macro calls  | 
2 |  | -  --> $DIR/pin_v2-attr.rs:135:1  | 
 | 2 | +  --> $DIR/pin_v2-attr.rs:136:1  | 
3 | 3 |    |  | 
4 | 4 | LL | #[pin_v2]  | 
5 | 5 |    | ^^^^^^^^^  | 
6 | 6 |    |  | 
7 | 7 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
8 | 8 | 
 
  | 
9 |  | -error: this attribute is not supported on assembly  | 
10 |  | -  --> $DIR/pin_v2-attr.rs:154:5  | 
11 |  | -   |  | 
12 |  | -LL |     #[pin_v2]  | 
13 |  | -   |     ^^^^^^^^^  | 
14 |  | - | 
15 | 9 | error: allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters  | 
16 |  | -  --> $DIR/pin_v2-attr.rs:84:12  | 
 | 10 | +  --> $DIR/pin_v2-attr.rs:85:12  | 
17 | 11 |    |  | 
18 | 12 | LL | fn f<T, U>(#[pin_v2] param: Foo<T, U>)  | 
19 | 13 |    |            ^^^^^^^^^  | 
20 | 14 | 
 
  | 
21 | 15 | error: `#[pin_v2]` attribute cannot be used on crates  | 
22 |  | -  --> $DIR/pin_v2-attr.rs:10:1  | 
 | 16 | +  --> $DIR/pin_v2-attr.rs:11:1  | 
23 | 17 |    |  | 
24 | 18 | LL | #![pin_v2]  | 
25 | 19 |    | ^^^^^^^^^^  | 
26 | 20 |    |  | 
27 | 21 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
28 | 22 | 
 
  | 
29 | 23 | error: `#[pin_v2]` attribute cannot be used on function params  | 
30 |  | -  --> $DIR/pin_v2-attr.rs:27:10  | 
 | 24 | +  --> $DIR/pin_v2-attr.rs:28:10  | 
31 | 25 |    |  | 
32 | 26 | LL | enum Foo<#[pin_v2] T, #[pin_v2] U = ()> {  | 
33 | 27 |    |          ^^^^^^^^^  | 
34 | 28 |    |  | 
35 | 29 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
36 | 30 | 
 
  | 
37 | 31 | error: `#[pin_v2]` attribute cannot be used on function params  | 
38 |  | -  --> $DIR/pin_v2-attr.rs:27:23  | 
 | 32 | +  --> $DIR/pin_v2-attr.rs:28:23  | 
39 | 33 |    |  | 
40 | 34 | LL | enum Foo<#[pin_v2] T, #[pin_v2] U = ()> {  | 
41 | 35 |    |                       ^^^^^^^^^  | 
42 | 36 |    |  | 
43 | 37 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
44 | 38 | 
 
  | 
45 | 39 | error: `#[pin_v2]` attribute cannot be used on enum variants  | 
46 |  | -  --> $DIR/pin_v2-attr.rs:30:5  | 
 | 40 | +  --> $DIR/pin_v2-attr.rs:31:5  | 
47 | 41 |    |  | 
48 | 42 | LL |     #[pin_v2]  | 
49 | 43 |    |     ^^^^^^^^^  | 
50 | 44 |    |  | 
51 | 45 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
52 | 46 | 
 
  | 
53 | 47 | error: `#[pin_v2]` attribute cannot be used on struct fields  | 
54 |  | -  --> $DIR/pin_v2-attr.rs:32:18  | 
 | 48 | +  --> $DIR/pin_v2-attr.rs:33:18  | 
55 | 49 |    |  | 
56 | 50 | LL |     TupleVariant(#[pin_v2] T),  | 
57 | 51 |    |                  ^^^^^^^^^  | 
58 | 52 |    |  | 
59 | 53 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
60 | 54 | 
 
  | 
61 | 55 | error: `#[pin_v2]` attribute cannot be used on struct fields  | 
62 |  | -  --> $DIR/pin_v2-attr.rs:34:9  | 
 | 56 | +  --> $DIR/pin_v2-attr.rs:35:9  | 
63 | 57 |    |  | 
64 | 58 | LL |         #[pin_v2]  | 
65 | 59 |    |         ^^^^^^^^^  | 
66 | 60 |    |  | 
67 | 61 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
68 | 62 | 
 
  | 
69 | 63 | error: `#[pin_v2]` attribute cannot be used on traits  | 
70 |  | -  --> $DIR/pin_v2-attr.rs:39:1  | 
 | 64 | +  --> $DIR/pin_v2-attr.rs:40:1  | 
71 | 65 |    |  | 
72 | 66 | LL | #[pin_v2]  | 
73 | 67 |    | ^^^^^^^^^  | 
74 | 68 |    |  | 
75 | 69 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
76 | 70 | 
 
  | 
77 | 71 | error: `#[pin_v2]` attribute cannot be used on associated consts  | 
78 |  | -  --> $DIR/pin_v2-attr.rs:41:5  | 
 | 72 | +  --> $DIR/pin_v2-attr.rs:42:5  | 
79 | 73 |    |  | 
80 | 74 | LL |     #[pin_v2]  | 
81 | 75 |    |     ^^^^^^^^^  | 
82 | 76 |    |  | 
83 | 77 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
84 | 78 | 
 
  | 
85 | 79 | error: `#[pin_v2]` attribute cannot be used on associated types  | 
86 |  | -  --> $DIR/pin_v2-attr.rs:43:5  | 
 | 80 | +  --> $DIR/pin_v2-attr.rs:44:5  | 
87 | 81 |    |  | 
88 | 82 | LL |     #[pin_v2]  | 
89 | 83 |    |     ^^^^^^^^^  | 
90 | 84 |    |  | 
91 | 85 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
92 | 86 | 
 
  | 
93 | 87 | error: `#[pin_v2]` attribute cannot be used on required trait methods  | 
94 |  | -  --> $DIR/pin_v2-attr.rs:46:5  | 
 | 88 | +  --> $DIR/pin_v2-attr.rs:47:5  | 
95 | 89 |    |  | 
96 | 90 | LL |     #[pin_v2]  | 
97 | 91 |    |     ^^^^^^^^^  | 
98 | 92 |    |  | 
99 | 93 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
100 | 94 | 
 
  | 
101 | 95 | error: `#[pin_v2]` attribute cannot be used on provided trait methods  | 
102 |  | -  --> $DIR/pin_v2-attr.rs:48:5  | 
 | 96 | +  --> $DIR/pin_v2-attr.rs:49:5  | 
103 | 97 |    |  | 
104 | 98 | LL |     #[pin_v2]  | 
105 | 99 |    |     ^^^^^^^^^  | 
106 | 100 |    |  | 
107 | 101 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
108 | 102 | 
 
  | 
109 | 103 | error: `#[pin_v2]` attribute cannot be used on trait aliases  | 
110 |  | -  --> $DIR/pin_v2-attr.rs:52:1  | 
 | 104 | +  --> $DIR/pin_v2-attr.rs:53:1  | 
111 | 105 |    |  | 
112 | 106 | LL | #[pin_v2]  | 
113 | 107 |    | ^^^^^^^^^  | 
114 | 108 |    |  | 
115 | 109 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
116 | 110 | 
 
  | 
117 | 111 | error: `#[pin_v2]` attribute cannot be used on inherent impl blocks  | 
118 |  | -  --> $DIR/pin_v2-attr.rs:55:1  | 
 | 112 | +  --> $DIR/pin_v2-attr.rs:56:1  | 
119 | 113 |    |  | 
120 | 114 | LL | #[pin_v2]  | 
121 | 115 |    | ^^^^^^^^^  | 
122 | 116 |    |  | 
123 | 117 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
124 | 118 | 
 
  | 
125 | 119 | error: `#[pin_v2]` attribute cannot be used on delegations  | 
126 |  | -  --> $DIR/pin_v2-attr.rs:58:5  | 
 | 120 | +  --> $DIR/pin_v2-attr.rs:59:5  | 
127 | 121 |    |  | 
128 | 122 | LL |     #[pin_v2]  | 
129 | 123 |    |     ^^^^^^^^^  | 
130 | 124 |    |  | 
131 | 125 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
132 | 126 | 
 
  | 
133 | 127 | error: `#[pin_v2]` attribute cannot be used on inherent methods  | 
134 |  | -  --> $DIR/pin_v2-attr.rs:61:5  | 
 | 128 | +  --> $DIR/pin_v2-attr.rs:62:5  | 
135 | 129 |    |  | 
136 | 130 | LL |     #[pin_v2]  | 
137 | 131 |    |     ^^^^^^^^^  | 
138 | 132 |    |  | 
139 | 133 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
140 | 134 | 
 
  | 
141 | 135 | error: `#[pin_v2]` attribute cannot be used on trait impl blocks  | 
142 |  | -  --> $DIR/pin_v2-attr.rs:65:1  | 
 | 136 | +  --> $DIR/pin_v2-attr.rs:66:1  | 
143 | 137 |    |  | 
144 | 138 | LL | #[pin_v2]  | 
145 | 139 |    | ^^^^^^^^^  | 
146 | 140 |    |  | 
147 | 141 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
148 | 142 | 
 
  | 
149 | 143 | error: `#[pin_v2]` attribute cannot be used on trait methods in impl blocks  | 
150 |  | -  --> $DIR/pin_v2-attr.rs:67:5  | 
 | 144 | +  --> $DIR/pin_v2-attr.rs:68:5  | 
151 | 145 |    |  | 
152 | 146 | LL |     #[pin_v2]  | 
153 | 147 |    |     ^^^^^^^^^  | 
154 | 148 |    |  | 
155 | 149 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
156 | 150 | 
 
  | 
157 | 151 | error: `#[pin_v2]` attribute cannot be used on extern crates  | 
158 |  | -  --> $DIR/pin_v2-attr.rs:71:1  | 
 | 152 | +  --> $DIR/pin_v2-attr.rs:72:1  | 
159 | 153 |    |  | 
160 | 154 | LL | #[pin_v2]  | 
161 | 155 |    | ^^^^^^^^^  | 
162 | 156 |    |  | 
163 | 157 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
164 | 158 | 
 
  | 
165 | 159 | error: `#[pin_v2]` attribute cannot be used on use statements  | 
166 |  | -  --> $DIR/pin_v2-attr.rs:74:1  | 
 | 160 | +  --> $DIR/pin_v2-attr.rs:75:1  | 
167 | 161 |    |  | 
168 | 162 | LL | #[pin_v2]  | 
169 | 163 |    | ^^^^^^^^^  | 
170 | 164 |    |  | 
171 | 165 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
172 | 166 | 
 
  | 
173 | 167 | error: `#[pin_v2]` attribute cannot be used on statics  | 
174 |  | -  --> $DIR/pin_v2-attr.rs:77:1  | 
 | 168 | +  --> $DIR/pin_v2-attr.rs:78:1  | 
175 | 169 |    |  | 
176 | 170 | LL | #[pin_v2]  | 
177 | 171 |    | ^^^^^^^^^  | 
178 | 172 |    |  | 
179 | 173 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
180 | 174 | 
 
  | 
181 | 175 | error: `#[pin_v2]` attribute cannot be used on constants  | 
182 |  | -  --> $DIR/pin_v2-attr.rs:80:1  | 
 | 176 | +  --> $DIR/pin_v2-attr.rs:81:1  | 
183 | 177 |    |  | 
184 | 178 | LL | #[pin_v2]  | 
185 | 179 |    | ^^^^^^^^^  | 
186 | 180 |    |  | 
187 | 181 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
188 | 182 | 
 
  | 
189 | 183 | error: `#[pin_v2]` attribute cannot be used on functions  | 
190 |  | -  --> $DIR/pin_v2-attr.rs:83:1  | 
 | 184 | +  --> $DIR/pin_v2-attr.rs:84:1  | 
191 | 185 |    |  | 
192 | 186 | LL | #[pin_v2]  | 
193 | 187 |    | ^^^^^^^^^  | 
194 | 188 |    |  | 
195 | 189 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
196 | 190 | 
 
  | 
197 | 191 | error: `#[pin_v2]` attribute cannot be used on function params  | 
198 |  | -  --> $DIR/pin_v2-attr.rs:84:12  | 
 | 192 | +  --> $DIR/pin_v2-attr.rs:85:12  | 
199 | 193 |    |  | 
200 | 194 | LL | fn f<T, U>(#[pin_v2] param: Foo<T, U>)  | 
201 | 195 |    |            ^^^^^^^^^  | 
202 | 196 |    |  | 
203 | 197 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
204 | 198 | 
 
  | 
205 | 199 | error: `#[pin_v2]` attribute cannot be used on closures  | 
206 |  | -  --> $DIR/pin_v2-attr.rs:92:5  | 
 | 200 | +  --> $DIR/pin_v2-attr.rs:93:5  | 
207 | 201 |    |  | 
208 | 202 | LL |     #[pin_v2]  | 
209 | 203 |    |     ^^^^^^^^^  | 
210 | 204 |    |  | 
211 | 205 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
212 | 206 | 
 
  | 
213 | 207 | error: `#[pin_v2]` attribute cannot be used on expressions  | 
214 |  | -  --> $DIR/pin_v2-attr.rs:94:5  | 
 | 208 | +  --> $DIR/pin_v2-attr.rs:95:5  | 
215 | 209 |    |  | 
216 | 210 | LL |     #[pin_v2]  | 
217 | 211 |    |     ^^^^^^^^^  | 
218 | 212 |    |  | 
219 | 213 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
220 | 214 | 
 
  | 
221 | 215 | error: `#[pin_v2]` attribute cannot be used on struct fields  | 
222 |  | -  --> $DIR/pin_v2-attr.rs:98:9  | 
 | 216 | +  --> $DIR/pin_v2-attr.rs:99:9  | 
223 | 217 |    |  | 
224 | 218 | LL |         #[pin_v2]  | 
225 | 219 |    |         ^^^^^^^^^  | 
226 | 220 |    |  | 
227 | 221 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
228 | 222 | 
 
  | 
229 | 223 | error: `#[pin_v2]` attribute cannot be used on statements  | 
230 |  | -  --> $DIR/pin_v2-attr.rs:96:5  | 
 | 224 | +  --> $DIR/pin_v2-attr.rs:97:5  | 
231 | 225 |    |  | 
232 | 226 | LL |     #[pin_v2]  | 
233 | 227 |    |     ^^^^^^^^^  | 
234 | 228 |    |  | 
235 | 229 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
236 | 230 | 
 
  | 
237 | 231 | error: `#[pin_v2]` attribute cannot be used on match arms  | 
238 |  | -  --> $DIR/pin_v2-attr.rs:102:9  | 
 | 232 | +  --> $DIR/pin_v2-attr.rs:103:9  | 
239 | 233 |    |  | 
240 | 234 | LL |         #[pin_v2]  | 
241 | 235 |    |         ^^^^^^^^^  | 
242 | 236 |    |  | 
243 | 237 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
244 | 238 | 
 
  | 
245 | 239 | error: `#[pin_v2]` attribute cannot be used on pattern fields  | 
246 |  | -  --> $DIR/pin_v2-attr.rs:106:13  | 
 | 240 | +  --> $DIR/pin_v2-attr.rs:107:13  | 
247 | 241 |    |  | 
248 | 242 | LL |             #[pin_v2]  | 
249 | 243 |    |             ^^^^^^^^^  | 
250 | 244 |    |  | 
251 | 245 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
252 | 246 | 
 
  | 
253 | 247 | error: `#[pin_v2]` attribute cannot be used on where predicates  | 
254 |  | -  --> $DIR/pin_v2-attr.rs:88:5  | 
 | 248 | +  --> $DIR/pin_v2-attr.rs:89:5  | 
255 | 249 |    |  | 
256 | 250 | LL |     #[pin_v2]  | 
257 | 251 |    |     ^^^^^^^^^  | 
258 | 252 |    |  | 
259 | 253 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
260 | 254 | 
 
  | 
261 | 255 | error: `#[pin_v2]` attribute cannot be used on modules  | 
262 |  | -  --> $DIR/pin_v2-attr.rs:112:1  | 
 | 256 | +  --> $DIR/pin_v2-attr.rs:113:1  | 
263 | 257 |    |  | 
264 | 258 | LL | #[pin_v2]  | 
265 | 259 |    | ^^^^^^^^^  | 
266 | 260 |    |  | 
267 | 261 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
268 | 262 | 
 
  | 
269 | 263 | error: `#[pin_v2]` attribute cannot be used on foreign modules  | 
270 |  | -  --> $DIR/pin_v2-attr.rs:115:1  | 
 | 264 | +  --> $DIR/pin_v2-attr.rs:116:1  | 
271 | 265 |    |  | 
272 | 266 | LL | #[pin_v2]  | 
273 | 267 |    | ^^^^^^^^^  | 
274 | 268 |    |  | 
275 | 269 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
276 | 270 | 
 
  | 
277 | 271 | error: `#[pin_v2]` attribute cannot be used on foreign types  | 
278 |  | -  --> $DIR/pin_v2-attr.rs:117:5  | 
 | 272 | +  --> $DIR/pin_v2-attr.rs:118:5  | 
279 | 273 |    |  | 
280 | 274 | LL |     #[pin_v2]  | 
281 | 275 |    |     ^^^^^^^^^  | 
282 | 276 |    |  | 
283 | 277 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
284 | 278 | 
 
  | 
285 | 279 | error: `#[pin_v2]` attribute cannot be used on foreign statics  | 
286 |  | -  --> $DIR/pin_v2-attr.rs:120:5  | 
 | 280 | +  --> $DIR/pin_v2-attr.rs:121:5  | 
287 | 281 |    |  | 
288 | 282 | LL |     #[pin_v2]  | 
289 | 283 |    |     ^^^^^^^^^  | 
290 | 284 |    |  | 
291 | 285 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
292 | 286 | 
 
  | 
293 | 287 | error: `#[pin_v2]` attribute cannot be used on foreign functions  | 
294 |  | -  --> $DIR/pin_v2-attr.rs:123:5  | 
 | 288 | +  --> $DIR/pin_v2-attr.rs:124:5  | 
295 | 289 |    |  | 
296 | 290 | LL |     #[pin_v2]  | 
297 | 291 |    |     ^^^^^^^^^  | 
298 | 292 |    |  | 
299 | 293 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
300 | 294 | 
 
  | 
301 | 295 | error: `#[pin_v2]` attribute cannot be used on type aliases  | 
302 |  | -  --> $DIR/pin_v2-attr.rs:127:1  | 
 | 296 | +  --> $DIR/pin_v2-attr.rs:128:1  | 
303 | 297 |    |  | 
304 | 298 | LL | #[pin_v2]  | 
305 | 299 |    | ^^^^^^^^^  | 
306 | 300 |    |  | 
307 | 301 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
308 | 302 | 
 
  | 
309 | 303 | error: `#[pin_v2]` attribute cannot be used on macro defs  | 
310 |  | -  --> $DIR/pin_v2-attr.rs:130:1  | 
 | 304 | +  --> $DIR/pin_v2-attr.rs:131:1  | 
311 | 305 |    |  | 
312 | 306 | LL | #[pin_v2]  | 
313 | 307 |    | ^^^^^^^^^  | 
314 | 308 |    |  | 
315 | 309 |    = help: `#[pin_v2]` can be applied to data types and unions  | 
316 | 310 | 
 
  | 
317 |  | -error: aborting due to 40 previous errors  | 
 | 311 | +error: aborting due to 39 previous errors  | 
318 | 312 | 
 
  | 
0 commit comments