@@ -2169,7 +2169,7 @@ pub fn check_expr_with_unifier(fcx: @mut FnCtxt,
2169
2169
}
2170
2170
ast:: expr_repeat ( element , count_expr , mutbl ) => {
2171
2171
let count = ty:: eval_repeat_count ( tcx , count_expr ) ;
2172
- fcx . write_ty ( count_expr. id , ty:: mk_uint( tcx) ) ;
2172
+ check_expr_with_hint ( fcx , count_expr, ty:: mk_uint( tcx) ) ;
2173
2173
let tt = ast_expr_vstore_to_vstore( fcx, ev, count, vst) ;
2174
2174
let t : ty:: t = fcx. infcx ( ) . next_ty_var( ) ;
2175
2175
bot |= check_expr_has_type( fcx, element, t) ;
@@ -2537,7 +2537,7 @@ pub fn check_expr_with_unifier(fcx: @mut FnCtxt,
2537
2537
}
2538
2538
ast:: expr_repeat( element, count_expr, mutbl) => {
2539
2539
let count = ty:: eval_repeat_count( tcx, count_expr) ;
2540
- fcx . write_ty ( count_expr. id , ty:: mk_uint( tcx) ) ;
2540
+ check_expr_with_hint ( fcx , count_expr, ty:: mk_uint( tcx) ) ;
2541
2541
let t: ty:: t = fcx. infcx( ) . next_ty_var( ) ;
2542
2542
bot |= check_expr_has_type( fcx, element, t) ;
2543
2543
let t = ty:: mk_evec( tcx, ty:: mt { ty: t, mutbl: mutbl} ,
0 commit comments