]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #38934 - Manishearth:nodrop, r=eddyb
authorbors <bors@rust-lang.org>
Tue, 10 Jan 2017 02:45:37 +0000 (02:45 +0000)
committerbors <bors@rust-lang.org>
Tue, 10 Jan 2017 02:45:37 +0000 (02:45 +0000)
Remove destructor-related restrictions from unions

They don't have drop glue.

This doesn't fix the rvalue promotion issues when trying to do things like `static FOO: NoDrop<Bar> = NoDrop {inner: Bar}`. I'm not sure if we should fix that.


Trivial merge