From 08d31e0f09f79a41e0cfc26247d41fea1489adf9 Mon Sep 17 00:00:00 2001 From: Hirochika Matsumoto Date: Sat, 30 Jan 2021 13:50:44 +0900 Subject: [PATCH] Remove logging iterator --- compiler/rustc_infer/src/infer/error_reporting/mod.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/compiler/rustc_infer/src/infer/error_reporting/mod.rs b/compiler/rustc_infer/src/infer/error_reporting/mod.rs index 68ffe3cd70fa..268819d3094d 100644 --- a/compiler/rustc_infer/src/infer/error_reporting/mod.rs +++ b/compiler/rustc_infer/src/infer/error_reporting/mod.rs @@ -1838,9 +1838,6 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> { .iter() .filter(|field| field.vis.is_accessible_from(field.did, self.tcx)) .map(|field| (field.ident.name, field.ty(self.tcx, expected_substs))) - .inspect(|(name, ty)| { - debug!("suggest_field_where_appropriate: name={:?}, ty={:?}", name, ty) - }) .find(|(_, ty)| ty::TyS::same_type(ty, exp_found.found)) { if let ObligationCauseCode::Pattern { span: Some(span), .. } = cause.code {