about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-05-19 12:26:43 +0000
committerbors <bors@rust-lang.org>2023-05-19 12:26:43 +0000
commit2a1dbbaec57440790eb6a457f628a0d295a6b80d (patch)
tree57b9faea02dbeece2e54a7440de0f7cd847b717c /compiler/rustc_codegen_llvm/src
parent1e8d2c59bcdf34ae19677cb10f0ce435224f324f (diff)
parent84f89f30ebda5485badac09b34d666fbab243a19 (diff)
downloadrust-2a1dbbaec57440790eb6a457f628a0d295a6b80d.tar.gz
rust-2a1dbbaec57440790eb6a457f628a0d295a6b80d.zip
Auto merge of #10777 - Icxolu:unnecessary_collect, r=xFrednet
Enhance `needless_collect`: lint in method/function arguments that take an `IntoIterator`

Updates `needless_collect` to also lint `collect` calls in method/function arguments that take an `IntoIterator` (for example `Extend::extend`). Every `Iterator` trivially implements `IntoIterator` and collecting it only causes an unnecessary allocation.

---

changelog: Enhancement: [`needless_collect`]: Now also detects function arguments, taking a generic `IntoIterator`
[#10777](https://github.com/rust-lang/rust-clippy/pull/10777)
<!-- changelog_checked -->

fixes #10762
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions