mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 09:44:08 +00:00
Allow empty enums to be sent (#2737)
This commit is contained in:
parent
0a99912cdd
commit
328fd30cf4
@ -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…
Reference in New Issue
Block a user