-
Notifications
You must be signed in to change notification settings - Fork 13k
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
non_exhaustive_omitted_patterns should not warn matches! macro #117304
Comments
This feels like something that could be easily solved by just adding an |
I attempted to add the
@rustbot label -E-easy |
…stmt-expr-attributes, r=petrochenkov Make `#![allow_internal_unstable(..)]` work with `stmt_expr_attributes` This is a necessary first step to fixing rust-lang#117304, as explained in rust-lang#117304 (comment). `@rustbot` label T-compiler
Rollup merge of rust-lang#117420 - Jules-Bertholet:internal-unstable-stmt-expr-attributes, r=petrochenkov Make `#![allow_internal_unstable(..)]` work with `stmt_expr_attributes` This is a necessary first step to fixing rust-lang#117304, as explained in rust-lang#117304 (comment). `@rustbot` label T-compiler
…-attributes, r=petrochenkov Make `#![allow_internal_unstable(..)]` work with `stmt_expr_attributes` This is a necessary first step to fixing #117304, as explained in rust-lang/rust#117304 (comment). `@rustbot` label T-compiler
…-attributes, r=petrochenkov Make `#![allow_internal_unstable(..)]` work with `stmt_expr_attributes` This is a necessary first step to fixing #117304, as explained in rust-lang/rust#117304 (comment). `@rustbot` label T-compiler
…-attributes, r=petrochenkov Make `#![allow_internal_unstable(..)]` work with `stmt_expr_attributes` This is a necessary first step to fixing #117304, as explained in rust-lang/rust#117304 (comment). `@rustbot` label T-compiler
Sounds like stabilizing the lint would solve this issue. It's a weird lint though, I wouldn't want to stabilize it as-is, I'd prefer something more principled like this. |
6 and 7 from my original comment were resolved by #117420, so someone could presumably pick this up again… |
I tried this code:
I expected to see this happen: no warning
Instead, this happened:
playground
Meta
rustc --version --verbose
:@rustbot label +F-non_exhaustive_omitted_patterns_lint
The text was updated successfully, but these errors were encountered: