1
Fork 0
rust/compiler/rustc_trait_selection/src/traits
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
..
error_reporting errors: implement fallback diagnostic translation 2022-04-05 07:01:02 +01:00
query Spellchecking compiler comments 2022-03-30 15:14:15 -04:00
select Auto merge of #95031 - compiler-errors:param-env-cache, r=Aaron1011 2022-04-04 04:48:36 +00:00
specialize Implement impl_subject_and_oblig instead of repeating the impls 2022-03-24 18:41:30 -03:00
auto_trait.rs Rollup merge of #94869 - jackh726:gats_extended, r=compiler-errors 2022-03-31 00:26:29 +02:00
chalk_fulfill.rs Address review comment 2022-02-12 13:39:52 +00:00
codegen.rs Rollup merge of #95497 - nyurik:compiler-spell-comments, r=compiler-errors 2022-03-31 04:57:28 +02:00
coherence.rs Spellchecking compiler comments 2022-03-30 15:14:15 -04:00
const_evaluatable.rs Spellchecking compiler comments 2022-03-30 15:14:15 -04:00
engine.rs
fulfill.rs Rollup merge of #95497 - nyurik:compiler-spell-comments, r=compiler-errors 2022-03-31 04:57:28 +02:00
misc.rs better errors when a Copy impl is not coherent 2022-03-22 18:15:29 -07:00
mod.rs Spellchecking compiler comments 2022-03-30 15:14:15 -04:00
object_safety.rs errors: implement fallback diagnostic translation 2022-04-05 07:01:02 +01:00
on_unimplemented.rs rustc_error: make ErrorReported impossible to construct 2022-03-16 10:35:24 -05:00
project.rs Rollup merge of #95497 - nyurik:compiler-spell-comments, r=compiler-errors 2022-03-31 04:57:28 +02:00
relationships.rs Spellchecking compiler comments 2022-03-30 15:14:15 -04:00
structural_match.rs Improve AdtDef interning. 2022-03-11 13:31:24 +11:00
util.rs Implement impl_subject_and_oblig instead of repeating the impls 2022-03-24 18:41:30 -03:00
wf.rs Remove opaque type obligation and just register opaque types as they are encountered. 2022-03-28 16:57:45 +00:00