Skip to content

E0004 needs to be updated to new format #35191

Description

@sophiajt

From: src/test/compile-fail/E0004.rs

E0004 needs a span_label, taking it from:

error[E0004]: non-exhaustive patterns: `HastaLaVistaBaby` not covered
  --> src/test/compile-fail/E0004.rs:19:5
   |
19 |     match x { //~ ERROR E0004
   |     ^

to:

error[E0004]: non-exhaustive patterns: `HastaLaVistaBaby` not covered
  --> src/test/compile-fail/E0004.rs:19:5
   |
19 |     match x { //~ ERROR E0004
   |     ^ pattern `HastaLaVistaBaby` not covered

Bonus: We may want to update the span that this error uses as well to point at something other than the beginning of the match.

Activity

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 lintsE-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.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions