@@ -903,7 +903,7 @@ fn type_of_inner(&@crate_ctxt cx, &span sp, &ty::t t) -> TypeRef {
903
903
904
904
fn type_of_tag ( & @crate_ctxt cx , & span sp, & ast:: def_id did, & ty:: t t)
905
905
-> TypeRef {
906
- auto degen = vec :: len ( ty:: tag_variants ( cx. tcx , did) ) == 1 u;
906
+ auto degen = std :: ivec :: len ( ty:: tag_variants ( cx. tcx , did) ) == 1 u;
907
907
if ( ty:: type_has_dynamic_size ( cx. tcx , t) ) {
908
908
if ( degen) { ret T_i8 ( ) ; }
909
909
else { ret T_opaque_tag ( cx. tn ) ; }
@@ -1351,7 +1351,7 @@ fn dynamic_size_of(&@block_ctxt cx, ty::t t) -> result {
1351
1351
for ( ty:: variant_info variant in variants) {
1352
1352
// Perform type substitution on the raw argument types.
1353
1353
1354
- let vec [ ty:: t] raw_tys = variant. args;
1354
+ let ty:: t[ ] raw_tys = variant. args;
1355
1355
let vec[ ty:: t] tys = [ ] ;
1356
1356
for ( ty:: t raw_ty in raw_tys) {
1357
1357
auto t =
@@ -1366,7 +1366,7 @@ fn dynamic_size_of(&@block_ctxt cx, ty::t t) -> result {
1366
1366
bcx. build. Store ( umax( bcx, this_size, old_max_size) , max_size) ;
1367
1367
}
1368
1368
auto max_size_val = bcx. build. Load ( max_size) ;
1369
- auto total_size = if ( vec :: len( variants) != 1 u) {
1369
+ auto total_size = if ( std :: ivec :: len( variants) != 1 u) {
1370
1370
bcx. build. Add ( max_size_val, llsize_of( T_int ( ) ) )
1371
1371
} else { max_size_val } ;
1372
1372
ret rslt( bcx, total_size) ;
@@ -2655,7 +2655,7 @@ fn iter_structural_ty_full(&@block_ctxt cx, ValueRef av, ValueRef bv,
2655
2655
fn iter_variant( @block_ctxt cx, ValueRef a_tup, ValueRef b_tup,
2656
2656
& ty:: variant_info variant, & ty:: t[ ] tps,
2657
2657
& ast:: def_id tid, & val_pair_and_ty_fn f) -> result {
2658
- if ( vec :: len[ ty:: t] ( variant. args) == 0 u) {
2658
+ if ( std :: ivec :: len[ ty:: t] ( variant. args) == 0 u) {
2659
2659
ret rslt( cx, C_nil ( ) ) ;
2660
2660
}
2661
2661
auto fn_ty = variant. ctor_ty;
@@ -2664,12 +2664,10 @@ fn iter_structural_ty_full(&@block_ctxt cx, ValueRef av, ValueRef bv,
2664
2664
case ( ty:: ty_fn( _, ?args, _, _, _) ) {
2665
2665
auto j = 0 ;
2666
2666
for ( ty:: arg a in args) {
2667
- auto rslt = GEP_tag ( cx, a_tup, tid,
2668
- variant. id, tps, j) ;
2667
+ auto rslt = GEP_tag ( cx, a_tup, tid, variant. id, tps, j) ;
2669
2668
auto llfldp_a = rslt. val;
2670
2669
cx = rslt. bcx;
2671
- rslt = GEP_tag ( cx, b_tup, tid,
2672
- variant. id, tps, j) ;
2670
+ rslt = GEP_tag ( cx, b_tup, tid, variant. id, tps, j) ;
2673
2671
auto llfldp_b = rslt. val;
2674
2672
cx = rslt. bcx;
2675
2673
auto ty_subst =
@@ -2730,7 +2728,7 @@ fn iter_structural_ty_full(&@block_ctxt cx, ValueRef av, ValueRef bv,
2730
2728
}
2731
2729
case ( ty:: ty_tag( ?tid, ?tps) ) {
2732
2730
auto variants = ty:: tag_variants( cx. fcx. lcx. ccx. tcx, tid) ;
2733
- auto n_variants = vec :: len( variants) ;
2731
+ auto n_variants = std :: ivec :: len( variants) ;
2734
2732
2735
2733
// Cast the tags to types we can GEP into.
2736
2734
if ( n_variants == 1 u) {
@@ -4159,8 +4157,8 @@ fn autoderef_lval(&@block_ctxt cx, ValueRef v, &ty::t t, bool is_lval)
4159
4157
}
4160
4158
case ( ty:: ty_tag( ?did, ?tps) ) {
4161
4159
auto variants = ty:: tag_variants( ccx. tcx, did) ;
4162
- if ( vec :: len( variants) != 1 u ||
4163
- vec :: len( variants. ( 0 ) . args) != 1 u) {
4160
+ if ( std :: ivec :: len( variants) != 1 u ||
4161
+ std :: ivec :: len( variants. ( 0 ) . args) != 1 u) {
4164
4162
break ;
4165
4163
}
4166
4164
if ( is_lval) { v1 = cx. build. Load ( v1) ; }
@@ -4700,7 +4698,7 @@ fn trans_pat_match(&@block_ctxt cx, &@ast::pat pat, ValueRef llval,
4700
4698
auto matched_cx = new_sub_block_ctxt( cx, "matched_cx") ;
4701
4699
auto llblobptr = llval;
4702
4700
4703
- if ( vec :: len( variants) == 1 u) {
4701
+ if ( std :: ivec :: len( variants) == 1 u) {
4704
4702
cx. build. Br ( matched_cx. llbb) ;
4705
4703
} else {
4706
4704
auto lltagptr =
@@ -4789,7 +4787,8 @@ fn trans_pat_binding(&@block_ctxt cx, &@ast::pat pat, ValueRef llval,
4789
4787
"trans_pat_binding: internal error, unbound var") ; }
4790
4788
}
4791
4789
auto llblobptr = llval;
4792
- if ( vec:: len( ty:: tag_variants( cx. fcx. lcx. ccx. tcx, vdef. _0) ) !=1 u) {
4790
+ if ( std:: ivec:: len( ty:: tag_variants( cx. fcx. lcx. ccx. tcx, vdef. _0) )
4791
+ != 1 u) {
4793
4792
auto lltagptr = cx. build. PointerCast
4794
4793
( llval, T_opaque_tag_ptr ( cx. fcx. lcx. ccx. tn) ) ;
4795
4794
llblobptr = cx. build. GEP ( lltagptr, [ C_int ( 0 ) , C_int ( 1 ) ] ) ;
@@ -4987,7 +4986,8 @@ fn trans_path(&@block_ctxt cx, &ast::path p, ast::node_id id) -> lval_result {
4987
4986
auto bcx = alloc_result. bcx;
4988
4987
auto lltagptr = bcx. build. PointerCast
4989
4988
( lltagblob, T_ptr ( lltagty) ) ;
4990
- if ( vec:: len( ty:: tag_variants( ccx. tcx, tid) ) != 1 u) {
4989
+ if ( std:: ivec:: len( ty:: tag_variants( ccx. tcx, tid) )
4990
+ != 1 u) {
4991
4991
auto lldiscrim_gv =
4992
4992
lookup_discriminant( bcx. fcx. lcx, tid, vid) ;
4993
4993
auto lldiscrim = bcx. build. Load ( lldiscrim_gv) ;
0 commit comments