about summary refs log tree commit diff
path: root/src/test/codegen/vec-clear.rs
AgeCommit message (Collapse)AuthorLines
2018-07-31Use SetLenOnDrop in Vec::truncate()Laurentiu Nicola-0/+21
This avoids a redundant length check in some cases when calling `Vec::truncate` or `Vec::clear`. Fixes #51802