diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-12-15 05:57:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-15 05:57:27 +0100 |
| commit | 64f83915de0792ae61086fe3269b1587be2e2a01 (patch) | |
| tree | c8a67017e8ba910f665e7418d5b2d913c97cecae /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | 8e2689c42ef3dad7d91427340b2e698139aaa197 (diff) | |
| parent | 7ea6c46a6d70506e92630f0186f2c6b0386147a0 (diff) | |
| download | rust-64f83915de0792ae61086fe3269b1587be2e2a01.tar.gz rust-64f83915de0792ae61086fe3269b1587be2e2a01.zip | |
Rollup merge of #67300 - aloucks:issue-65970, r=rkruppe
Restore original implementation of Vec::retain This PR reverts #48065, which aimed to optimize `Vec::retain` by making use of `Vec::drain_filter`. Unfortunately at that time, `drain_filter` was unsound. The soundness hole in `Vec::drain_filter` was fixed in #61224 by guaranteeing that cleanup logic runs via a nested `Drop`, even in the event of a panic. Implementing this nested drop affects codegen (apparently?) and results in slower code. Fixes #65970
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
