about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.panic-unwind.diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-06-08 12:15:35 +0000
committerbors <bors@rust-lang.org>2023-06-08 12:15:35 +0000
commitb7c330fc7834fde83a804ff85c39c8a11833c1cc (patch)
treef876b29bc290f2ad70c26e0866926460f20209f5 /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.panic-unwind.diff
parent60258b061d0e77f97bb40a377a53bb705178c0ba (diff)
parent9ff34acf211c1b2aa7b4a282b2dd38927e137169 (diff)
downloadrust-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