rust/tests
bors f7189846be Auto merge of #8953 - DevAccentor:slow_vector_initialization, r=Manishearth
add vec.capacity() to [`slow_vec_initialization`] detection

fix #8800

for example
```rust
let mut vec1 = Vec::with_capacity(len);
vec1.resize(vec1.capacity(), 0);

let mut vec2 = Vec::with_capacity(len);
vec2.extend(repeat(0).take(vec2.capacity()));
```
will trigger the lint

---

changelog: add `vec.capacity()` to [`slow_vec_initialization`] detection
2022-06-23 22:29:52 +00:00
..
test_utils
ui Auto merge of #8953 - DevAccentor:slow_vector_initialization, r=Manishearth 2022-06-23 22:29:52 +00:00
ui-cargo Merge 'rust-clippy/master' into clippyup 2022-05-21 13:24:00 +02:00
ui-internal confirm using chain in collapsible_span_lint_calls 2022-06-20 13:17:54 +09:00
ui-toml Remove error-pattern comments 2022-06-14 16:28:34 +00:00
workspace_test
check-fmt.rs
clippy.toml
compile-test.rs Remove unnecessary clap_derive dependency added in 9ee211af 2022-06-04 14:04:35 +02:00
dogfood.rs Add lint output to lint list 2022-06-06 20:04:56 -04:00
integration.rs
lint_message_convention.rs Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup 2022-05-05 15:12:52 +01:00
missing-test-files.rs
versioncheck.rs
workspace.rs