-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
clippy::complexity fixes #89943
clippy::complexity fixes #89943
Conversation
Some changes occured to the CTFE / Miri engine cc @rust-lang/miri |
r? @wesleywiser (rust-highfive has picked a reviewer for you, use r? to override) |
r? @oli-obk |
compiler/rustc_expand/src/config.rs
Outdated
@@ -171,7 +171,7 @@ fn get_features( | |||
} | |||
|
|||
if let Some(allowed) = sess.opts.debugging_opts.allow_features.as_ref() { | |||
if allowed.iter().find(|&f| name.as_str() == *f).is_none() { | |||
if !allowed.iter().any(|f| name.as_str() == *f) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer to move the negation into the closure and use all
. Reads more naturally to me
7f18495
to
c645d3f
Compare
@bors r+ rollup |
📌 Commit c645d3f has been approved by |
clippy::complexity fixes
Rollup of 7 pull requests Successful merges: - rust-lang#89507 (Add `#[repr(i8)]` to `Ordering`) - rust-lang#89849 (CI: Selecting the Xcode version no longer needed with the macos-11 runners.) - rust-lang#89886 (Update the wasi-libc built with the wasm32-wasi target) - rust-lang#89907 (Remove FIXME since there is nothing to be fixed) - rust-lang#89943 (clippy::complexity fixes) - rust-lang#89953 (Make Option::as_mut const) - rust-lang#89958 (Correct small typo) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
No description provided.