Closed GuillaumeGomez closed 3 weeks ago
@bors r+
:pushpin: Commit 0999867ec5036b55825c3bb94f0820dde1e61e6a has been approved by Manishearth
It is now in the queue for this repository.
:hourglass: Testing commit 0999867ec5036b55825c3bb94f0820dde1e61e6a with merge 2795a6018944a5918b7d276267165484f5d62d6a...
:sunny: Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test Approved by: Manishearth Pushing 2795a6018944a5918b7d276267165484f5d62d6a to master...
Fixes https://github.com/rust-lang/rust-clippy/issues/12589. Fixes https://github.com/rust-lang/rust-clippy/issues/9591.
The first commit fixes a bug I uncovered while working on this: sometimes, the mutable borrow "event" happens before the alias one, which makes some argument detected as not used mutably even if they are. The fix was simply to fill the map with the aliases afterwards.
The second commit removes the restriction to not run
self
argument for theneedless_pass_by_ref_mut
lint.changelog: emit the
needless_pass_by_ref_mut
lint onself
arguments as wellr? @Manishearth