@@ -539,7 +539,7 @@ error: `#[subdiagnostic(...)]` is not a valid attribute
539539LL | #[subdiagnostic(bad)]
540540 | ^^^^^^^^^^^^^^^^^^^^^
541541 |
542- = help: `subdiagnostic` does not support nested attributes
542+ = help: `eager` is the only supported nested attribute for `subdiagnostic`
543543
544544error: `#[subdiagnostic = ...]` is not a valid attribute
545545 --> $DIR/diagnostic-derive.rs:693:5
@@ -553,54 +553,38 @@ error: `#[subdiagnostic(...)]` is not a valid attribute
553553LL | #[subdiagnostic(bad, bad)]
554554 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
555555 |
556- = help: `subdiagnostic` does not support nested attributes
556+ = help: `eager` is the only supported nested attribute for `subdiagnostic`
557557
558558error: `#[subdiagnostic(...)]` is not a valid attribute
559559 --> $DIR/diagnostic-derive.rs:709:5
560560 |
561561LL | #[subdiagnostic("bad")]
562562 | ^^^^^^^^^^^^^^^^^^^^^^^
563563 |
564- = help: `subdiagnostic` does not support nested attributes
564+ = help: `eager` is the only supported nested attribute for `subdiagnostic`
565565
566566error: `#[subdiagnostic(...)]` is not a valid attribute
567567 --> $DIR/diagnostic-derive.rs:717:5
568568 |
569569LL | #[subdiagnostic(eager)]
570570 | ^^^^^^^^^^^^^^^^^^^^^^^
571571 |
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
589573
590574error: expected at least one string literal for `code(...)`
591- --> $DIR/diagnostic-derive.rs:777 :18
575+ --> $DIR/diagnostic-derive.rs:775 :18
592576 |
593577LL | #[suggestion(code())]
594578 | ^^^^^^
595579
596580error: `code(...)` must contain only string literals
597- --> $DIR/diagnostic-derive.rs:785 :23
581+ --> $DIR/diagnostic-derive.rs:783 :23
598582 |
599583LL | #[suggestion(code(foo))]
600584 | ^^^
601585
602586error: `code = "..."`/`code(...)` must contain only string literals
603- --> $DIR/diagnostic-derive.rs:793 :18
587+ --> $DIR/diagnostic-derive.rs:791 :18
604588 |
605589LL | #[suggestion(code = 3)]
606590 | ^^^^^^^^
@@ -676,7 +660,7 @@ note: required by a bound in `DiagnosticBuilder::<'a, G>::set_arg`
676660 --> $COMPILER_DIR/rustc_errors/src/diagnostic_builder.rs:LL:CC
677661 = 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)
678662
679- error: aborting due to 85 previous errors
663+ error: aborting due to 83 previous errors
680664
681665Some errors have detailed explanations: E0277, E0425.
682666For more information about an error, try `rustc --explain E0277`.
0 commit comments