Allow empty enums to be sent (#2737)
This commit is contained in:
parent
0a99912cdd
commit
328fd30cf4
1 changed files with 1 additions and 1 deletions
|
|
@ -1569,7 +1569,7 @@ fn type_kind(cx: ctxt, ty: t) -> kind {
|
|||
let mut lowest = kind_top();
|
||||
let variants = enum_variants(cx, did);
|
||||
if vec::len(*variants) == 0u {
|
||||
lowest = kind_noncopyable();
|
||||
lowest = kind_send_only();
|
||||
} else {
|
||||
for vec::each(*variants) {|variant|
|
||||
for variant.args.each {|aty|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue