}],
terminator: Some(Terminator {
kind: TerminatorKind::Call {
- func: Operand::item(tcx, drop_fn.def_id, substs,
- self.source_info.span),
+ func: Operand::function_handle(tcx, drop_fn.def_id, substs,
+ self.source_info.span),
args: vec![Operand::Consume(Lvalue::Local(ref_lvalue))],
destination: Some((unit_temp, succ)),
cleanup: unwind,
let substs = tcx.mk_substs(iter::once(Kind::from(ty)));
let call = TerminatorKind::Call {
- func: Operand::item(tcx, free_func, substs, self.source_info.span),
+ func: Operand::function_handle(tcx, free_func, substs, self.source_info.span),
args: vec![Operand::Consume(self.lvalue.clone())],
destination: Some((unit_temp, target)),
cleanup: None
}
fn new_temp(&mut self, ty: Ty<'tcx>) -> Local {
- self.elaborator.patch().new_temp(ty)
+ self.elaborator.patch().new_temp(ty, self.source_info.span)
}
fn terminator_loc(&mut self, bb: BasicBlock) -> Location {