@@ -539,7 +539,7 @@ error: `#[subdiagnostic(...)]` is not a valid attribute
539
539
LL | #[subdiagnostic(bad)]
540
540
| ^^^^^^^^^^^^^^^^^^^^^
541
541
|
542
- = help: `subdiagnostic` does not support nested attributes
542
+ = help: `eager` is the only supported nested attribute for `subdiagnostic`
543
543
544
544
error: `#[subdiagnostic = ...]` is not a valid attribute
545
545
--> $DIR/diagnostic-derive.rs:693:5
@@ -553,54 +553,38 @@ error: `#[subdiagnostic(...)]` is not a valid attribute
553
553
LL | #[subdiagnostic(bad, bad)]
554
554
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
555
555
|
556
- = help: `subdiagnostic` does not support nested attributes
556
+ = help: `eager` is the only supported nested attribute for `subdiagnostic`
557
557
558
558
error: `#[subdiagnostic(...)]` is not a valid attribute
559
559
--> $DIR/diagnostic-derive.rs:709:5
560
560
|
561
561
LL | #[subdiagnostic("bad")]
562
562
| ^^^^^^^^^^^^^^^^^^^^^^^
563
563
|
564
- = help: `subdiagnostic` does not support nested attributes
564
+ = help: `eager` is the only supported nested attribute for `subdiagnostic`
565
565
566
566
error: `#[subdiagnostic(...)]` is not a valid attribute
567
567
--> $DIR/diagnostic-derive.rs:717:5
568
568
|
569
569
LL | #[subdiagnostic(eager)]
570
570
| ^^^^^^^^^^^^^^^^^^^^^^^
571
571
|
572
- = help: `subdiagnostic` does not support nested attributes
573
-
574
- error: `#[subdiagnostic(...)]` is not a valid attribute
575
- --> $DIR/diagnostic-derive.rs:725:5
576
- |
577
- LL | #[subdiagnostic(eager)]
578
- | ^^^^^^^^^^^^^^^^^^^^^^^
579
- |
580
- = help: `subdiagnostic` does not support nested attributes
581
-
582
- error: `#[subdiagnostic(...)]` is not a valid attribute
583
- --> $DIR/diagnostic-derive.rs:746:5
584
- |
585
- LL | #[subdiagnostic(eager)]
586
- | ^^^^^^^^^^^^^^^^^^^^^^^
587
- |
588
- = help: `subdiagnostic` does not support nested attributes
572
+ = help: eager subdiagnostics are not supported on lints
589
573
590
574
error: expected at least one string literal for `code(...)`
591
- --> $DIR/diagnostic-derive.rs:777 :18
575
+ --> $DIR/diagnostic-derive.rs:775 :18
592
576
|
593
577
LL | #[suggestion(code())]
594
578
| ^^^^^^
595
579
596
580
error: `code(...)` must contain only string literals
597
- --> $DIR/diagnostic-derive.rs:785 :23
581
+ --> $DIR/diagnostic-derive.rs:783 :23
598
582
|
599
583
LL | #[suggestion(code(foo))]
600
584
| ^^^
601
585
602
586
error: `code = "..."`/`code(...)` must contain only string literals
603
- --> $DIR/diagnostic-derive.rs:793 :18
587
+ --> $DIR/diagnostic-derive.rs:791 :18
604
588
|
605
589
LL | #[suggestion(code = 3)]
606
590
| ^^^^^^^^
@@ -676,7 +660,7 @@ note: required by a bound in `DiagnosticBuilder::<'a, G>::set_arg`
676
660
--> $COMPILER_DIR/rustc_errors/src/diagnostic_builder.rs:LL:CC
677
661
= note: this error originates in the derive macro `Diagnostic` which comes from the expansion of the macro `forward` (in Nightly builds, run with -Z macro-backtrace for more info)
678
662
679
- error: aborting due to 85 previous errors
663
+ error: aborting due to 83 previous errors
680
664
681
665
Some errors have detailed explanations: E0277, E0425.
682
666
For more information about an error, try `rustc --explain E0277`.
0 commit comments