Reasons for feature removals are not translatable #123920
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-translation
Area: Translation infrastructure, and migrating existing diagnostics to SessionDiagnostic
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
The note ("replaced with
#[rustc_box]
") should be translatable, rather than hard-coded incompiler/rustc_feature/src/removed.rs
.Rationale and extra context
The
reason
field inRemovedFeature
cannot simply be replaced with aDiagMessage
becauserustc_features
cannot depend onrustc_errors
(cyclic dependency). I don't know how to solve this.Other cases
No response
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: