@@ -533,60 +533,74 @@ LL | #[label]
533
533
|
534
534
= help: `#[label]` and `#[suggestion]` can only be applied to fields
535
535
536
- error: `#[subdiagnostic(bad )]` is not a valid attribute
537
- --> $DIR/diagnostic-derive.rs:685:21
536
+ error: `#[subdiagnostic(... )]` is not a valid attribute
537
+ --> $DIR/diagnostic-derive.rs:685:5
538
538
|
539
539
LL | #[subdiagnostic(bad)]
540
- | ^^^
540
+ | ^^^^^^^^^^^^^^^^^^ ^^^
541
541
|
542
- = help: `eager` is the only supported nested attribute for `subdiagnostic`
542
+ = help: `subdiagnostic` does not support nested attributes
543
543
544
544
error: `#[subdiagnostic = ...]` is not a valid attribute
545
545
--> $DIR/diagnostic-derive.rs:693:5
546
546
|
547
547
LL | #[subdiagnostic = "bad"]
548
548
| ^^^^^^^^^^^^^^^^^^^^^^^^
549
- |
550
- = help: `eager` is the only supported nested attribute for `subdiagnostic`
551
549
552
550
error: `#[subdiagnostic(...)]` is not a valid attribute
553
551
--> $DIR/diagnostic-derive.rs:701:5
554
552
|
555
553
LL | #[subdiagnostic(bad, bad)]
556
554
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
557
555
|
558
- = help: `eager` is the only supported nested attribute for `subdiagnostic`
556
+ = help: `subdiagnostic` does not support nested attributes
559
557
560
- error: `#[subdiagnostic(" ..." )]` is not a valid attribute
561
- --> $DIR/diagnostic-derive.rs:709:21
558
+ error: `#[subdiagnostic(...)]` is not a valid attribute
559
+ --> $DIR/diagnostic-derive.rs:709:5
562
560
|
563
561
LL | #[subdiagnostic("bad")]
564
- | ^^^^^
562
+ | ^^^^^^^^^^^^^^^^^^ ^^^^^
565
563
|
566
- = help: `eager` is the only supported nested attribute for `subdiagnostic`
564
+ = help: `subdiagnostic` does not support nested attributes
567
565
568
566
error: `#[subdiagnostic(...)]` is not a valid attribute
569
567
--> $DIR/diagnostic-derive.rs:717:5
570
568
|
571
569
LL | #[subdiagnostic(eager)]
572
570
| ^^^^^^^^^^^^^^^^^^^^^^^
573
571
|
574
- = help: eager subdiagnostics are not supported on lints
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
575
589
576
590
error: expected at least one string literal for `code(...)`
577
- --> $DIR/diagnostic-derive.rs:775 :18
591
+ --> $DIR/diagnostic-derive.rs:777 :18
578
592
|
579
593
LL | #[suggestion(code())]
580
594
| ^^^^^^
581
595
582
596
error: `code(...)` must contain only string literals
583
- --> $DIR/diagnostic-derive.rs:783 :23
597
+ --> $DIR/diagnostic-derive.rs:785 :23
584
598
|
585
599
LL | #[suggestion(code(foo))]
586
600
| ^^^
587
601
588
602
error: `code = "..."`/`code(...)` must contain only string literals
589
- --> $DIR/diagnostic-derive.rs:791 :18
603
+ --> $DIR/diagnostic-derive.rs:793 :18
590
604
|
591
605
LL | #[suggestion(code = 3)]
592
606
| ^^^^^^^^
@@ -662,7 +676,7 @@ note: required by a bound in `DiagnosticBuilder::<'a, G>::set_arg`
662
676
--> $COMPILER_DIR/rustc_errors/src/diagnostic_builder.rs:LL:CC
663
677
= 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)
664
678
665
- error: aborting due to 83 previous errors
679
+ error: aborting due to 85 previous errors
666
680
667
681
Some errors have detailed explanations: E0277, E0425.
668
682
For more information about an error, try `rustc --explain E0277`.
0 commit comments