Skip to content

finish and clean up rustc_const_eval's translatable diagnostics. #113117

Open
@fee1-dead

Description

@fee1-dead
Member

For some context see this Zulip topic.

cc @RalfJung.

This issue has a few parts:

In #111677 I added a trait called ReportErrorExt which should be replaced by implementing IntoDiagnostic for newtypes. Another thing would be to investigate if the same can be done for MachineStopType which requires being made into a trait object.

this is an example of using fluent's pattern matching for different error messages. These should be eventually replaced by individual messages with their own identifiers instead of pattern matching.

I'll assign this to myself when I get time. Feel free to claim if this is unassigned.

Activity

added
C-cleanupCategory: PRs that clean code up or issues documenting cleanup.
E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.
A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)
A-translationArea: Translation infrastructure, and migrating existing diagnostics to SessionDiagnostic
on Jun 28, 2023
victor-timofei

victor-timofei commented on Jun 30, 2023

@victor-timofei

@rustbot claim
I would love to help with this

fee1-dead

fee1-dead commented on Jun 30, 2023

@fee1-dead
MemberAuthor

Hi @victor-timofei, thanks for claiming this! Feel free to open a thread on Zulip and ping me if you get stuck.

RalfJung

RalfJung commented on Aug 19, 2023

@RalfJung
Member

this is an example of using fluent's pattern matching for different error messages. These should be eventually replaced by individual messages with their own identifiers instead of pattern matching.

That link doesn't seem to work here. What are you referring to?

fee1-dead

fee1-dead commented on Aug 19, 2023

@fee1-dead
MemberAuthor

See this

CastilloDel

CastilloDel commented on Oct 24, 2024

@CastilloDel
Contributor

@rustbot claim

CastilloDel

CastilloDel commented on Oct 24, 2024

@CastilloDel
Contributor

@rustbot release-assignment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)A-translationArea: Translation infrastructure, and migrating existing diagnostics to SessionDiagnosticC-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @RalfJung@victor-timofei@fee1-dead@CastilloDel

      Issue actions

        finish and clean up `rustc_const_eval`'s translatable diagnostics. · Issue #113117 · rust-lang/rust