Skip to content

Commit 970fb1a

Browse files
committed
Added logging for error suppression.
1 parent f92d679 commit 970fb1a

File tree

1 file changed

+4
-1
lines changed
  • src/librustc_mir/borrow_check

1 file changed

+4
-1
lines changed

src/librustc_mir/borrow_check/mod.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,8 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
735735
}
736736

737737
if self.access_place_error_reported.contains(&(place_span.0.clone(), place_span.1)) {
738-
debug!("suppressing access_place error for {:?}", place_span);
738+
debug!("access_place: suppressing error place_span=`{:?}` kind=`{:?}`",
739+
place_span, kind);
739740
return AccessErrorsReported {
740741
mutability_error: false,
741742
conflict_error: true,
@@ -748,6 +749,8 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
748749
self.check_access_for_conflict(context, place_span, sd, rw, flow_state);
749750

750751
if conflict_error || mutability_error {
752+
debug!("access_place: logging error place_span=`{:?}` kind=`{:?}`",
753+
place_span, kind);
751754
self.access_place_error_reported.insert((place_span.0.clone(), place_span.1));
752755
}
753756

0 commit comments

Comments
 (0)