diff options
| author | Dorian Scheidt <dorian.scheidt@gmail.com> | 2022-07-17 16:45:10 -0500 |
|---|---|---|
| committer | Dorian Scheidt <dorian.scheidt@gmail.com> | 2022-07-18 16:44:04 -0500 |
| commit | ffb6b23c75add6192a133b15be946cc2199ed971 (patch) | |
| tree | d9ca6baaca374f5262627213a7dffe013e5fe22f /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.diff | |
| parent | dc05192e1106668912dab2800215e39f0aa4b98f (diff) | |
| download | rust-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.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions
