Skip to content

Commit e2d18c9

Browse files
committed
Remove an assertion from trans::base::iter_structural_ty
I had put in an assertion that if the ty is a class, it doesn't have a dtor, but that doesn't make sense, since this gets used to make take glue and not just drop glue.
1 parent ab73532 commit e2d18c9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/rustc/middle/trans/base.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,8 +1057,6 @@ fn iter_structural_ty(cx: block, av: ValueRef, t: ty::t,
10571057
ret next_cx;
10581058
}
10591059
ty::ty_class(did, substs) {
1060-
assert(ty::ty_dtor(cx.tcx(), did) == none);
1061-
// a class w/ no dtor is like a record type
10621060
for vec::eachi(ty::class_items_as_fields(cx.tcx(), did, substs))
10631061
{|i, fld|
10641062
let llfld_a = GEPi(cx, av, [0u, i]);

0 commit comments

Comments
 (0)