diff options
| author | Aaron Loucks <aloucks@cofront.net> | 2019-12-14 12:38:45 -0500 |
|---|---|---|
| committer | Aaron Loucks <aloucks@cofront.net> | 2019-12-14 12:38:45 -0500 |
| commit | 7ea6c46a6d70506e92630f0186f2c6b0386147a0 (patch) | |
| tree | 3f39ae379f6a721ae4297b8da057ae1a292b6f6e /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | 3964a55ba59bb6c3d4badcbddc49f6929ef76862 (diff) | |
| download | rust-7ea6c46a6d70506e92630f0186f2c6b0386147a0.tar.gz rust-7ea6c46a6d70506e92630f0186f2c6b0386147a0.zip | |
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-md5.rs')
0 files changed, 0 insertions, 0 deletions
