@@ -134,20 +134,14 @@ error: diagnostic slug must be first argument of a `#[label(...)]` attribute
134134LL | #[label(code = "...")]
135135 | ^^^^^^^^^^^^^^^^^^^^^^
136136
137- error: subdiagnostic kind not specified
138- --> $DIR/subdiagnostic-derive.rs:239:5
139- |
140- LL | B {
141- | ^
142-
143137error: 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
145139 |
146140LL | #[primary_span]
147141 | ^^^^^^^^^^^^^^^
148142
149143error: label without `#[primary_span]` field
150- --> $DIR/subdiagnostic-derive.rs:248 :1
144+ --> $DIR/subdiagnostic-derive.rs:247 :1
151145 |
152146LL | / #[label(parser::add_paren)]
153147LL | |
@@ -159,35 +153,35 @@ LL | | }
159153 | |_^
160154
161155error: `#[applicability]` is only valid on suggestions
162- --> $DIR/subdiagnostic-derive.rs:261 :5
156+ --> $DIR/subdiagnostic-derive.rs:260 :5
163157 |
164158LL | #[applicability]
165159 | ^^^^^^^^^^^^^^^^
166160
167161error: `#[bar]` is not a valid attribute
168- --> $DIR/subdiagnostic-derive.rs:271 :5
162+ --> $DIR/subdiagnostic-derive.rs:270 :5
169163 |
170164LL | #[bar]
171165 | ^^^^^^
172166 |
173167 = help: only `primary_span`, `applicability` and `skip_arg` are valid field attributes
174168
175169error: `#[bar = ...]` is not a valid attribute
176- --> $DIR/subdiagnostic-derive.rs:282 :5
170+ --> $DIR/subdiagnostic-derive.rs:281 :5
177171 |
178172LL | #[bar = "..."]
179173 | ^^^^^^^^^^^^^^
180174
181175error: `#[bar(...)]` is not a valid attribute
182- --> $DIR/subdiagnostic-derive.rs:293 :5
176+ --> $DIR/subdiagnostic-derive.rs:292 :5
183177 |
184178LL | #[bar("...")]
185179 | ^^^^^^^^^^^^^
186180 |
187181 = help: only `primary_span`, `applicability` and `skip_arg` are valid field attributes
188182
189183error: unexpected unsupported untagged union
190- --> $DIR/subdiagnostic-derive.rs:309 :1
184+ --> $DIR/subdiagnostic-derive.rs:308 :1
191185 |
192186LL | / union AC {
193187LL | |
@@ -197,75 +191,75 @@ LL | | }
197191 | |_^
198192
199193error: `#[label(parser::add_paren)]` is not a valid attribute
200- --> $DIR/subdiagnostic-derive.rs:324 :28
194+ --> $DIR/subdiagnostic-derive.rs:323 :28
201195 |
202196LL | #[label(parser::add_paren, parser::add_paren)]
203197 | ^^^^^^^^^^^^^^^^^
204198 |
205199 = help: a diagnostic slug must be the first argument to the attribute
206200
207201error: specified multiple times
208- --> $DIR/subdiagnostic-derive.rs:337 :5
202+ --> $DIR/subdiagnostic-derive.rs:336 :5
209203 |
210204LL | #[primary_span]
211205 | ^^^^^^^^^^^^^^^
212206 |
213207note: previously specified here
214- --> $DIR/subdiagnostic-derive.rs:334 :5
208+ --> $DIR/subdiagnostic-derive.rs:333 :5
215209 |
216210LL | #[primary_span]
217211 | ^^^^^^^^^^^^^^^
218212
219213error: subdiagnostic kind not specified
220- --> $DIR/subdiagnostic-derive.rs:343 :8
214+ --> $DIR/subdiagnostic-derive.rs:342 :8
221215 |
222216LL | struct AG {
223217 | ^^
224218
225219error: specified multiple times
226- --> $DIR/subdiagnostic-derive.rs:380 :47
220+ --> $DIR/subdiagnostic-derive.rs:379 :47
227221 |
228222LL | #[suggestion(parser::add_paren, code = "...", code = "...")]
229223 | ^^^^^^^^^^^^
230224 |
231225note: previously specified here
232- --> $DIR/subdiagnostic-derive.rs:380 :33
226+ --> $DIR/subdiagnostic-derive.rs:379 :33
233227 |
234228LL | #[suggestion(parser::add_paren, code = "...", code = "...")]
235229 | ^^^^^^^^^^^^
236230
237231error: specified multiple times
238- --> $DIR/subdiagnostic-derive.rs:398 :5
232+ --> $DIR/subdiagnostic-derive.rs:397 :5
239233 |
240234LL | #[applicability]
241235 | ^^^^^^^^^^^^^^^^
242236 |
243237note: previously specified here
244- --> $DIR/subdiagnostic-derive.rs:395 :5
238+ --> $DIR/subdiagnostic-derive.rs:394 :5
245239 |
246240LL | #[applicability]
247241 | ^^^^^^^^^^^^^^^^
248242
249243error: 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
251245 |
252246LL | #[applicability]
253247 | ^^^^^^^^^^^^^^^^
254248
255249error: suggestion without `code = "..."`
256- --> $DIR/subdiagnostic-derive.rs:421 :1
250+ --> $DIR/subdiagnostic-derive.rs:420 :1
257251 |
258252LL | #[suggestion(parser::add_paren)]
259253 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
260254
261255error: invalid applicability
262- --> $DIR/subdiagnostic-derive.rs:431 :46
256+ --> $DIR/subdiagnostic-derive.rs:430 :46
263257 |
264258LL | #[suggestion(parser::add_paren, code ="...", applicability = "foo")]
265259 | ^^^^^^^^^^^^^^^^^^^^^
266260
267261error: suggestion without `#[primary_span]` field
268- --> $DIR/subdiagnostic-derive.rs:449 :1
262+ --> $DIR/subdiagnostic-derive.rs:448 :1
269263 |
270264LL | / #[suggestion(parser::add_paren, code = "...")]
271265LL | |
@@ -275,41 +269,41 @@ LL | | }
275269 | |_^
276270
277271error: unsupported type attribute for subdiagnostic enum
278- --> $DIR/subdiagnostic-derive.rs:463 :1
272+ --> $DIR/subdiagnostic-derive.rs:462 :1
279273 |
280274LL | #[label]
281275 | ^^^^^^^^
282276
283277error: `var` doesn't refer to a field on this type
284- --> $DIR/subdiagnostic-derive.rs:483 :39
278+ --> $DIR/subdiagnostic-derive.rs:482 :39
285279 |
286280LL | #[suggestion(parser::add_paren, code ="{var}", applicability = "machine-applicable")]
287281 | ^^^^^^^
288282
289283error: `var` doesn't refer to a field on this type
290- --> $DIR/subdiagnostic-derive.rs:502 :43
284+ --> $DIR/subdiagnostic-derive.rs:501 :43
291285 |
292286LL | #[suggestion(parser::add_paren, code ="{var}", applicability = "machine-applicable")]
293287 | ^^^^^^^
294288
295289error: `#[suggestion_part]` is not a valid attribute
296- --> $DIR/subdiagnostic-derive.rs:525 :5
290+ --> $DIR/subdiagnostic-derive.rs:524 :5
297291 |
298292LL | #[suggestion_part]
299293 | ^^^^^^^^^^^^^^^^^^
300294 |
301295 = help: `#[suggestion_part(...)]` is only valid in multipart suggestions, use `#[primary_span]` instead
302296
303297error: `#[suggestion_part(...)]` is not a valid attribute
304- --> $DIR/subdiagnostic-derive.rs:528 :5
298+ --> $DIR/subdiagnostic-derive.rs:527 :5
305299 |
306300LL | #[suggestion_part(code = "...")]
307301 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
308302 |
309303 = help: `#[suggestion_part(...)]` is only valid in multipart suggestions
310304
311305error: suggestion without `#[primary_span]` field
312- --> $DIR/subdiagnostic-derive.rs:522 :1
306+ --> $DIR/subdiagnostic-derive.rs:521 :1
313307 |
314308LL | / #[suggestion(parser::add_paren, code = "...")]
315309LL | |
@@ -321,15 +315,15 @@ LL | | }
321315 | |_^
322316
323317error: `#[multipart_suggestion(code = ...)]` is not a valid attribute
324- --> $DIR/subdiagnostic-derive.rs:537 :43
318+ --> $DIR/subdiagnostic-derive.rs:536 :43
325319 |
326320LL | #[multipart_suggestion(parser::add_paren, code = "...", applicability = "machine-applicable")]
327321 | ^^^^^^^^^^^^
328322 |
329323 = help: only `applicability` is a valid nested attributes
330324
331325error: multipart suggestion without any `#[suggestion_part(...)]` fields
332- --> $DIR/subdiagnostic-derive.rs:537 :1
326+ --> $DIR/subdiagnostic-derive.rs:536 :1
333327 |
334328LL | / #[multipart_suggestion(parser::add_paren, code = "...", applicability = "machine-applicable")]
335329LL | |
@@ -340,27 +334,27 @@ LL | | }
340334 | |_^
341335
342336error: `#[suggestion_part(...)]` attribute without `code = "..."`
343- --> $DIR/subdiagnostic-derive.rs:547 :5
337+ --> $DIR/subdiagnostic-derive.rs:546 :5
344338 |
345339LL | #[suggestion_part]
346340 | ^^^^^^^^^^^^^^^^^^
347341
348342error: `#[suggestion_part(...)]` attribute without `code = "..."`
349- --> $DIR/subdiagnostic-derive.rs:555 :5
343+ --> $DIR/subdiagnostic-derive.rs:554 :5
350344 |
351345LL | #[suggestion_part()]
352346 | ^^^^^^^^^^^^^^^^^^^^
353347
354348error: `#[primary_span]` is not a valid attribute
355- --> $DIR/subdiagnostic-derive.rs:564 :5
349+ --> $DIR/subdiagnostic-derive.rs:563 :5
356350 |
357351LL | #[primary_span]
358352 | ^^^^^^^^^^^^^^^
359353 |
360354 = help: multipart suggestions use one or more `#[suggestion_part]`s rather than one `#[primary_span]`
361355
362356error: multipart suggestion without any `#[suggestion_part(...)]` fields
363- --> $DIR/subdiagnostic-derive.rs:561 :1
357+ --> $DIR/subdiagnostic-derive.rs:560 :1
364358 |
365359LL | / #[multipart_suggestion(parser::add_paren)]
366360LL | |
@@ -372,51 +366,51 @@ LL | | }
372366 | |_^
373367
374368error: `#[suggestion_part(...)]` attribute without `code = "..."`
375- --> $DIR/subdiagnostic-derive.rs:572 :5
369+ --> $DIR/subdiagnostic-derive.rs:571 :5
376370 |
377371LL | #[suggestion_part]
378372 | ^^^^^^^^^^^^^^^^^^
379373
380374error: `#[suggestion_part(...)]` attribute without `code = "..."`
381- --> $DIR/subdiagnostic-derive.rs:575 :5
375+ --> $DIR/subdiagnostic-derive.rs:574 :5
382376 |
383377LL | #[suggestion_part()]
384378 | ^^^^^^^^^^^^^^^^^^^^
385379
386380error: `#[suggestion_part(foo = ...)]` is not a valid attribute
387- --> $DIR/subdiagnostic-derive.rs:578 :23
381+ --> $DIR/subdiagnostic-derive.rs:577 :23
388382 |
389383LL | #[suggestion_part(foo = "bar")]
390384 | ^^^^^^^^^^^
391385 |
392386 = help: `code` is the only valid nested attribute
393387
394388error: 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
396390 |
397391LL | #[suggestion_part(code = "...")]
398392 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
399393
400394error: 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
402396 |
403397LL | #[suggestion_part()]
404398 | ^^^^^^^^^^^^^^^^^^^^
405399
406400error: specified multiple times
407- --> $DIR/subdiagnostic-derive.rs:592 :37
401+ --> $DIR/subdiagnostic-derive.rs:591 :37
408402 |
409403LL | #[suggestion_part(code = "...", code = ",,,")]
410404 | ^^^^^^^^^^^^
411405 |
412406note: previously specified here
413- --> $DIR/subdiagnostic-derive.rs:592 :23
407+ --> $DIR/subdiagnostic-derive.rs:591 :23
414408 |
415409LL | #[suggestion_part(code = "...", code = ",,,")]
416410 | ^^^^^^^^^^^^
417411
418412error: `#[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
420414 |
421415LL | #[applicability]
422416 | ^^^^^^^^^^^^^^^^
@@ -458,19 +452,19 @@ LL | #[bar("...")]
458452 | ^^^
459453
460454error: cannot find attribute `bar` in this scope
461- --> $DIR/subdiagnostic-derive.rs:271 :7
455+ --> $DIR/subdiagnostic-derive.rs:270 :7
462456 |
463457LL | #[bar]
464458 | ^^^
465459
466460error: cannot find attribute `bar` in this scope
467- --> $DIR/subdiagnostic-derive.rs:282 :7
461+ --> $DIR/subdiagnostic-derive.rs:281 :7
468462 |
469463LL | #[bar = "..."]
470464 | ^^^
471465
472466error: cannot find attribute `bar` in this scope
473- --> $DIR/subdiagnostic-derive.rs:293 :7
467+ --> $DIR/subdiagnostic-derive.rs:292 :7
474468 |
475469LL | #[bar("...")]
476470 | ^^^
@@ -481,6 +475,6 @@ error[E0425]: cannot find value `slug` in module `rustc_errors::fluent`
481475LL | #[label(slug)]
482476 | ^^^^ not found in `rustc_errors::fluent`
483477
484- error: aborting due to 68 previous errors
478+ error: aborting due to 67 previous errors
485479
486480For more information about this error, try `rustc --explain E0425`.
0 commit comments