From 9a607c0a2781197b88ff2535b852b53d3f0e4145 Mon Sep 17 00:00:00 2001 From: Bastian Kauschke Date: Sat, 26 Sep 2020 10:31:34 +0200 Subject: [PATCH] unused into --- .../rustc_infer/src/infer/error_reporting/need_type_info.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_infer/src/infer/error_reporting/need_type_info.rs b/compiler/rustc_infer/src/infer/error_reporting/need_type_info.rs index 6302139c27d..2f3089f1a92 100644 --- a/compiler/rustc_infer/src/infer/error_reporting/need_type_info.rs +++ b/compiler/rustc_infer/src/infer/error_reporting/need_type_info.rs @@ -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); -- 2.44.0