Skip to content

Commit 328fd30

Browse files
committed
Allow empty enums to be sent (#2737)
1 parent 0a99912 commit 328fd30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rustc/middle/ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1569,7 +1569,7 @@ fn type_kind(cx: ctxt, ty: t) -> kind {
15691569
let mut lowest = kind_top();
15701570
let variants = enum_variants(cx, did);
15711571
if vec::len(*variants) == 0u {
1572-
lowest = kind_noncopyable();
1572+
lowest = kind_send_only();
15731573
} else {
15741574
for vec::each(*variants) {|variant|
15751575
for variant.args.each {|aty|

0 commit comments

Comments
 (0)