Allow empty enums to be sent (#2737)

This commit is contained in:
Eric Holk 2012-06-28 17:41:20 -07:00
parent 0a99912cdd
commit 328fd30cf4

View File

@ -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|