about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff
diff options
context:
space:
mode:
authorGuillem Nieto <gnieto.talo@gmail.com>2018-10-19 01:15:48 +0200
committerGuillem Nieto <gnieto@scopely.com>2018-11-25 14:34:23 -0800
commite0ccc9d9afa2b7800e288a6367422b2a2389f57e (patch)
tree7aa1d4780f2f22a1c38225522914920d7ddd0e7e /tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff
parent69d09fbfc6fe10dd20cf27f737e7ff6175e2c642 (diff)
downloadrust-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