}
mir::TerminatorKind::Drop { ref location, target, unwind } => {
- let ty = location.ty(&self.mir.local_decls, bcx.tcx()).to_ty(bcx.tcx());
+ let ty = location.ty(self.mir, bcx.tcx()).to_ty(bcx.tcx());
let ty = self.monomorphize(&ty);
let drop_fn = monomorphize::resolve_drop_in_place(bcx.ccx.shared(), ty);
let extra_args = &args[sig.inputs().len()..];
let extra_args = extra_args.iter().map(|op_arg| {
- let op_ty = op_arg.ty(&self.mir.local_decls, bcx.tcx());
+ let op_ty = op_arg.ty(self.mir, bcx.tcx());
self.monomorphize(&op_ty)
}).collect::<Vec<_>>();
Ref(ptr, align)
};
let op = OperandRef {
- val: val,
- ty: ty
+ val,
+ ty,
};
self.trans_argument(bcx, op, llargs, fn_ty, next_idx, llfn, def);
}
// If the tuple is immediate, the elements are as well
let op = OperandRef {
val: Immediate(elem),
- ty: ty
+ ty,
};
self.trans_argument(bcx, op, llargs, fn_ty, next_idx, llfn, def);
}
// Pair is always made up of immediates
let op = OperandRef {
val: Immediate(elem),
- ty: ty
+ ty,
};
self.trans_argument(bcx, op, llargs, fn_ty, next_idx, llfn, def);
}