@@ -440,86 +440,93 @@ error: `#[lint(...)]` is not a valid attribute
440
440
LL | #[lint(typeck::ambiguous_lifetime_bound, code = "E0123")]
441
441
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
442
442
443
+ error: `#[lint(...)]` is not a valid attribute
444
+ --> $DIR/diagnostic-derive.rs:586:1
445
+ |
446
+ LL | #[lint(typeck::ambiguous_lifetime_bound, code = "E0123")]
447
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
448
+
443
449
error: diagnostic slug not specified
444
450
--> $DIR/diagnostic-derive.rs:586:1
445
451
|
446
452
LL | / #[lint(typeck::ambiguous_lifetime_bound, code = "E0123")]
447
453
LL | |
448
454
LL | |
449
455
LL | |
456
+ LL | |
450
457
LL | | struct LintAttributeOnLintDiag {}
451
458
| |_________________________________^
452
459
|
453
460
= help: specify the slug as the first argument to the attribute, such as `#[diag(typeck::example_error)]`
454
461
455
462
error: specified multiple times
456
- --> $DIR/diagnostic-derive.rs:595 :52
463
+ --> $DIR/diagnostic-derive.rs:596 :52
457
464
|
458
465
LL | #[suggestion(typeck::suggestion, code = "...", code = ",,,")]
459
466
| ^^^^^^^^^^^^
460
467
|
461
468
note: previously specified here
462
- --> $DIR/diagnostic-derive.rs:595 :38
469
+ --> $DIR/diagnostic-derive.rs:596 :38
463
470
|
464
471
LL | #[suggestion(typeck::suggestion, code = "...", code = ",,,")]
465
472
| ^^^^^^^^^^^^
466
473
467
474
error: wrong types for suggestion
468
- --> $DIR/diagnostic-derive.rs:604 :24
475
+ --> $DIR/diagnostic-derive.rs:605 :24
469
476
|
470
477
LL | suggestion: (Span, usize),
471
478
| ^^^^^
472
479
|
473
480
= help: `#[suggestion(...)]` on a tuple field must be applied to fields of type `(Span, Applicability)`
474
481
475
482
error: wrong types for suggestion
476
- --> $DIR/diagnostic-derive.rs:612 :17
483
+ --> $DIR/diagnostic-derive.rs:613 :17
477
484
|
478
485
LL | suggestion: (Span,),
479
486
| ^^^^^^^
480
487
|
481
488
= help: `#[suggestion(...)]` on a tuple field must be applied to fields of type `(Span, Applicability)`
482
489
483
490
error: suggestion without `code = "..."`
484
- --> $DIR/diagnostic-derive.rs:619 :5
491
+ --> $DIR/diagnostic-derive.rs:620 :5
485
492
|
486
493
LL | #[suggestion(typeck::suggestion)]
487
494
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
488
495
489
496
error: `#[multipart_suggestion(...)]` is not a valid attribute
490
- --> $DIR/diagnostic-derive.rs:626 :1
497
+ --> $DIR/diagnostic-derive.rs:627 :1
491
498
|
492
499
LL | #[multipart_suggestion(typeck::suggestion)]
493
500
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
494
501
|
495
502
= help: consider creating a `Subdiagnostic` instead
496
503
497
504
error: `#[multipart_suggestion(...)]` is not a valid attribute
498
- --> $DIR/diagnostic-derive.rs:629 :1
505
+ --> $DIR/diagnostic-derive.rs:630 :1
499
506
|
500
507
LL | #[multipart_suggestion()]
501
508
| ^^^^^^^^^^^^^^^^^^^^^^^^^
502
509
|
503
510
= help: consider creating a `Subdiagnostic` instead
504
511
505
512
error: `#[multipart_suggestion(...)]` is not a valid attribute
506
- --> $DIR/diagnostic-derive.rs:633 :5
513
+ --> $DIR/diagnostic-derive.rs:634 :5
507
514
|
508
515
LL | #[multipart_suggestion(typeck::suggestion)]
509
516
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
510
517
|
511
518
= help: consider creating a `Subdiagnostic` instead
512
519
513
520
error: `#[suggestion(...)]` is not a valid attribute
514
- --> $DIR/diagnostic-derive.rs:641 :1
521
+ --> $DIR/diagnostic-derive.rs:642 :1
515
522
|
516
523
LL | #[suggestion(typeck::suggestion, code = "...")]
517
524
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
518
525
|
519
526
= help: `#[label]` and `#[suggestion]` can only be applied to fields
520
527
521
528
error: `#[label]` is not a valid attribute
522
- --> $DIR/diagnostic-derive.rs:650 :1
529
+ --> $DIR/diagnostic-derive.rs:651 :1
523
530
|
524
531
LL | #[label]
525
532
| ^^^^^^^^
@@ -563,19 +570,19 @@ LL | #[lint(typeck::ambiguous_lifetime_bound, code = "E0123")]
563
570
| ^^^^ help: a built-in attribute with a similar name exists: `link`
564
571
565
572
error: cannot find attribute `multipart_suggestion` in this scope
566
- --> $DIR/diagnostic-derive.rs:626 :3
573
+ --> $DIR/diagnostic-derive.rs:627 :3
567
574
|
568
575
LL | #[multipart_suggestion(typeck::suggestion)]
569
576
| ^^^^^^^^^^^^^^^^^^^^
570
577
571
578
error: cannot find attribute `multipart_suggestion` in this scope
572
- --> $DIR/diagnostic-derive.rs:629 :3
579
+ --> $DIR/diagnostic-derive.rs:630 :3
573
580
|
574
581
LL | #[multipart_suggestion()]
575
582
| ^^^^^^^^^^^^^^^^^^^^
576
583
577
584
error: cannot find attribute `multipart_suggestion` in this scope
578
- --> $DIR/diagnostic-derive.rs:633 :7
585
+ --> $DIR/diagnostic-derive.rs:634 :7
579
586
|
580
587
LL | #[multipart_suggestion(typeck::suggestion)]
581
588
| ^^^^^^^^^^^^^^^^^^^^
@@ -600,7 +607,7 @@ LL | arg: impl IntoDiagnosticArg,
600
607
| ^^^^^^^^^^^^^^^^^ required by this bound in `DiagnosticBuilder::<'a, G>::set_arg`
601
608
= note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
602
609
603
- error: aborting due to 74 previous errors
610
+ error: aborting due to 75 previous errors
604
611
605
612
Some errors have detailed explanations: E0277, E0425.
606
613
For more information about an error, try `rustc --explain E0277`.
0 commit comments