mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-22 20:03:37 +00:00

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]`.
0 lines
Plaintext
0 lines
Plaintext