-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
[beta][clippy] backport multiple FP fixes for a warn-by-default lint #77403
Conversation
It emits a lint when the pushed item is a literal, a constant and an immutable binding that are initialized with those.
Add tests in which the variable is initialized with a match expression and function call
|
@bors r+ p=10 rollup=never |
📌 Commit 4a91098 has been approved by |
⌛ Testing commit 4a91098 with merge 06bcf4d722aaf93e0d95b05e54fa4e0ff2466b23... |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
Spurious failure. @bors retry |
⌛ Testing commit 4a91098 with merge 03de2742e0f7e4d5628e1367f7551f487ab07ce7... |
💔 Test failed - checks-actions |
Again the same error? 🤔
|
@bors retry |
☀️ Test successful - checks-actions, checks-azure |
This backports the PR rust-lang/rust-clippy#6016 fixing multiple FPs:
rust-lang/rust-clippy#5902
rust-lang/rust-clippy#5979
rust-lang/rust-clippy#5985
We didn't have any complaints about this lint, since me merged this PR.
cc @ebroto (sorry I forgot about this, since we talked about the backport 3 weeks ago 😐)
r? @pietroalbini