rust/compiler/rustc_error_messages
David Wood f669b78ffc errors: simplify referring to fluent attributes
To render the message of a Fluent attribute, the identifier of the
Fluent message must be known. `DiagnosticMessage::FluentIdentifier`
contains both the message's identifier and optionally the identifier of
an attribute. Generated constants for each attribute would therefore
need to be named uniquely (amongst all error messages) or be able to
refer to only the attribute identifier which will be combined with a
message identifier later. In this commit, the latter strategy is
implemented as part of the `Diagnostic` type's functions for adding
subdiagnostics of various kinds.

Signed-off-by: David Wood <david.wood@huawei.com>
2022-05-30 13:38:19 +01:00
..
locales/en-US migrate maybe_recover_from_bad_type_plus diagnostic 2022-05-16 17:16:27 -05:00
src errors: simplify referring to fluent attributes 2022-05-30 13:38:19 +01:00
Cargo.toml errors: support fluent + parallel compiler 2022-04-05 07:01:03 +01:00