Skip to content

Commit 8931fbd

Browse files
committed
add logging to write_resolution
1 parent 1d845bd commit 8931fbd

File tree

1 file changed

+2
-1
lines changed
  • compiler/rustc_typeck/src/check/fn_ctxt

1 file changed

+2
-1
lines changed

compiler/rustc_typeck/src/check/fn_ctxt/_impl.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
156156
self.typeck_results.borrow_mut().field_indices_mut().insert(hir_id, index);
157157
}
158158

159+
#[instrument(level = "debug", skip(self))]
159160
pub(in super::super) fn write_resolution(
160161
&self,
161162
hir_id: hir::HirId,
@@ -164,8 +165,8 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
164165
self.typeck_results.borrow_mut().type_dependent_defs_mut().insert(hir_id, r);
165166
}
166167

168+
#[instrument(level = "debug", skip(self))]
167169
pub fn write_method_call(&self, hir_id: hir::HirId, method: MethodCallee<'tcx>) {
168-
debug!("write_method_call(hir_id={:?}, method={:?})", hir_id, method);
169170
self.write_resolution(hir_id, Ok((DefKind::AssocFn, method.def_id)));
170171
self.write_substs(hir_id, method.substs);
171172

0 commit comments

Comments
 (0)