Kind check tuples. Closes #841.
This commit is contained in:
parent
94c6160c73
commit
e7c8019dd9
1 changed files with 7 additions and 0 deletions
|
|
@ -1071,6 +1071,13 @@ fn type_kind(cx: &ctxt, ty: &t) -> ast::kind {
|
|||
if result == ast::kind_pinned { break; }
|
||||
}
|
||||
}
|
||||
// Tuples lower to the lowest of their members.
|
||||
ty_tup(tys) {
|
||||
for ty: t in tys {
|
||||
result = kind::lower_kind(result, type_kind(cx, ty));
|
||||
if result == ast::kind_pinned { break; }
|
||||
}
|
||||
}
|
||||
|
||||
// Tags lower to the lowest of their variants.
|
||||
ty_tag(did, tps) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue