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>2021-01-04 20:42:18 +0000
committerbors <bors@rust-lang.org>2021-01-04 20:42:18 +0000
commit976850b69b6a76930c59c3a5a228b623abe9210b (patch)
tree351bcf94fb2aadd5fcb581c6c1f4378c74a97bb7 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent445eb99f55a7fceaae60dc484d49484fa19f4f55 (diff)
parent7b5f54954aa18991edd6e22edfd9af6bc9bae24b (diff)
downloadrust-976850b69b6a76930c59c3a5a228b623abe9210b.tar.gz
rust-976850b69b6a76930c59c3a5a228b623abe9210b.zip
Auto merge of #6538 - Jarcho:vec_init_then_push, r=llogiq
New lint: vec_init_then_push

fixes: #1483

This will trigger on `new`, `default`, and `with_capacity` when the given capacity is less than or equal to the number of push calls. Is there anything else this should trigger on?

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