@@ -134,20 +134,14 @@ error: diagnostic slug must be first argument of a `#[label(...)]` attribute
134
134
LL | #[label(code = "...")]
135
135
| ^^^^^^^^^^^^^^^^^^^^^^
136
136
137
- error: subdiagnostic kind not specified
138
- --> $DIR/subdiagnostic-derive.rs:239:5
139
- |
140
- LL | B {
141
- | ^
142
-
143
137
error: the `#[primary_span]` attribute can only be applied to fields of type `Span` or `MultiSpan`
144
- --> $DIR/subdiagnostic-derive.rs:251 :5
138
+ --> $DIR/subdiagnostic-derive.rs:250 :5
145
139
|
146
140
LL | #[primary_span]
147
141
| ^^^^^^^^^^^^^^^
148
142
149
143
error: label without `#[primary_span]` field
150
- --> $DIR/subdiagnostic-derive.rs:248 :1
144
+ --> $DIR/subdiagnostic-derive.rs:247 :1
151
145
|
152
146
LL | / #[label(parser::add_paren)]
153
147
LL | |
@@ -159,35 +153,35 @@ LL | | }
159
153
| |_^
160
154
161
155
error: `#[applicability]` is only valid on suggestions
162
- --> $DIR/subdiagnostic-derive.rs:261 :5
156
+ --> $DIR/subdiagnostic-derive.rs:260 :5
163
157
|
164
158
LL | #[applicability]
165
159
| ^^^^^^^^^^^^^^^^
166
160
167
161
error: `#[bar]` is not a valid attribute
168
- --> $DIR/subdiagnostic-derive.rs:271 :5
162
+ --> $DIR/subdiagnostic-derive.rs:270 :5
169
163
|
170
164
LL | #[bar]
171
165
| ^^^^^^
172
166
|
173
167
= help: only `primary_span`, `applicability` and `skip_arg` are valid field attributes
174
168
175
169
error: `#[bar = ...]` is not a valid attribute
176
- --> $DIR/subdiagnostic-derive.rs:282 :5
170
+ --> $DIR/subdiagnostic-derive.rs:281 :5
177
171
|
178
172
LL | #[bar = "..."]
179
173
| ^^^^^^^^^^^^^^
180
174
181
175
error: `#[bar(...)]` is not a valid attribute
182
- --> $DIR/subdiagnostic-derive.rs:293 :5
176
+ --> $DIR/subdiagnostic-derive.rs:292 :5
183
177
|
184
178
LL | #[bar("...")]
185
179
| ^^^^^^^^^^^^^
186
180
|
187
181
= help: only `primary_span`, `applicability` and `skip_arg` are valid field attributes
188
182
189
183
error: unexpected unsupported untagged union
190
- --> $DIR/subdiagnostic-derive.rs:309 :1
184
+ --> $DIR/subdiagnostic-derive.rs:308 :1
191
185
|
192
186
LL | / union AC {
193
187
LL | |
@@ -197,75 +191,75 @@ LL | | }
197
191
| |_^
198
192
199
193
error: `#[label(parser::add_paren)]` is not a valid attribute
200
- --> $DIR/subdiagnostic-derive.rs:324 :28
194
+ --> $DIR/subdiagnostic-derive.rs:323 :28
201
195
|
202
196
LL | #[label(parser::add_paren, parser::add_paren)]
203
197
| ^^^^^^^^^^^^^^^^^
204
198
|
205
199
= help: a diagnostic slug must be the first argument to the attribute
206
200
207
201
error: specified multiple times
208
- --> $DIR/subdiagnostic-derive.rs:337 :5
202
+ --> $DIR/subdiagnostic-derive.rs:336 :5
209
203
|
210
204
LL | #[primary_span]
211
205
| ^^^^^^^^^^^^^^^
212
206
|
213
207
note: previously specified here
214
- --> $DIR/subdiagnostic-derive.rs:334 :5
208
+ --> $DIR/subdiagnostic-derive.rs:333 :5
215
209
|
216
210
LL | #[primary_span]
217
211
| ^^^^^^^^^^^^^^^
218
212
219
213
error: subdiagnostic kind not specified
220
- --> $DIR/subdiagnostic-derive.rs:343 :8
214
+ --> $DIR/subdiagnostic-derive.rs:342 :8
221
215
|
222
216
LL | struct AG {
223
217
| ^^
224
218
225
219
error: specified multiple times
226
- --> $DIR/subdiagnostic-derive.rs:380 :47
220
+ --> $DIR/subdiagnostic-derive.rs:379 :47
227
221
|
228
222
LL | #[suggestion(parser::add_paren, code = "...", code = "...")]
229
223
| ^^^^^^^^^^^^
230
224
|
231
225
note: previously specified here
232
- --> $DIR/subdiagnostic-derive.rs:380 :33
226
+ --> $DIR/subdiagnostic-derive.rs:379 :33
233
227
|
234
228
LL | #[suggestion(parser::add_paren, code = "...", code = "...")]
235
229
| ^^^^^^^^^^^^
236
230
237
231
error: specified multiple times
238
- --> $DIR/subdiagnostic-derive.rs:398 :5
232
+ --> $DIR/subdiagnostic-derive.rs:397 :5
239
233
|
240
234
LL | #[applicability]
241
235
| ^^^^^^^^^^^^^^^^
242
236
|
243
237
note: previously specified here
244
- --> $DIR/subdiagnostic-derive.rs:395 :5
238
+ --> $DIR/subdiagnostic-derive.rs:394 :5
245
239
|
246
240
LL | #[applicability]
247
241
| ^^^^^^^^^^^^^^^^
248
242
249
243
error: the `#[applicability]` attribute can only be applied to fields of type `Applicability`
250
- --> $DIR/subdiagnostic-derive.rs:408 :5
244
+ --> $DIR/subdiagnostic-derive.rs:407 :5
251
245
|
252
246
LL | #[applicability]
253
247
| ^^^^^^^^^^^^^^^^
254
248
255
249
error: suggestion without `code = "..."`
256
- --> $DIR/subdiagnostic-derive.rs:421 :1
250
+ --> $DIR/subdiagnostic-derive.rs:420 :1
257
251
|
258
252
LL | #[suggestion(parser::add_paren)]
259
253
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
260
254
261
255
error: invalid applicability
262
- --> $DIR/subdiagnostic-derive.rs:431 :46
256
+ --> $DIR/subdiagnostic-derive.rs:430 :46
263
257
|
264
258
LL | #[suggestion(parser::add_paren, code ="...", applicability = "foo")]
265
259
| ^^^^^^^^^^^^^^^^^^^^^
266
260
267
261
error: suggestion without `#[primary_span]` field
268
- --> $DIR/subdiagnostic-derive.rs:449 :1
262
+ --> $DIR/subdiagnostic-derive.rs:448 :1
269
263
|
270
264
LL | / #[suggestion(parser::add_paren, code = "...")]
271
265
LL | |
@@ -275,41 +269,41 @@ LL | | }
275
269
| |_^
276
270
277
271
error: unsupported type attribute for subdiagnostic enum
278
- --> $DIR/subdiagnostic-derive.rs:463 :1
272
+ --> $DIR/subdiagnostic-derive.rs:462 :1
279
273
|
280
274
LL | #[label]
281
275
| ^^^^^^^^
282
276
283
277
error: `var` doesn't refer to a field on this type
284
- --> $DIR/subdiagnostic-derive.rs:483 :39
278
+ --> $DIR/subdiagnostic-derive.rs:482 :39
285
279
|
286
280
LL | #[suggestion(parser::add_paren, code ="{var}", applicability = "machine-applicable")]
287
281
| ^^^^^^^
288
282
289
283
error: `var` doesn't refer to a field on this type
290
- --> $DIR/subdiagnostic-derive.rs:502 :43
284
+ --> $DIR/subdiagnostic-derive.rs:501 :43
291
285
|
292
286
LL | #[suggestion(parser::add_paren, code ="{var}", applicability = "machine-applicable")]
293
287
| ^^^^^^^
294
288
295
289
error: `#[suggestion_part]` is not a valid attribute
296
- --> $DIR/subdiagnostic-derive.rs:525 :5
290
+ --> $DIR/subdiagnostic-derive.rs:524 :5
297
291
|
298
292
LL | #[suggestion_part]
299
293
| ^^^^^^^^^^^^^^^^^^
300
294
|
301
295
= help: `#[suggestion_part(...)]` is only valid in multipart suggestions, use `#[primary_span]` instead
302
296
303
297
error: `#[suggestion_part(...)]` is not a valid attribute
304
- --> $DIR/subdiagnostic-derive.rs:528 :5
298
+ --> $DIR/subdiagnostic-derive.rs:527 :5
305
299
|
306
300
LL | #[suggestion_part(code = "...")]
307
301
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
308
302
|
309
303
= help: `#[suggestion_part(...)]` is only valid in multipart suggestions
310
304
311
305
error: suggestion without `#[primary_span]` field
312
- --> $DIR/subdiagnostic-derive.rs:522 :1
306
+ --> $DIR/subdiagnostic-derive.rs:521 :1
313
307
|
314
308
LL | / #[suggestion(parser::add_paren, code = "...")]
315
309
LL | |
@@ -321,15 +315,15 @@ LL | | }
321
315
| |_^
322
316
323
317
error: `#[multipart_suggestion(code = ...)]` is not a valid attribute
324
- --> $DIR/subdiagnostic-derive.rs:537 :43
318
+ --> $DIR/subdiagnostic-derive.rs:536 :43
325
319
|
326
320
LL | #[multipart_suggestion(parser::add_paren, code = "...", applicability = "machine-applicable")]
327
321
| ^^^^^^^^^^^^
328
322
|
329
323
= help: only `applicability` is a valid nested attributes
330
324
331
325
error: multipart suggestion without any `#[suggestion_part(...)]` fields
332
- --> $DIR/subdiagnostic-derive.rs:537 :1
326
+ --> $DIR/subdiagnostic-derive.rs:536 :1
333
327
|
334
328
LL | / #[multipart_suggestion(parser::add_paren, code = "...", applicability = "machine-applicable")]
335
329
LL | |
@@ -340,27 +334,27 @@ LL | | }
340
334
| |_^
341
335
342
336
error: `#[suggestion_part(...)]` attribute without `code = "..."`
343
- --> $DIR/subdiagnostic-derive.rs:547 :5
337
+ --> $DIR/subdiagnostic-derive.rs:546 :5
344
338
|
345
339
LL | #[suggestion_part]
346
340
| ^^^^^^^^^^^^^^^^^^
347
341
348
342
error: `#[suggestion_part(...)]` attribute without `code = "..."`
349
- --> $DIR/subdiagnostic-derive.rs:555 :5
343
+ --> $DIR/subdiagnostic-derive.rs:554 :5
350
344
|
351
345
LL | #[suggestion_part()]
352
346
| ^^^^^^^^^^^^^^^^^^^^
353
347
354
348
error: `#[primary_span]` is not a valid attribute
355
- --> $DIR/subdiagnostic-derive.rs:564 :5
349
+ --> $DIR/subdiagnostic-derive.rs:563 :5
356
350
|
357
351
LL | #[primary_span]
358
352
| ^^^^^^^^^^^^^^^
359
353
|
360
354
= help: multipart suggestions use one or more `#[suggestion_part]`s rather than one `#[primary_span]`
361
355
362
356
error: multipart suggestion without any `#[suggestion_part(...)]` fields
363
- --> $DIR/subdiagnostic-derive.rs:561 :1
357
+ --> $DIR/subdiagnostic-derive.rs:560 :1
364
358
|
365
359
LL | / #[multipart_suggestion(parser::add_paren)]
366
360
LL | |
@@ -372,51 +366,51 @@ LL | | }
372
366
| |_^
373
367
374
368
error: `#[suggestion_part(...)]` attribute without `code = "..."`
375
- --> $DIR/subdiagnostic-derive.rs:572 :5
369
+ --> $DIR/subdiagnostic-derive.rs:571 :5
376
370
|
377
371
LL | #[suggestion_part]
378
372
| ^^^^^^^^^^^^^^^^^^
379
373
380
374
error: `#[suggestion_part(...)]` attribute without `code = "..."`
381
- --> $DIR/subdiagnostic-derive.rs:575 :5
375
+ --> $DIR/subdiagnostic-derive.rs:574 :5
382
376
|
383
377
LL | #[suggestion_part()]
384
378
| ^^^^^^^^^^^^^^^^^^^^
385
379
386
380
error: `#[suggestion_part(foo = ...)]` is not a valid attribute
387
- --> $DIR/subdiagnostic-derive.rs:578 :23
381
+ --> $DIR/subdiagnostic-derive.rs:577 :23
388
382
|
389
383
LL | #[suggestion_part(foo = "bar")]
390
384
| ^^^^^^^^^^^
391
385
|
392
386
= help: `code` is the only valid nested attribute
393
387
394
388
error: the `#[suggestion_part(...)]` attribute can only be applied to fields of type `Span` or `MultiSpan`
395
- --> $DIR/subdiagnostic-derive.rs:581 :5
389
+ --> $DIR/subdiagnostic-derive.rs:580 :5
396
390
|
397
391
LL | #[suggestion_part(code = "...")]
398
392
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
399
393
400
394
error: the `#[suggestion_part(...)]` attribute can only be applied to fields of type `Span` or `MultiSpan`
401
- --> $DIR/subdiagnostic-derive.rs:584 :5
395
+ --> $DIR/subdiagnostic-derive.rs:583 :5
402
396
|
403
397
LL | #[suggestion_part()]
404
398
| ^^^^^^^^^^^^^^^^^^^^
405
399
406
400
error: specified multiple times
407
- --> $DIR/subdiagnostic-derive.rs:592 :37
401
+ --> $DIR/subdiagnostic-derive.rs:591 :37
408
402
|
409
403
LL | #[suggestion_part(code = "...", code = ",,,")]
410
404
| ^^^^^^^^^^^^
411
405
|
412
406
note: previously specified here
413
- --> $DIR/subdiagnostic-derive.rs:592 :23
407
+ --> $DIR/subdiagnostic-derive.rs:591 :23
414
408
|
415
409
LL | #[suggestion_part(code = "...", code = ",,,")]
416
410
| ^^^^^^^^^^^^
417
411
418
412
error: `#[applicability]` has no effect if all `#[suggestion]`/`#[multipart_suggestion]` attributes have a static `applicability = "..."`
419
- --> $DIR/subdiagnostic-derive.rs:621 :5
413
+ --> $DIR/subdiagnostic-derive.rs:620 :5
420
414
|
421
415
LL | #[applicability]
422
416
| ^^^^^^^^^^^^^^^^
@@ -458,19 +452,19 @@ LL | #[bar("...")]
458
452
| ^^^
459
453
460
454
error: cannot find attribute `bar` in this scope
461
- --> $DIR/subdiagnostic-derive.rs:271 :7
455
+ --> $DIR/subdiagnostic-derive.rs:270 :7
462
456
|
463
457
LL | #[bar]
464
458
| ^^^
465
459
466
460
error: cannot find attribute `bar` in this scope
467
- --> $DIR/subdiagnostic-derive.rs:282 :7
461
+ --> $DIR/subdiagnostic-derive.rs:281 :7
468
462
|
469
463
LL | #[bar = "..."]
470
464
| ^^^
471
465
472
466
error: cannot find attribute `bar` in this scope
473
- --> $DIR/subdiagnostic-derive.rs:293 :7
467
+ --> $DIR/subdiagnostic-derive.rs:292 :7
474
468
|
475
469
LL | #[bar("...")]
476
470
| ^^^
@@ -481,6 +475,6 @@ error[E0425]: cannot find value `slug` in module `rustc_errors::fluent`
481
475
LL | #[label(slug)]
482
476
| ^^^^ not found in `rustc_errors::fluent`
483
477
484
- error: aborting due to 68 previous errors
478
+ error: aborting due to 67 previous errors
485
479
486
480
For more information about this error, try `rustc --explain E0425`.
0 commit comments