-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Replace some matches! with if let or ==
#149933
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
base: main
Are you sure you want to change the base?
Conversation
|
Some changes occurred to constck cc @fee1-dead Some changes occurred in compiler/rustc_attr_parsing Some changes occurred in exhaustiveness checking cc @Nadrieril
cc @Muscraft Some changes occurred to the CTFE / Miri interpreter cc @rust-lang/miri Some changes occurred to the CTFE machinery Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt Some changes occurred in check-cfg diagnostics cc @Urgau Some changes occurred in compiler/rustc_passes/src/check_attr.rs Some changes occurred in need_type_info.rs cc @lcnr Some changes occurred in compiler/rustc_ast/src/expand/autodiff_attrs.rs cc @ZuseZ4 |
|
r? @nnethercote rustbot has assigned @nnethercote. Use |
|
The job Click to see the possible cause of the failure (guessed by this bot) |
|
What is the reason for this change? What I like about So while I don't really mind any of these diffs, it also doesn't look like a clear improvement that's worth a sweeping change, and new "unnecessary" |
|
agreed, not sure this is necessarily better. |
|
I don't mind the change. I do think a PR touching 82 files deserves a description that explains the how and the why, though. What prompted this? Did you automate any of it? When did you use |
That's fair! I was touching something else and noticed a
I went through these manually because I wanted to get a sense for whether making a clippy or rustc lint for this would be useful. I see that clippy has almost the opposite, when a Regardless, the reason I created the PR was to gather feedback: is the style shown here what we'd want? I do think that if we have to keep |
No description provided.