1
Fork 0
rust/compiler/rustc_macros/src
Matthias Krüger 45d5773704
Rollup merge of #121085 - davidtwco:always-eager-diagnostics, r=nnethercote
errors: only eagerly translate subdiagnostics

Subdiagnostics don't need to be lazily translated, they can always be eagerly translated. Eager translation is slightly more complex as we need to have a `DiagCtxt` available to perform the translation, which involves slightly more threading of that context.

This slight increase in complexity should enable later simplifications - like passing `DiagCtxt` into `AddToDiagnostic` and moving Fluent messages into the diagnostic structs rather than having them in separate files (working on that was what led to this change).

r? ```@nnethercote```
2024-02-17 18:47:40 +01:00
..
diagnostics errors: only eagerly translate subdiagnostics 2024-02-15 10:34:41 +00:00
symbols Fix symbols::tests::test_symbols 2023-10-26 02:02:22 -07:00
current_version.rs Simplify the current_rustc_version macro. 2023-11-10 10:54:21 +11:00
extension.rs Nits 2024-02-16 15:07:37 +00:00
hash_stable.rs remove redundant imports 2023-12-10 10:56:22 +08:00
lib.rs Move trait into attr so it's greppable 2024-02-16 15:07:37 +00:00
lift.rs remove redundant imports 2023-12-10 10:56:22 +08:00
query.rs Correctly explain ensure_forwards_result_if_red 2024-01-24 11:04:13 +00:00
serialize.rs u8 tags for smaller enums 2024-01-09 20:08:44 -05:00
symbols.rs Re-format code with new rustfmt 2023-11-15 21:45:48 -05:00
type_foldable.rs migrate rustc_macros to syn 2.0 2023-04-06 04:55:58 +00:00
type_visitable.rs migrate rustc_macros to syn 2.0 2023-04-06 04:55:58 +00:00