diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2018-11-15 11:04:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-15 11:04:38 +0100 |
| commit | 202724cddc826f898693177c2b1d990d366d8bcf (patch) | |
| tree | 69d7d01633be913de9cb574d1ac536376ddee95d /src/test/incremental/thinlto | |
| parent | 6ca7bc0eb8648abc8673a971c85b777a6bc62e16 (diff) | |
| parent | 56d3a824e46ce9976a017ef41c318a66444da99c (diff) | |
| download | rust-202724cddc826f898693177c2b1d990d366d8bcf.tar.gz rust-202724cddc826f898693177c2b1d990d366d8bcf.zip | |
Rollup merge of #55785 - stjepang:unsized-drop-forget, r=alexcrichton
Add mem::forget_unsized() for forgetting unsized values ~~Allows passing values of `T: ?Sized` types to `mem::drop` and `mem::forget`.~~ Adds `mem::forget_unsized()` that accepts `T: ?Sized`. I had to revert the PR that removed the `forget` intrinsic and replaced it with `ManuallyDrop`: https://github.com/rust-lang/rust/pull/40559 We can't use `ManuallyDrop::new()` here because it needs `T: Sized` and we don't have support for unsized return values yet (will we ever?). r? @eddyb
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
