Skip to content

Commit f93d5d3

Browse files
committed
add useful debug
1 parent 8e783da commit f93d5d3

File tree

1 file changed

+8
-0
lines changed
  • src/librustc_mir/borrow_check

1 file changed

+8
-0
lines changed

src/librustc_mir/borrow_check/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -843,6 +843,14 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
843843
rw: ReadOrWrite,
844844
flow_state: &Flows<'cx, 'gcx, 'tcx>,
845845
) -> bool {
846+
debug!(
847+
"check_access_for_conflict(context={:?}, place_span={:?}, sd={:?}, rw={:?})",
848+
context,
849+
place_span,
850+
sd,
851+
rw,
852+
);
853+
846854
let mut error_reported = false;
847855
self.each_borrow_involving_path(
848856
context,

0 commit comments

Comments
 (0)