-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Mark let_underscore_lock
and let_underscore_drop
as uplifted
#9697
Conversation
122a332
to
822f882
Compare
Should we limit the |
822f882
to
5dba80b
Compare
5dba80b
to
9306540
Compare
Yeah I think that's a good plan |
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.
Thanks!
@bors r+ |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
1 similar comment
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Since yesterday, clippy seems unhappy with two `prss` tests with no obvious reason why. ``` error: non-binding `let` on a type that implements `Drop` --> src/protocol/prss.rs:571:9 | 571 | let _ = p1.sequential(&step); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D clippy::let-underscore-drop` implied by `-D clippy::pedantic` = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_drop ``` It either sees what I don't see, but I wasn't able to find `Drop` implementation for that type. I also wasn't able to reproduce it locally neither on MacOS nor Linux, despite the fact that I am using the same cargo version as our GH action ``` ~/workspace/raw-ipa% ~/.cargo/bin/cargo -V cargo 1.64.0 (387270bc7 2022-09-16) ``` I wish I could learn clippy version as well, but reading the output did not reveal it. There was a recent change in Clippy code that touched that lint: rust-lang/rust-clippy#9697 but I can't see how it could trigger this behaviour. To unblock us, lets appease Clippy for now
Here I've renamed both the uplifted lints, however rustc's
let_underscore_lock
is slightly less capable than the clippy lint as it doesn't catchparking_lot
types orResult<Guard, ..>
, should we still remove it? TheResult
change looks like it was unintentional to me so that could probably be fixed upstreamchangelog: Uplift [
let_underscore_drop
] to rustc rust-lang/rust#97739changelog: Remove overlap between rustc's
let_underscore_lock
and Clippy's [let_underscore_lock
]Closes #8003
Closes #9314
r? @flip1995