Open
Description
This tracks the exhaustive_patterns
feature which allows uninhabited variant to be omitted
(bug report: #12609; relevant RFC: rust-lang/rfcs#1872).
fn safe_unwrap<T>(x: Result<T, !>) -> T {
match x {
Ok(y) => y,
}
}
- Implementation (separated out from
never_type
in Stabilise feature(never_type). Introduce feature(exhaustive_patterns) #47630) - blocking issue: Incorrect "unreachable match arm" warning #117119
- Stabilization
Metadata
Metadata
Assignees
Labels
Relating to exhaustiveness / usefulness checking of patternsRelating to patterns and pattern matchingBlocker: Implemented in the nightly compiler and unstable.Category: An issue tracking the progress of sth. like the implementation of an RFC`#![feature(exhaustive_patterns)]`Status: It's hard to tell what's been done and what hasn't! Someone should do some investigation.Relevant to the language team, which will review and decide on the PR/issue.