diff options
| author | Aleksey Kladov <aleksey.kladov@gmail.com> | 2020-08-31 12:32:37 +0200 |
|---|---|---|
| committer | Aleksey Kladov <aleksey.kladov@gmail.com> | 2020-09-21 14:00:04 +0200 |
| commit | 60b102de06f52102aa6c343de1f1ef31ff08f8df (patch) | |
| tree | d7c2e638e683121bfb22b93cedfd25cef5e49f48 /src/test/codegen/src-hash-algorithm | |
| parent | 6c44bcc4ffeb0ee8059c2c167388c69dedf1ea44 (diff) | |
| download | rust-60b102de06f52102aa6c343de1f1ef31ff08f8df.tar.gz rust-60b102de06f52102aa6c343de1f1ef31ff08f8df.zip | |
Don't recommend ManuallyDrop to customize drop order
See https://internals.rust-lang.org/t/need-for-controlling-drop-order-of-fields/12914/21 for the discussion. TL;DR: ManuallyDrop is unsafe and footguny, but you can just ask the compiler to do all the work for you by re-ordering declarations.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
