Skip to content

Remove diagnostic translation infrastructure #924

@davidtwco

Description

@davidtwco

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:

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 second or kickoff a team FCP with @rfcbot fcp $RESOLUTION.
  • 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.

Caution

Concerns (1 active)

Managed by @rustbot—see help for details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-compilerAdd this label so rfcbot knows to poll the compiler teamhas-concernsThere are active concernsmajor-changeA proposal to make a major change to rustc

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions