Remove unnecessary assert that unions have only one variant
This commit is contained in:
parent
cbcf2ffe80
commit
da9791767b
@ -1357,9 +1357,6 @@ enum StructKind {
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user