Skip to content

Commit b6889c6

Browse files
committed
---
yaml --- r: 4821 b: refs/heads/master c: e7c8019 h: refs/heads/master i: 4819: 73569b3 v: v3
1 parent 811406a commit b6889c6

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 94c6160c737675f1e1049fe7f5706b70ec99c822
2+
refs/heads/master: e7c8019dd9889e1736b075d1b205f8b118b286b3

trunk/src/comp/middle/ty.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,6 +1071,13 @@ fn type_kind(cx: &ctxt, ty: &t) -> ast::kind {
10711071
if result == ast::kind_pinned { break; }
10721072
}
10731073
}
1074+
// Tuples lower to the lowest of their members.
1075+
ty_tup(tys) {
1076+
for ty: t in tys {
1077+
result = kind::lower_kind(result, type_kind(cx, ty));
1078+
if result == ast::kind_pinned { break; }
1079+
}
1080+
}
10741081

10751082
// Tags lower to the lowest of their variants.
10761083
ty_tag(did, tps) {

0 commit comments

Comments
 (0)