diff options
| author | bors <bors@rust-lang.org> | 2023-06-08 12:15:35 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-06-08 12:15:35 +0000 |
| commit | b7c330fc7834fde83a804ff85c39c8a11833c1cc (patch) | |
| tree | f876b29bc290f2ad70c26e0866926460f20209f5 /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.panic-unwind.diff | |
| parent | 60258b061d0e77f97bb40a377a53bb705178c0ba (diff) | |
| parent | 9ff34acf211c1b2aa7b4a282b2dd38927e137169 (diff) | |
| download | rust-b7c330fc7834fde83a804ff85c39c8a11833c1cc.tar.gz rust-b7c330fc7834fde83a804ff85c39c8a11833c1cc.zip | |
Auto merge of #10905 - y21:issue10684, r=Alexendoo
[`redundant_closure`]: special case inclusive ranges Fixes #10684. `x..=y` ranges need a bit of special handling in this lint because it desugars to a call to the lang item `RangeInclusiveNew`, where the callee span would be the same as the range expression itself, so the suggestion looked a bit weird. It now correctly suggests `RangeInclusive::new`. changelog: [`redundant_closure`]: special case `RangeInclusive`
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions
