rust/compiler/rustc_query_system/src/query
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
..
caches.rs Avoid sharding query caches entirely in single-threaded mode 2022-02-20 14:57:34 -05:00
config.rs rename ErrorReported -> ErrorGuaranteed 2022-03-02 09:45:25 -06:00
job.rs rename ErrorReported -> ErrorGuaranteed 2022-03-02 09:45:25 -06:00
mod.rs Remove SimpleDefKind 2022-02-17 18:08:45 -05:00
plumbing.rs errors: implement fallback diagnostic translation 2022-04-05 07:01:02 +01:00
README.md mv compiler to compiler/ 2020-08-30 18:45:07 +03:00

For more information about how the query system works, see the rustc dev guide.