Skip to content

Commit

Permalink
add useful debug
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Apr 15, 2018
1 parent 8e783da commit f93d5d3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/librustc_mir/borrow_check/mod.rs
Expand Up @@ -843,6 +843,14 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
rw: ReadOrWrite,
flow_state: &Flows<'cx, 'gcx, 'tcx>,
) -> bool {
debug!(
"check_access_for_conflict(context={:?}, place_span={:?}, sd={:?}, rw={:?})",
context,
place_span,
sd,
rw,
);

let mut error_reported = false;
self.each_borrow_involving_path(
context,
Expand Down

0 comments on commit f93d5d3

Please sign in to comment.