redundant_locals: fix FPs on mutated shadows
When a mutable binding is shadowed by a mutable binding of the same name in a different scope, mutations in that scope have different meaning. This commit fixes spurious `redundant_locals` emissions on such locals.
Showing
想要评论请 注册 或 登录