• B
    Auto merge of #11320 - max-niederman:redundant_locals_shadow_mutated, r=Alexendoo · 1e8fdf49
    bors 提交于
    redundant_locals: fix FPs on mutated shadows
    
    Fixes #11290.
    
    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 PR fixes spurious `redundant_locals` emissions on such locals.
    
    cc `@Centri3,` `@flip1995`
    
    changelog: [`redundant_locals`]: fix false positives on mutated shadows
    1e8fdf49
redundant_locals.rs 4.6 KB