@@ -2060,15 +2060,15 @@ fn move_val(cx: @block_ctxt, action: copy_action, dst: ValueRef,
2060
2060
if src. is_mem { ret zero_alloca ( cx, src. val , t) . bcx ; }
2061
2061
2062
2062
// If we're here, it must be a temporary.
2063
- ret revoke_clean ( cx, src_val, t ) ;
2063
+ ret revoke_clean ( cx, src_val) ;
2064
2064
} else if ty:: type_is_unique ( tcx, t) ||
2065
2065
type_is_structural_or_param ( tcx, t) {
2066
2066
if action == DROP_EXISTING { cx = drop_ty ( cx, dst, t) ; }
2067
2067
cx = memmove_ty ( cx, dst, src_val, t) . bcx ;
2068
2068
if src. is_mem { ret zero_alloca ( cx, src_val, t) . bcx ; }
2069
2069
2070
2070
// If we're here, it must be a temporary.
2071
- ret revoke_clean ( cx, src_val, t ) ;
2071
+ ret revoke_clean ( cx, src_val) ;
2072
2072
}
2073
2073
/* FIXME: suggests a type constraint */
2074
2074
bcx_ccx ( cx) . sess . bug ( "unexpected type in trans::move_val: " +
@@ -3823,8 +3823,8 @@ fn zero_and_revoke(bcx: @block_ctxt,
3823
3823
for { v, t} in to_zero {
3824
3824
bcx = zero_alloca ( bcx, v, t) . bcx ;
3825
3825
}
3826
- for { v, t } in to_revoke {
3827
- bcx = revoke_clean ( bcx, v, t ) ;
3826
+ for { v, _ } in to_revoke {
3827
+ bcx = revoke_clean ( bcx, v) ;
3828
3828
}
3829
3829
ret bcx;
3830
3830
}
0 commit comments