Skip to content

E0002 needs to be updated to new format #35495

Closed
@sophiajt

Description

@sophiajt

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

Errror E0002 needs a label and help moved to a simple help, updating it from:

error[E0002]: non-exhaustive patterns: type std::option::Option<i32> is non-empty
  --> src/test/compile-fail/E0002.rs:14:5
   |
14 |     match x { } //~ ERROR E0002
   |     ^^^^^^^^^^^
   |
help: Please ensure that all possible cases are being handled; possibly adding wildcards or more match arms.
  --> src/test/compile-fail/E0002.rs:14:5
   |
14 |     match x { } //~ ERROR E0002
   |     ^^^^^^^^^^^

To:

error[E0002]: non-exhaustive patterns: type std::option::Option<i32> is non-empty
  --> src/test/compile-fail/E0002.rs:14:5
   |
14 |     match x { } //~ ERROR E0002
   |     ^^^^^^^^^^^ not all cases are handled
   |
   = note: this may be fixed by possibly adding wildcards or more match arms.

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