-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
bump clippy crates to edition 2021 #7664
Conversation
r? @xFrednet (rust-highfive has picked a reviewer for you, use r? to override) |
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.
r? @flip1995 |
Is there already a If not, r=me. |
There is
|
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.
Nice, let's also keep the rust_2021_compatibility
👍
clippy_utils/src/lib.rs
Outdated
v.allow_closure.then(|| { | ||
let _ = &v; | ||
v.captures | ||
}) |
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.
We don't really care about fully capturing v
, do we?
I think |
From the rustc book:
A rust-2021-idioms lint group does not exist yet. So I guess we don't want to enable the compatibility group. But good to know, that only one of our closures "fails" this. |
bd7fe40
to
d888b4b
Compare
removed the |
@bors r+ Thanks! |
📌 Commit d888b4b has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Also helps with dogfooding edition 2021 a bit. :)
Tests passed locally.
changelog: bump edition from 2018 to 2021