Fix `match_single_binding` wrongly handles scope
Closes rust-lang/rust-clippy#15018
Continuation of rust-lang/rust-clippy#15017
changelog: [match_single_binding] fix wrong handling of scope
r? @dswij
rustbot has assigned @dswij. They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.
Use r? to explicitly pick a reviewer
r? samueltardieu
I will try also include fixes for #15162
Reverting unsollicited reassignment r? dswij
This doesn't seem to fix #15269 which is of the same category. Could you have a look @profetia?
@samueltardieu #15269 is fixed in this PR now
Updated. Thank you!
Any feedback? @dswij
Sorry, was buried with things to do past two weeks. Thanks for the ping! :)