Non exhaustive reachable patterns lint #445
Labels
major-change
A proposal to make a major change to rustc
T-compiler
Add this label so rfcbot knows to poll the compiler team
Proposal
Add a new lint that checks for missing patterns in matches and destructuring assignment of
non_exhaustive
enums and structs.This was suggested in the original
non_exhaustive
PR rust-lang/rust#45394 and there is an open issue rust-lang/rust#84332 for this lint as well as a very early PR rust-lang/rust#86809.If the attribute is put on the wildcard pattern there is this issue with
..
rust-lang/rust#81282.Example
Mentors or Reviewers
@davidtwco who is a reviewer on the lint PR and implemented
non_exhaustive
.Process
The main points of the Major Change Process are as follows:
@rustbot second
.-C flag
, then full team check-off is required.@rfcbot fcp merge
on either the MCP or the PR.You can read more about Major Change Proposals on forge.
Comments
This issue is not meant to be used for technical discussion. There is a Zulip stream for that. Use this issue to leave procedural comments, such as volunteering to review, indicating that you second the proposal (or third, etc), or raising a concern that you would like to be addressed.
The text was updated successfully, but these errors were encountered: