Skip to content

Commit cc58ae5

Browse files
committed
Print the def-id when finishing borrowck.
1 parent c15438a commit cc58ae5

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_borrowck/src

1 file changed

+2
-2
lines changed

compiler/rustc_borrowck/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ pub fn provide(providers: &mut Providers) {
118118

119119
fn mir_borrowck(tcx: TyCtxt<'_>, def: LocalDefId) -> &BorrowCheckResult<'_> {
120120
let (input_body, _) = tcx.mir_promoted(def);
121-
debug!("run query mir_borrowck: {}", tcx.def_path_str(def));
121+
debug!("run query mir_borrowck: {def:?}");
122122

123123
if input_body.borrow().should_skip() {
124124
debug!("Skipping borrowck because of injected body");
@@ -137,7 +137,7 @@ fn mir_borrowck(tcx: TyCtxt<'_>, def: LocalDefId) -> &BorrowCheckResult<'_> {
137137
tcx.infer_ctxt().with_opaque_type_inference(DefiningAnchor::Bind(typeck_root)).build();
138138
let input_body: &Body<'_> = &input_body.borrow();
139139
let opt_closure_req = do_mir_borrowck(&infcx, input_body, false).0;
140-
debug!("mir_borrowck done");
140+
debug!("mir_borrowck done: {def:?}");
141141

142142
tcx.arena.alloc(opt_closure_req)
143143
}

0 commit comments

Comments
 (0)