1
Fork 0
rust/compiler/rustc_codegen_ssa/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
..
back errors: implement fallback diagnostic translation 2022-04-05 07:01:02 +01:00
coverageinfo Remove in_band_lifetimes from rustc_codegen_ssa 2021-12-15 00:41:41 -05:00
debuginfo Auto merge of #95056 - Dylan-DPC:rollup-swtuw2n, r=Dylan-DPC 2022-03-18 00:35:19 +00:00
mir fix other source of box deref 2022-03-27 13:35:29 -07:00
traits make memcmp return a value of c_int_width instead of i32 2022-04-02 17:21:08 -07:00
base.rs use cfg attribute instead of macro 2022-03-28 08:37:32 +03:00
common.rs Adopt let else in more places 2022-02-19 17:27:43 +01:00
glue.rs Improve AdtDef interning. 2022-03-11 13:31:24 +11:00
lib.rs Address review comments and add a test 2022-04-02 17:26:39 +02:00
meth.rs debuginfo: Refactor debuginfo generation for types -- Rename DebugInfoMethods::create_vtable_metadata() to DebugInfoMethods::create_vtable_debuginfo() 2022-03-14 17:25:24 +01:00
mono_item.rs Make some rustc code conform to strict provenance. 2022-03-29 20:18:27 -04:00
target_features.rs Rollup merge of #91608 - workingjubilee:fold-neon-fp, r=nagisa,Amanieu 2022-03-23 03:05:28 +01:00