unused into

This commit is contained in:
Bastian Kauschke 2020-09-26 10:31:34 +02:00
parent 32195ac8f4
commit 9a607c0a27

View File

@ -364,7 +364,7 @@ pub fn emit_inference_failure_err(
GenericArgKind::Lifetime(_) => bug!("unexpected lifetime"),
};
let mut local_visitor = FindHirNodeVisitor::new(&self, arg.into(), span);
let mut local_visitor = FindHirNodeVisitor::new(&self, arg, span);
let ty_to_string = |ty: Ty<'tcx>| -> String {
let mut s = String::new();
let mut printer = ty::print::FmtPrinter::new(self.tcx, &mut s, Namespace::TypeNS);