diff options
| author | David Wood <david.wood@huawei.com> | 2022-03-30 09:45:36 +0100 |
|---|---|---|
| committer | David Wood <david.wood@huawei.com> | 2022-04-05 07:01:02 +0100 |
| commit | 9956d4f99d021fa255d007dc17f23a3b0cd351e9 (patch) | |
| tree | ca4296ee715ff51f04bbf3d728f14a6752f04e9f /compiler/rustc_errors/src/snippet.rs | |
| parent | 8677fef192a1d121b9123aa481422505833b57fe (diff) | |
| download | rust-9956d4f99d021fa255d007dc17f23a3b0cd351e9.tar.gz rust-9956d4f99d021fa255d007dc17f23a3b0cd351e9.zip | |
macros: add args for non-subdiagnostic fields
Non-subdiagnostic fields (i.e. those that don't have `#[label]` attributes or similar and are just additional context) have to be added as arguments for Fluent messages to refer them. This commit extends the `SessionDiagnostic` derive to do this for all fields that do not have attributes and introduces an `IntoDiagnosticArg` trait that is implemented on all types that can be converted to a argument for Fluent. Signed-off-by: David Wood <david.wood@huawei.com>
Diffstat (limited to 'compiler/rustc_errors/src/snippet.rs')
0 files changed, 0 insertions, 0 deletions
