diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2019-07-03 21:45:17 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-03 21:45:17 -0400 |
| commit | af96b1df1da916561547dd30b3187b30308d6843 (patch) | |
| tree | 8e047fd01265430cf2d9114077698a26ca4349b2 /src/libsyntax/parse/parser | |
| parent | 088b987307b91612ab164026e1dcdd0129fdb62b (diff) | |
| download | rust-af96b1df1da916561547dd30b3187b30308d6843.tar.gz rust-af96b1df1da916561547dd30b3187b30308d6843.zip | |
Document that ManuallyDrop::drop should not called more than once
Double dropping is unsound (e.g. https://github.com/rust-lang/rust/issues/60977). This commit documents the fact that `ManuallyDrop::drop` should not be called multiple times on the same instance, as it might not be immediately obvious that this counts as a use of uninitialized data.
Diffstat (limited to 'src/libsyntax/parse/parser')
0 files changed, 0 insertions, 0 deletions
