| Age | Commit message (Collapse) | Author | Lines |
|
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
|
|
|
|
|
|
|
|
Instead of searching for all the successive expressions after a vector
allocation, check only the first expression.
This is done to minimize the amount of false positives of the lint.
|
|
|
|
Add lint to detect slow zero-filled vector initialization. It detects
when a vector is zero-filled with extended with `repeat(0).take(len)`
or `resize(len, 0)`.
This zero-fillings are usually slower than simply using `vec![0; len]`.
|