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:
authorDorian Scheidt <dorian.scheidt@gmail.com>2022-07-17 16:45:10 -0500
committerDorian Scheidt <dorian.scheidt@gmail.com>2022-07-18 16:44:04 -0500
commitffb6b23c75add6192a133b15be946cc2199ed971 (patch)
treed9ca6baaca374f5262627213a7dffe013e5fe22f /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff
parentdc05192e1106668912dab2800215e39f0aa4b98f (diff)
downloadrust-ffb6b23c75add6192a133b15be946cc2199ed971.tar.gz
rust-ffb6b23c75add6192a133b15be946cc2199ed971.zip
fix: Prevent panic in Remove Unused Parameter assist
Instead of calling `builder.delete` for every text range we find with
`process_usage`, we now ensure that the ranges do not overlap before removing
them. If a range is fully contained by a prior one, it is dropped.

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