diff options
| author | Guillem Nieto <gnieto.talo@gmail.com> | 2018-10-19 01:15:48 +0200 |
|---|---|---|
| committer | Guillem Nieto <gnieto@scopely.com> | 2018-11-25 14:34:23 -0800 |
| commit | e0ccc9d9afa2b7800e288a6367422b2a2389f57e (patch) | |
| tree | 7aa1d4780f2f22a1c38225522914920d7ddd0e7e /tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff | |
| parent | 69d09fbfc6fe10dd20cf27f737e7ff6175e2c642 (diff) | |
| download | rust-e0ccc9d9afa2b7800e288a6367422b2a2389f57e.tar.gz rust-e0ccc9d9afa2b7800e288a6367422b2a2389f57e.zip | |
Add slow zero-filled vector initialization 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]`.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff')
0 files changed, 0 insertions, 0 deletions
