rust/compiler/rustc_macros/src
David Wood 9956d4f99d 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>
2022-04-05 07:01:02 +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 Convert newtype_index to a proc macro 2022-02-24 16:02:06 -05: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 Delete Decoder::read_enum_variant 2022-02-20 18:58:23 -05:00
session_diagnostic.rs macros: add args for non-subdiagnostic fields 2022-04-05 07:01:02 +01: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