migrate rustc_query_system to use SessionDiagnostic
with manual impl SessionDiagnostic
This commit is contained in:
parent
12e4fd0755
commit
b8075e4550
6 changed files with 108 additions and 46 deletions
21
compiler/rustc_error_messages/locales/en-US/query_system.ftl
Normal file
21
compiler/rustc_error_messages/locales/en-US/query_system.ftl
Normal file
|
@ -0,0 +1,21 @@
|
|||
query_system_reentrant = internal compiler error: re-entrant incremental verify failure, suppressing message
|
||||
|
||||
query_system_increment_compilation = internal compiler error: encountered incremental compilation error with {$dep_node}
|
||||
.help = This is a known issue with the compiler. Run {$run_cmd} to allow your project to compile
|
||||
|
||||
query_system_increment_compilation_note1 = Please follow the instructions below to create a bug report with the provided information
|
||||
query_system_increment_compilation_note2 = See <https://github.com/rust-lang/rust/issues/84970> for more information
|
||||
|
||||
query_system_cycle = cycle detected when {$stack_bottom}
|
||||
|
||||
query_system_cycle_usage = cycle used when {$usage}
|
||||
|
||||
query_system_cycle_stack_single = ...which immediately requires {$stack_bottom} again
|
||||
|
||||
query_system_cycle_stack_multiple = ...which again requires {$stack_bottom}, completing the cycle
|
||||
|
||||
query_system_cycle_recursive_ty_alias = type aliases cannot be recursive
|
||||
query_system_cycle_recursive_ty_alias_help1 = consider using a struct, enum, or union instead to break the cycle
|
||||
query_system_cycle_recursive_ty_alias_help2 = see <https://doc.rust-lang.org/reference/types.html#recursive-types> for more information
|
||||
|
||||
query_system_cycle_recursive_trait_alias = trait aliases cannot be recursive
|
|
@ -52,6 +52,7 @@ fluent_messages! {
|
|||
ty_utils => "../locales/en-US/ty_utils.ftl",
|
||||
typeck => "../locales/en-US/typeck.ftl",
|
||||
mir_dataflow => "../locales/en-US/mir_dataflow.ftl",
|
||||
query_system => "../locales/en-US/query_system.ftl",
|
||||
}
|
||||
|
||||
pub use fluent_generated::{self as fluent, DEFAULT_LOCALE_RESOURCES};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue