Skip to content

Commit 89c4b25

Browse files
committed
add debug
1 parent db68788 commit 89c4b25

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

compiler/rustc_hir_typeck/src/method/suggest.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3291,6 +3291,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
32913291
}
32923292
}
32933293

3294+
#[instrument(level = "debug", skip(self))]
32943295
fn suggest_use_candidates<F>(&self, candidates: Vec<DefId>, handle_candidates: F)
32953296
where
32963297
F: FnOnce(Vec<String>, Vec<String>, Span),
@@ -3329,6 +3330,11 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
33293330
let prefix = if visible { "use " } else { "" };
33303331
let postfix = if visible { ";" } else { "" };
33313332
let path_strings = candidates.iter().map(|trait_did| {
3333+
debug!(
3334+
"trait_did={:?} with_crate_prefix={:?}",
3335+
trait_did,
3336+
with_crate_prefix!(self.tcx.def_path_str(*trait_did))
3337+
);
33323338
format!(
33333339
"{prefix}{}{postfix}\n",
33343340
with_crate_prefix!(self.tcx.def_path_str(*trait_did)),

0 commit comments

Comments
 (0)