about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2018-11-15 11:04:38 +0100
committerGitHub <noreply@github.com>2018-11-15 11:04:38 +0100
commit202724cddc826f898693177c2b1d990d366d8bcf (patch)
tree69d7d01633be913de9cb574d1ac536376ddee95d /src/test/incremental/thinlto
parent6ca7bc0eb8648abc8673a971c85b777a6bc62e16 (diff)
parent56d3a824e46ce9976a017ef41c318a66444da99c (diff)
downloadrust-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