Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support min_exhaustive_patterns #17851

Closed
Veykril opened this issue Aug 10, 2024 · 0 comments · Fixed by #17853
Closed

Support min_exhaustive_patterns #17851

Veykril opened this issue Aug 10, 2024 · 0 comments · Fixed by #17853
Labels
A-pattern pattern handling related things Broken Window Bugs / technical debt to be addressed immediately C-feature Category: feature request

Comments

@Veykril
Copy link
Member

Veykril commented Aug 10, 2024

rust-lang/rust#119612 has been stabilized but we throw exhaustiveness errors for those examples

let x: Result<i32, !>;
match x {
    Ok(y) => (),
}
let Ok(y) = x;
@Veykril Veykril added Broken Window Bugs / technical debt to be addressed immediately C-feature Category: feature request A-pattern pattern handling related things labels Aug 10, 2024
@bors bors closed this as completed in e25abba Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-pattern pattern handling related things Broken Window Bugs / technical debt to be addressed immediately C-feature Category: feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant