diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-09-14 16:42:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-14 16:42:28 +0200 |
| commit | c6c2acdb47d320658d22b0ac0f8a357fdc071b1f (patch) | |
| tree | 001224f37a46a755ced70fb8f9ea9e85fba29d8d /src/test/debuginfo/enum-thinlto.rs | |
| parent | af33a1d902c7dec7824740e971953b21996d4429 (diff) | |
| parent | 223600ac2c23715f350ceae7f315f5056aae6fc0 (diff) | |
| download | rust-c6c2acdb47d320658d22b0ac0f8a357fdc071b1f.tar.gz rust-c6c2acdb47d320658d22b0ac0f8a357fdc071b1f.zip | |
Rollup merge of #64375 - kornelski:vecdrop, r=rkruppe
Fast path for vec.clear/truncate For trivial types like `u8`, `vec.truncate()`/`vec.clear()` relies on the optimizer to remove the loop. This means more work in debug builds, and more work for the optimizer. Avoiding this busywork is exactly what `mem::needs_drop::<T>()` is for.
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
