about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-06-03 15:57:36 +0000
committerbors <bors@rust-lang.org>2023-06-03 15:57:36 +0000
commit8a30f2f71a72f6e842452427bcc19947d614d889 (patch)
tree88e98a6254e36a429db7db64f016df06460b2fa1 /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff
parent2490de476af0ba5a95170cdc63167cb626cbf68a (diff)
parentd816eba09d4ca01ae6a3576de6db3ee415214d03 (diff)
downloadrust-8a30f2f71a72f6e842452427bcc19947d614d889.tar.gz
rust-8a30f2f71a72f6e842452427bcc19947d614d889.zip
Auto merge of #10814 - y21:issue10743, r=llogiq
new lint: `explicit_into_iter_fn_arg`

Closes #10743.
This adds a lint that looks for `.into_iter()` calls in a call expression to a function that already expects an `IntoIterator`. In those cases, explicitly calling `.into_iter()` is unnecessary.
There were a few instances of this in clippy itself so I fixed those as well in this PR.

changelog: new lint [`explicit_into_iter_fn_arg`]
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions