about summary refs log tree commit diff
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2022-06-30 14:48:49 +0200
committerlcnr <rust@lcnr.de>2022-06-30 14:48:49 +0200
commit8931fbd694d1e350e828cbef2c1a09bd4dff6cc7 (patch)
treed13f28d2009907950e84fd4bb455819876cc1dd6
parent1d845bd412cf49ad55860266324ed63fd4e3bcfc (diff)
downloadrust-8931fbd694d1e350e828cbef2c1a09bd4dff6cc7.tar.gz
rust-8931fbd694d1e350e828cbef2c1a09bd4dff6cc7.zip
add logging to `write_resolution`
-rw-r--r--compiler/rustc_typeck/src/check/fn_ctxt/_impl.rs3
1 files changed, 2 insertions, 1 deletions
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 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
         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 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
         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);