Remove unnecessary assert that unions have only one variant

This commit is contained in:
Jonathan S 2017-12-23 20:38:36 -06:00
parent cbcf2ffe80
commit da9791767b
1 changed files with 0 additions and 3 deletions

View File

@ -1357,9 +1357,6 @@ impl<'a, 'tcx> LayoutDetails {
if packed && def.repr.align > 0 {
bug!("Union cannot be packed and aligned");
}
if variants.len() != 1 {
bug!("Union must be represented as a single variant");
}
let mut align = if def.repr.packed() {
dl.i8_align