Skip to content

Commit 6021dd2

Browse files
committed
---
yaml --- r: 1455 b: refs/heads/master c: 8d8b3d9 h: refs/heads/master i: 1453: b5e3ac0 1451: b166aa0 1447: 28a4c4c 1439: 379173f v: v3
1 parent 4f1e130 commit 6021dd2

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: 687d328d7cf3fdec84ab4f07f86262dc5001738a
2+
refs/heads/master: 8d8b3d985a02153a349e72bd9840231b43c51864

trunk/src/comp/middle/ty.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,13 @@ fn type_has_dynamic_size(@t ty) -> bool {
471471
i += 1u;
472472
}
473473
}
474+
case (ty_tag(_, ?subtys)) {
475+
auto i = 0u;
476+
while (i < _vec.len[@t](subtys)) {
477+
if (type_has_dynamic_size(subtys.(i))) { ret true; }
478+
i += 1u;
479+
}
480+
}
474481
case (ty_param(_)) { ret true; }
475482
case (_) { /* fall through */ }
476483
}

0 commit comments

Comments
 (0)