-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
#[non_exhaustive] variants are not detected to be redundant #65157
Copy link
Copy link
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-non_exhaustive`#![feature(non_exhaustive)]``#![feature(non_exhaustive)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.requires-nightlyThis issue requires a nightly compiler in some way. When possible, use a F-* label instead.This issue requires a nightly compiler in some way. When possible, use a F-* label instead.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-non_exhaustive`#![feature(non_exhaustive)]``#![feature(non_exhaustive)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.requires-nightlyThis issue requires a nightly compiler in some way. When possible, use a F-* label instead.This issue requires a nightly compiler in some way. When possible, use a F-* label instead.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Say I have the following enum in crate
b:And I match on it in crate
a:The second branch is not detected to be unreachable. This is on current nightly; playground link (hacky).