diff options
| author | Icxolu <10486322+Icxolu@users.noreply.github.com> | 2023-05-13 11:47:05 +0200 |
|---|---|---|
| committer | Icxolu <10486322+Icxolu@users.noreply.github.com> | 2023-05-14 18:47:16 +0200 |
| commit | 84f89f30ebda5485badac09b34d666fbab243a19 (patch) | |
| tree | de28530d5ba7dc2a33bed8f6b0ace580a21c2155 /compiler/rustc_codegen_llvm/src | |
| parent | a167973e8171bce22ded246283faaf80b729382d (diff) | |
| download | rust-84f89f30ebda5485badac09b34d666fbab243a19.tar.gz rust-84f89f30ebda5485badac09b34d666fbab243a19.zip | |
enhance `needless_collect`
Updates `needless_collect` to lint for collecting into a method or function argument thats taking an `IntoIterator` (for example `extend`). Every `Iterator` trivially implements `IntoIterator` and colleting it only causes an unnecessary allocation.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
