macros: add interop between diagnostic derives

Add `#[subdiagnostic]` field attribute to the diagnostic derive which
is applied to fields that have types which use the subdiagnostic derive.

Signed-off-by: David Wood <david.wood@huawei.com>
This commit is contained in:
David Wood
2022-04-27 05:59:48 +01:00
parent e5d9371b30
commit dca88612b9
4 changed files with 16 additions and 3 deletions

View File

@@ -73,6 +73,7 @@ decl_derive!(
skip_arg,
primary_span,
label,
subdiagnostic,
suggestion,
suggestion_short,
suggestion_hidden,