@@ -904,10 +904,6 @@ fn type_of_inner(&@crate_ctxt cx, &span sp, &ty::t t) -> TypeRef {
904
904
case ( ty:: ty_param ( _) ) {
905
905
llty = T_i8 ( ) ;
906
906
}
907
- case ( ty:: ty_bound_param ( _) ) {
908
- cx. tcx . sess . span_err ( sp,
909
- "trans::type_of called on ty_bound_param" ) ;
910
- }
911
907
case ( ty:: ty_type) { llty = T_ptr ( T_tydesc ( cx. tn ) ) ; }
912
908
}
913
909
@@ -1299,7 +1295,6 @@ fn static_size_of_tag(&@crate_ctxt cx, &span sp, &ty::t t) -> uint {
1299
1295
auto tup_ty = simplify_type( cx, ty:: mk_imm_tup( cx. tcx, variant. args) ) ;
1300
1296
1301
1297
// Perform any type parameter substitutions.
1302
- tup_ty = ty:: bind_params_in_type( cx. tcx, tup_ty) ;
1303
1298
tup_ty = ty:: substitute_type_params( cx. tcx, subtys, tup_ty) ;
1304
1299
1305
1300
// Here we possibly do a recursive call.
@@ -1373,10 +1368,8 @@ fn dynamic_size_of(&@block_ctxt cx, ty::t t) -> result {
1373
1368
let vec[ ty:: t] raw_tys = variant. args;
1374
1369
let vec[ ty:: t] tys = [ ] ;
1375
1370
for ( ty:: t raw_ty in raw_tys) {
1376
- auto t = ty:: bind_params_in_type( cx. fcx. lcx. ccx. tcx,
1377
- raw_ty) ;
1378
- t = ty:: substitute_type_params( cx. fcx. lcx. ccx. tcx, tps,
1379
- t) ;
1371
+ auto t = ty:: substitute_type_params( cx. fcx. lcx. ccx. tcx,
1372
+ tps, raw_ty) ;
1380
1373
tys += [ t] ;
1381
1374
}
1382
1375
@@ -1553,9 +1546,8 @@ fn GEP_tag(@block_ctxt cx,
1553
1546
auto i = 0 ;
1554
1547
let vec[ ty:: t] true_arg_tys = [ ] ;
1555
1548
for ( ty:: t aty in arg_tys) {
1556
- auto arg_ty = ty:: bind_params_in_type( cx. fcx. lcx. ccx. tcx, aty) ;
1557
- arg_ty = ty:: substitute_type_params ( cx. fcx . lcx . ccx . tcx , ty_substs,
1558
- arg_ty) ;
1549
+ auto arg_ty = ty:: substitute_type_params( cx. fcx. lcx. ccx. tcx,
1550
+ ty_substs, aty) ;
1559
1551
true_arg_tys += [ arg_ty] ;
1560
1552
if ( i == ix) {
1561
1553
elem_ty = arg_ty;
@@ -2745,10 +2737,8 @@ fn iter_structural_ty_full(&@block_ctxt cx,
2745
2737
auto llfldp_b = rslt. val;
2746
2738
variant_cx = rslt. bcx;
2747
2739
2748
- auto ty_subst = ty:: bind_params_in_type(
2749
- cx. fcx. lcx. ccx. tcx, a. ty) ;
2750
- ty_subst = ty:: substitute_type_params(
2751
- cx. fcx. lcx. ccx. tcx, tps, ty_subst) ;
2740
+ auto ty_subst = ty:: substitute_type_params(
2741
+ cx. fcx. lcx. ccx. tcx, tps, a. ty) ;
2752
2742
2753
2743
auto llfld_a =
2754
2744
load_if_immediate( variant_cx,
@@ -5308,6 +5298,7 @@ fn trans_call(&@block_ctxt cx, &@ast::expr f,
5308
5298
}
5309
5299
5310
5300
auto ret_ty = ty:: ann_to_type( cx. fcx. lcx. ccx. tcx, ann) ;
5301
+
5311
5302
auto args_res = trans_args( f_res. res. bcx,
5312
5303
llenv, f_res. llobj,
5313
5304
f_res. generic,
@@ -7552,6 +7543,7 @@ fn decl_native_fn_and_pair(&@crate_ctxt ccx,
7552
7543
7553
7544
// Declare the wrapper.
7554
7545
auto t = node_ann_type( ccx, ann) ;
7546
+
7555
7547
auto wrapper_type = native_fn_wrapper_type( ccx, sp, num_ty_param, t) ;
7556
7548
let str s = mangle_internal_name_by_path( ccx, path) ;
7557
7549
let ValueRef wrapper_fn = decl_internal_fastcall_fn( ccx. llmod, s,
0 commit comments