about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-06-16 04:53:35 +0000
committerbors <bors@rust-lang.org>2023-06-16 04:53:35 +0000
commitee67c79598468634514262b6a6a3f02fca4a7b10 (patch)
treed65729a4eacbdc88decea73d2c5536eec6045f4d /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentcda13a8b26d2d739fe6a4541f5773c8f2f1b3a42 (diff)
parent5821fbbc3072c16bc941a5e207bfd3a5e401304b (diff)
downloadrust-ee67c79598468634514262b6a6a3f02fca4a7b10.tar.gz
rust-ee67c79598468634514262b6a6a3f02fca4a7b10.zip
Auto merge of #10835 - y21:drain-collect, r=dswij
new lint: `drain_collect`

Closes #10818.

This adds a new lint that looks for `.drain(..).collect()` and suggests replacing it with `mem::take`.

changelog: [`drain_collect`]: new lint
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions