about summary refs log tree commit diff
path: root/src/test/mir-opt/lower_array_len.array_len.SimplifyLocals.diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-04-30 15:08:27 +0000
committerbors <bors@rust-lang.org>2021-04-30 15:08:27 +0000
commita300b0e66ce819833c4de4439ea3044a4c89eda3 (patch)
treeb2d1f7727897bb8bd95d8716ce053ac6ac4a8425 /src/test/mir-opt/lower_array_len.array_len.SimplifyLocals.diff
parent5e49c4bd67d69131265cb414a29d5489a9eb35a1 (diff)
parent63425de77db7f4dee55cfceeed7e174bfe986b0d (diff)
downloadrust-a300b0e66ce819833c4de4439ea3044a4c89eda3.tar.gz
rust-a300b0e66ce819833c4de4439ea3044a4c89eda3.zip
Auto merge of #7144 - rust-lang:while_immutable_mut_cond, r=flip1995
while_immutable_cond: check condition for mutation

This fixes #6689 by also checking the bindings mutated in the condition, whereas it was previously only checked in the loop body.

---

changelog: Fix FP in [`while_immutable_cond`] where mutation in the loop variable wasn't picked up.
Diffstat (limited to 'src/test/mir-opt/lower_array_len.array_len.SimplifyLocals.diff')
0 files changed, 0 insertions, 0 deletions