rust-clippy/tests
bors 4932d05733 Auto merge of #11373 - Red-Rapious:master, r=blyxyas,y21
Added new lint: `reserve_after_initialization`

Closes https://github.com/rust-lang/rust-clippy/issues/11330.

A new lint that informs the user about a more concise way to create a vector with a known capacity.
Example:
```rust
let mut v: Vec<usize> = vec![];
v.reserve(10);
```

Produces the following help:
```rust
  |
2 | /     let mut v: Vec<usize> = vec![];
3 | |     v.reserve(10);
  | |__________________^ help: consider using `Vec::with_capacity(space_hint)`: `let v: Vec<usize> = Vec::with_capacity(10);`
  |
```

And can be rewritten as:
```rust
let v: Vec<usize> = Vec::with_capacity(10);
```

changelog: new lint [`reserve_after_initialization`]
2023-08-23 12:06:41 +00:00
..
test_utils
ui Auto merge of #11373 - Red-Rapious:master, r=blyxyas,y21 2023-08-23 12:06:41 +00:00
ui-cargo Merge commit '5436dba826191964ac1d0dab534b7eb6d4c878f6' into clippyup 2023-07-31 23:53:53 +02:00
ui-internal Update ui test crate to auto-detect aux build crate kind 2023-08-11 14:02:35 +00:00
ui-toml Update ui test crate to auto-detect aux build crate kind 2023-08-11 14:02:35 +00:00
workspace_test
check-fmt.rs
clippy.toml
compile-test.rs Use ui_test's Windows path backslash heuristic 2023-08-14 15:59:00 +00:00
dogfood.rs
headers.rs Make a panic message more informative if binary files are accidentally created somewhere in the test folder 2023-08-11 14:01:53 +00:00
integration.rs Merge commit '5436dba826191964ac1d0dab534b7eb6d4c878f6' into clippyup 2023-07-31 23:53:53 +02:00
lint_message_convention.rs Merge commit 'd9c24d1b1ee61f276e550b967409c9f155eac4e3' into clippyup 2023-07-17 10:22:32 +02:00
missing-test-files.rs
versioncheck.rs
workspace.rs