@@ -249,36 +249,13 @@ LL | #[applicability]
249
249
| ^^^^^^^^^^^^^^^^
250
250
251
251
error: the `#[applicability]` attribute can only be applied to fields of type `Applicability`
252
- --> $DIR/subdiagnostic-derive.rs:408 :5
252
+ --> $DIR/subdiagnostic-derive.rs:407 :5
253
253
|
254
254
LL | #[applicability]
255
255
| ^^^^^^^^^^^^^^^^
256
256
257
- error: suggestion without `applicability`
258
- --> $DIR/subdiagnostic-derive.rs:403:1
259
- |
260
- LL | / #[suggestion(parser::add_paren, code = "...")]
261
- LL | |
262
- LL | | struct AL {
263
- LL | | #[primary_span]
264
- ... |
265
- LL | | applicability: Span,
266
- LL | | }
267
- | |_^
268
-
269
- error: suggestion without `applicability`
270
- --> $DIR/subdiagnostic-derive.rs:414:1
271
- |
272
- LL | / #[suggestion(parser::add_paren, code = "...")]
273
- LL | |
274
- LL | | struct AM {
275
- LL | | #[primary_span]
276
- LL | | span: Span,
277
- LL | | }
278
- | |_^
279
-
280
257
error: suggestion without `code = "..."`
281
- --> $DIR/subdiagnostic-derive.rs:422 :1
258
+ --> $DIR/subdiagnostic-derive.rs:420 :1
282
259
|
283
260
LL | / #[suggestion(parser::add_paren)]
284
261
LL | |
@@ -290,47 +267,35 @@ LL | | }
290
267
| |_^
291
268
292
269
error: invalid applicability
293
- --> $DIR/subdiagnostic-derive.rs:432 :46
270
+ --> $DIR/subdiagnostic-derive.rs:430 :46
294
271
|
295
272
LL | #[suggestion(parser::add_paren, code ="...", applicability = "foo")]
296
273
| ^^^^^^^^^^^^^^^^^^^^^
297
274
298
- error: suggestion without `applicability`
299
- --> $DIR/subdiagnostic-derive.rs:450:1
300
- |
301
- LL | / #[suggestion(parser::add_paren, code = "...")]
302
- LL | |
303
- LL | |
304
- LL | | struct AR {
305
- LL | | var: String,
306
- LL | | }
307
- | |_^
308
-
309
275
error: suggestion without `#[primary_span]` field
310
- --> $DIR/subdiagnostic-derive.rs:450 :1
276
+ --> $DIR/subdiagnostic-derive.rs:448 :1
311
277
|
312
278
LL | / #[suggestion(parser::add_paren, code = "...")]
313
279
LL | |
314
- LL | |
315
280
LL | | struct AR {
316
281
LL | | var: String,
317
282
LL | | }
318
283
| |_^
319
284
320
285
error: unsupported type attribute for subdiagnostic enum
321
- --> $DIR/subdiagnostic-derive.rs:465 :1
286
+ --> $DIR/subdiagnostic-derive.rs:462 :1
322
287
|
323
288
LL | #[label]
324
289
| ^^^^^^^^
325
290
326
291
error: `var` doesn't refer to a field on this type
327
- --> $DIR/subdiagnostic-derive.rs:485 :39
292
+ --> $DIR/subdiagnostic-derive.rs:482 :39
328
293
|
329
294
LL | #[suggestion(parser::add_paren, code ="{var}", applicability = "machine-applicable")]
330
295
| ^^^^^^^
331
296
332
297
error: `var` doesn't refer to a field on this type
333
- --> $DIR/subdiagnostic-derive.rs:504 :43
298
+ --> $DIR/subdiagnostic-derive.rs:501 :43
334
299
|
335
300
LL | #[suggestion(parser::add_paren, code ="{var}", applicability = "machine-applicable")]
336
301
| ^^^^^^^
@@ -395,6 +360,6 @@ error[E0425]: cannot find value `slug` in module `rustc_errors::fluent`
395
360
LL | #[label(slug)]
396
361
| ^^^^ not found in `rustc_errors::fluent`
397
362
398
- error: aborting due to 52 previous errors
363
+ error: aborting due to 49 previous errors
399
364
400
365
For more information about this error, try `rustc --explain E0425`.
0 commit comments