diff options
| author | David Wood <david.wood@huawei.com> | 2024-02-14 14:17:27 +0000 |
|---|---|---|
| committer | David Wood <david.wood@huawei.com> | 2024-02-15 10:34:41 +0000 |
| commit | aba5f546de28a10f6c374c90200f6142d47a8e38 (patch) | |
| tree | b31cf00a80668315ba77de310157045450428bfd /tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs | |
| parent | 16250ea7ba73f858a6ee08374848fbea615ea6c3 (diff) | |
| download | rust-aba5f546de28a10f6c374c90200f6142d47a8e38.tar.gz rust-aba5f546de28a10f6c374c90200f6142d47a8e38.zip | |
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). Signed-off-by: David Wood <david@davidtw.co>
Diffstat (limited to 'tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs')
0 files changed, 0 insertions, 0 deletions
