Skip to content

E0412 and E0425 are redundant #148558

Closed

Description

@theemathas

The error codes E0412 and E0425 are redundant. They basically mean the same thing to users. They should probably be merged into one error code.

Meta

Issue observed in rust 1.90.0.

Activity

  1. added
    A-diagnosticsArea: Messages for errors, warnings, and lints
    C-bugCategory: This is a bug.
    on Nov 6, 2025
  2. added
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    on Nov 6, 2025
  3. added
    C-cleanupCategory: PRs that clean code up or issues documenting cleanup.
    on Nov 6, 2025
  4. added
    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
    E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
    on Nov 6, 2025
  5. jieyouxu commented on Nov 6, 2025

    @jieyouxu
    Member

    N.B. when removing one of them, please double-check if there are doctests that expect the removed error code, and also if the Reference expects one of these error codes.

  6. PoulavBhowmick03 commented on Nov 6, 2025

    @PoulavBhowmick03

    hey @jieyouxu can i take this up?

  7. rishabhjain1712 commented on Nov 7, 2025

    @rishabhjain1712

    @rishabhjain1712 take a look

  8. added a commit that references this issue on Nov 9, 2025
    91c302c
  9. added a commit that references this issue on Dec 2, 2025
  10. added a commit that references this issue on Dec 3, 2025
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-diagnosticsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions