]> git.lizzy.rs Git - rust.git/commit
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)
commit26dc969b3df61255646f54e0a5dd1664f419ba3d
tree40effe36a5f2cbd7a9e3b938c70201046dcd6eef
parent76bc5e1c800eedc7cc3729dc6529ea196822d2bf
parentb9b0732d2a8bfed04d3102706f8d03ad5709b4a0
Auto merge of #38934 - Manishearth:nodrop, r=eddyb

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.