add useful debug

This commit is contained in:
Niko Matsakis 2018-04-06 18:03:23 -04:00
parent 8e783da222
commit f93d5d30bd

View file

@ -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,