rust/compiler/rustc_serialize/src
David Wood 7f91697b50 errors: implement fallback diagnostic translation
This commit updates the signatures of all diagnostic functions to accept
types that can be converted into a `DiagnosticMessage`. This enables
existing diagnostic calls to continue to work as before and Fluent
identifiers to be provided. The `SessionDiagnostic` derive just
generates normal diagnostic calls, so these APIs had to be modified to
accept Fluent identifiers.

In addition, loading of the "fallback" Fluent bundle, which contains the
built-in English messages, has been implemented.

Each diagnostic now has "arguments" which correspond to variables in the
Fluent messages (necessary to render a Fluent message) but no API for
adding arguments has been added yet. Therefore, diagnostics (that do not
require interpolation) can be converted to use Fluent identifiers and
will be output as before.
2022-04-05 07:01:02 +01:00
..
json
collection_impls.rs Delete Decoder::read_map 2022-02-20 18:58:23 -05:00
json.rs Replace every Vec in Target(Options) with it's Cow equivalent 2022-04-03 21:29:57 +02:00
leb128.rs Unpeel the first iteration of the loop in impl_read_unsigned_leb128. 2022-01-07 13:36:26 +11:00
lib.rs Adopt let else in more places 2022-02-19 17:27:43 +01:00
opaque.rs Delete Decoder::read_unit 2022-02-22 18:14:51 -05:00
serialize.rs errors: implement fallback diagnostic translation 2022-04-05 07:01:02 +01:00