about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorUlrik Sverdrup <bluss@users.noreply.github.com>2018-12-19 20:58:20 +0100
committerOliver Scherer <github35764891676564198441@oli-obk.de>2019-10-11 10:43:54 +0200
commit2f0c821be9ba9cdf52a45c327b7d3f2831626225 (patch)
treec3bbbab51b2b312f35c5fd60694b0e7b4336e4c3 /src/test/debuginfo/enum-thinlto.rs
parent84ca0a1cb47f71a43ee16da2f6bc173577b35cb9 (diff)
downloadrust-2f0c821be9ba9cdf52a45c327b7d3f2831626225.tar.gz
rust-2f0c821be9ba9cdf52a45c327b7d3f2831626225.zip
Change untagged_unions to not allow union fields with drop
Union fields may now never have a type with attached destructor.
This for example allows unions to use arbitrary field types only by
wrapping
them in ManuallyDrop.

The stable rule remains, that union fields must be Copy. We use the new
rule for the `untagged_union` feature.

See RFC 2514.

Note for ui tests:
We can't test move out through Box's deref-move since we can't
have a Box in a union anymore.
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions