From 8931fbd694d1e350e828cbef2c1a09bd4dff6cc7 Mon Sep 17 00:00:00 2001 From: lcnr Date: Thu, 30 Jun 2022 14:48:49 +0200 Subject: [PATCH] add logging to `write_resolution` --- compiler/rustc_typeck/src/check/fn_ctxt/_impl.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/rustc_typeck/src/check/fn_ctxt/_impl.rs b/compiler/rustc_typeck/src/check/fn_ctxt/_impl.rs index ea7ebdf91d0..9ef5f331aaa 100644 --- a/compiler/rustc_typeck/src/check/fn_ctxt/_impl.rs +++ b/compiler/rustc_typeck/src/check/fn_ctxt/_impl.rs @@ -156,6 +156,7 @@ pub fn write_field_index(&self, hir_id: hir::HirId, index: usize) { self.typeck_results.borrow_mut().field_indices_mut().insert(hir_id, index); } + #[instrument(level = "debug", skip(self))] pub(in super::super) fn write_resolution( &self, hir_id: hir::HirId, @@ -164,8 +165,8 @@ pub(in super::super) fn write_resolution( self.typeck_results.borrow_mut().type_dependent_defs_mut().insert(hir_id, r); } + #[instrument(level = "debug", skip(self))] pub fn write_method_call(&self, hir_id: hir::HirId, method: MethodCallee<'tcx>) { - debug!("write_method_call(hir_id={:?}, method={:?})", hir_id, method); self.write_resolution(hir_id, Ok((DefKind::AssocFn, method.def_id))); self.write_substs(hir_id, method.substs);