add logging to write_resolution

This commit is contained in:
lcnr 2022-06-30 14:48:49 +02:00
parent 1d845bd412
commit 8931fbd694

View File

@ -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);