about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-08-11 10:58:13 +0000
committerbors <bors@rust-lang.org>2023-08-11 10:58:13 +0000
commit1e8fdf492808a25d78a97e1242b835ace9924e4d (patch)
treec6c1a0fe00d63070f911e4420addbbf72beff1e7 /compiler/rustc_interface/src
parent8703661a9a06e32e90a4622c1fb1305ebe50088c (diff)
parenta5f62bdfcdf826c1b03603e9a5bc3a052db853c2 (diff)
downloadrust-1e8fdf492808a25d78a97e1242b835ace9924e4d.tar.gz
rust-1e8fdf492808a25d78a97e1242b835ace9924e4d.zip
Auto merge of #11320 - max-niederman:redundant_locals_shadow_mutated, r=Alexendoo
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
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions