1
Fork 0
rust/compiler/rustc_errors/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
..
json errors: implement sysroot/testing bundle loading 2022-04-05 07:01:02 +01:00
annotate_snippet_emitter_writer.rs errors: implement sysroot/testing bundle loading 2022-04-05 07:01:02 +01:00
diagnostic.rs macros: add args for non-subdiagnostic fields 2022-04-05 07:01:02 +01:00
diagnostic_builder.rs macros: add args for non-subdiagnostic fields 2022-04-05 07:01:02 +01:00
emitter.rs errors: implement sysroot/testing bundle loading 2022-04-05 07:01:02 +01:00
json.rs errors: implement sysroot/testing bundle loading 2022-04-05 07:01:02 +01:00
lib.rs macros: add args for non-subdiagnostic fields 2022-04-05 07:01:02 +01:00
lock.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
registry.rs Remove (lots of) dead code 2021-03-27 22:16:33 -04:00
snippet.rs Compute most of Public/Exported access level in rustc_resolve 2022-01-09 21:33:14 +00:00
styled_buffer.rs Spellchecking some comments 2022-03-30 01:39:38 -04:00