about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-12-15 05:57:27 +0100
committerGitHub <noreply@github.com>2019-12-15 05:57:27 +0100
commit64f83915de0792ae61086fe3269b1587be2e2a01 (patch)
treec8a67017e8ba910f665e7418d5b2d913c97cecae /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parent8e2689c42ef3dad7d91427340b2e698139aaa197 (diff)
parent7ea6c46a6d70506e92630f0186f2c6b0386147a0 (diff)
downloadrust-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