-
Notifications
You must be signed in to change notification settings - Fork 72
Description
Proposal
Since its initial implementation, the diagnostic translation effort (rust-lang/rust#100717) has stalled. Translatable diagnostic structs are partially used throughout the compiler but there are no translations for any of the diagnostics and it is unclear how translatable the messages ported to Fluent will be in practice (i.e. depending on how interpolation is used, it might not be possible to write a translated version of the diagnostic). Unfortunately, this infrastructure has significantly reduced the ergonomics of working on the compiler and there is no clear path forward to resolving those issues.
If we can find a way to do diagnostic translation in future, then we should definitely consider it, and this MCP should not be taken as an argument against any future efforts in this area. However, the current infrastructure has significant downsides and nobody willing to push it forward and make improvements, so it should be removed.
See previously:
- #i18n > #100717 diag translation @ 💬
- Const-eval
InterpError: error enum variants vsthrow_ub_custom!rust#112618 - We have quite different APIs for emitting a lint vs a hard error rust#121077
Mentors or Reviewers
If you have a reviewer or mentor in mind for this work, mention them here. You can put your own name here if you are planning to mentor the work.
Process
The main points of the Major Change Process are as follows:
- File an issue describing the proposal.
- A compiler team member who is knowledgeable in the area can second by writing
@rustbot secondor kickoff a team FCP with@rfcbot fcp $RESOLUTION.- Refer to Proposals, Approvals and Stabilization docs for when a second is sufficient, or when a full team FCP is required.
- Once an MCP is seconded, the Final Comment Period begins.
- Final Comment Period lasts for 10 days after all outstanding concerns are solved.
- Outstanding concerns will block the Final Comment Period from finishing. Once all concerns are resolved, the 10 day countdown is restarted.
- If no concerns are raised after 10 days since the resolution of the last outstanding concern, the MCP is considered approved.
You can read more about Major Change Proposals on forge.