We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f1e130 commit 6021dd2Copy full SHA for 6021dd2
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: 687d328d7cf3fdec84ab4f07f86262dc5001738a
+refs/heads/master: 8d8b3d985a02153a349e72bd9840231b43c51864
trunk/src/comp/middle/ty.rs
@@ -471,6 +471,13 @@ fn type_has_dynamic_size(@t ty) -> bool {
471
i += 1u;
472
}
473
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
481
case (ty_param(_)) { ret true; }
482
case (_) { /* fall through */ }
483
0 commit comments