about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff
diff options
context:
space:
mode:
authorMichael Wright <mikerite@lavabit.com>2019-02-11 07:03:12 +0200
committerMichael Wright <mikerite@lavabit.com>2019-02-11 07:03:12 +0200
commit217965e85527f1caf99e86153f11f676f778a360 (patch)
tree2d8134d16c181855ac8cbf08af1732cd32c83e41 /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff
parentbd23cb89ec0ea63403a17d3fc5e50c88e38dd54f (diff)
downloadrust-217965e85527f1caf99e86153f11f676f778a360.tar.gz
rust-217965e85527f1caf99e86153f11f676f778a360.zip
Fix `needless_range_loop` bad suggestion
Detect if the index variable is used inside a closure.

Fixes #2542
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions