about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorIcxolu <10486322+Icxolu@users.noreply.github.com>2023-05-13 11:47:05 +0200
committerIcxolu <10486322+Icxolu@users.noreply.github.com>2023-05-14 18:47:16 +0200
commit84f89f30ebda5485badac09b34d666fbab243a19 (patch)
treede28530d5ba7dc2a33bed8f6b0ace580a21c2155 /compiler/rustc_codegen_llvm/src
parenta167973e8171bce22ded246283faaf80b729382d (diff)
downloadrust-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