]> git.lizzy.rs Git - rust.git/commit
errors: `DiagnosticMessage::Eager`
authorDavid Wood <david.wood@huawei.com>
Mon, 3 Oct 2022 13:14:51 +0000 (14:14 +0100)
committerDavid Wood <david.wood@huawei.com>
Mon, 10 Oct 2022 13:20:16 +0000 (14:20 +0100)
commit540b203bf9fe05e572f1baa938317d4c10df3528
treee392b42d3f75127fcb34a138b4b0e30f45f90953
parentb4ac26289f17a5779d4318fb63436d94aebbf5ea
errors: `DiagnosticMessage::Eager`

Add variant of `DiagnosticMessage` for eagerly translated messages
(messages in the target language which don't need translated by the
emitter during emission). Also adds `eager_subdiagnostic` function which
is intended to be invoked by the diagnostic derive for subdiagnostic
fields which are marked as needing eager translation.

Signed-off-by: David Wood <david.wood@huawei.com>
compiler/rustc_error_messages/src/lib.rs
compiler/rustc_errors/src/diagnostic.rs
compiler/rustc_errors/src/lib.rs
compiler/rustc_errors/src/translation.rs