@@ -1663,17 +1663,6 @@ type val_fn = fn(&@block_ctxt, ValueRef) -> result;
1663
1663
type val_and_ty_fn = fn ( & @block_ctxt , ValueRef , ty:: t ) -> result ;
1664
1664
1665
1665
1666
- // Iterates through the elements of a structural type.
1667
- fn iter_structural_ty ( cx : & @block_ctxt , v : ValueRef , t : ty:: t ,
1668
- f : val_and_ty_fn ) -> result {
1669
- fn adaptor_fn ( f : val_and_ty_fn , cx : & @block_ctxt , av : ValueRef , t : ty:: t )
1670
- -> result {
1671
- ret f( cx, av, t) ;
1672
- }
1673
- let x = iter_structural_ty_full ( cx, v, t, bind adaptor_fn ( f, _, _, _) ) ;
1674
- ret x;
1675
- }
1676
-
1677
1666
fn load_inbounds ( cx : & @block_ctxt , p : ValueRef , idxs : & [ ValueRef ] ) ->
1678
1667
ValueRef {
1679
1668
ret Load ( cx, InBoundsGEP ( cx, p, idxs) ) ;
@@ -1690,8 +1679,9 @@ fn incr_ptr(cx: &@block_ctxt, p: ValueRef, incr: ValueRef, pp: ValueRef) {
1690
1679
Store ( cx, InBoundsGEP ( cx, p, [ incr] ) , pp) ;
1691
1680
}
1692
1681
1693
- fn iter_structural_ty_full ( cx : & @block_ctxt , av : ValueRef , t : ty:: t ,
1694
- f : & val_and_ty_fn ) -> result {
1682
+ // Iterates through the elements of a structural type.
1683
+ fn iter_structural_ty ( cx : & @block_ctxt , av : ValueRef , t : ty:: t ,
1684
+ f : & val_and_ty_fn ) -> result {
1695
1685
fn iter_boxpp ( cx : @block_ctxt , box_cell : ValueRef , f : & val_and_ty_fn ) ->
1696
1686
result {
1697
1687
let box_ptr = Load ( cx, box_cell) ;
@@ -1808,7 +1798,7 @@ fn iter_structural_ty_full(cx: &@block_ctxt, av: ValueRef, t: ty::t,
1808
1798
GEP(cx, av, [C_int(0), C_int(abi::obj_field_box)]);
1809
1799
ret iter_boxpp(cx, box_cell_a, f);
1810
1800
}
1811
- _ { bcx_ccx(cx).sess.unimpl(~" type in iter_structural_ty_full ") ; }
1801
+ _ { bcx_ccx(cx).sess.unimpl(~" type in iter_structural_ty ") ; }
1812
1802
}
1813
1803
ret r;
1814
1804
}
0 commit comments