about summary refs log tree commit diff
path: root/src/libcore/mem/manually_drop.rs
AgeCommit message (Collapse)AuthorLines
2020-07-27mv std libs to library/mark-179/+0
2020-06-30Deny unsafe ops in unsafe fns, part 2LeSeulArtichaut-2/+7
2020-05-16emphasize that ManuallyDrop is safe-to-access and unsafe-to-dropRalf Jung-1/+5
2020-05-15Improve the documentation for ManuallyDrop to resolve conflicting usage of ↵Diggory Blake-10/+29
terminology.
2020-03-06fix various typosMatthias Krüger-1/+1
2020-01-09stabalize ManuallyDrop::takeCAD97-7/+8
2019-12-29Typo fixPeter Todd-1/+1
2019-12-18Propagate cfg bootstrapMark Rousskov-8/+2
2019-12-13Require stable/unstable annotations for the constness of all stable ↵Oliver Scherer-0/+8
functions with a `const` modifier
2019-11-26Format libcore with rustfmtDavid Tolnay-1/+1
This commit applies rustfmt with default settings to files in src/libcore *that are not involved in any currently open PR* to minimize merge conflicts. The list of files involved in open PRs was determined by querying GitHub's GraphQL API with this script: https://gist.github.com/dtolnay/aa9c34993dc051a4f344d1b10e4487e8 With the list of files from the script in `outstanding_files`, the relevant commands were: $ find src/libcore -name '*.rs' | xargs rustfmt --edition=2018 $ rg libcore outstanding_files | xargs git checkout -- Repeating this process several months apart should get us coverage of most of the rest of libcore.
2019-07-27Update wordingAaron Hill-1/+2
2019-07-03Improve formatting of 'ManuallyDrop'Aaron Hill-1/+1
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
2019-07-03Document that ManuallyDrop::drop should not called more than onceAaron Hill-1/+2
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.
2019-05-29split libcore::mem into multiple filesRalf Jung-0/+146