rust/compiler/rustc_macros/src
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
..
diagnostics errors: simplify referring to fluent attributes 2022-05-30 13:38:19 +01:00
symbols Use iter::zip in compiler/ 2021-03-26 09:32:31 -07:00
hash_stable.rs more clippy fixes 2021-11-07 16:59:05 +01:00
lib.rs macros: introduce fluent_messages macro 2022-05-24 16:48:17 +01:00
lift.rs Lift: take self by value 2020-10-21 23:59:35 +02:00
newtype.rs add #[rustc_pass_by_value] to more types 2022-03-08 15:39:52 +01:00
query.rs Move ty::print methods to Drop-based scope guards 2022-02-16 17:24:23 -05:00
serialize.rs Make TyCtxt implement Interner, make HashStable generic and move to rustc_type_ir 2022-05-28 12:16:05 -07:00
symbols.rs Use a separate interner type for UniqueTypeId 2021-09-13 14:42:06 +02:00
type_foldable.rs Remove in_band_lifetimes from rustc_middle 2021-12-15 19:50:43 -05:00