diff options
| author | David Wood <david@davidtw.co> | 2018-01-27 17:16:13 +0000 |
|---|---|---|
| committer | David Wood <david@davidtw.co> | 2018-01-27 17:16:13 +0000 |
| commit | 970fb1a77f31e71e16871d22547243f1c98e6d66 (patch) | |
| tree | a979c8d5347090531955592b8d519cb73753f6ec | |
| parent | f92d679b78fc1e5db5d5fd6cbb9a5e076f8fee69 (diff) | |
Added logging for error suppression.
| -rw-r--r-- | src/librustc_mir/borrow_check/mod.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/librustc_mir/borrow_check/mod.rs b/src/librustc_mir/borrow_check/mod.rs index 6b84abbe266..95dd8dd48a0 100644 --- a/src/librustc_mir/borrow_check/mod.rs +++ b/src/librustc_mir/borrow_check/mod.rs @@ -735,7 +735,8 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> { } if self.access_place_error_reported.contains(&(place_span.0.clone(), place_span.1)) { - debug!("suppressing access_place error for {:?}", place_span); + debug!("access_place: suppressing error place_span=`{:?}` kind=`{:?}`", + place_span, kind); return AccessErrorsReported { mutability_error: false, conflict_error: true, @@ -748,6 +749,8 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> { self.check_access_for_conflict(context, place_span, sd, rw, flow_state); if conflict_error || mutability_error { + debug!("access_place: logging error place_span=`{:?}` kind=`{:?}`", + place_span, kind); self.access_place_error_reported.insert((place_span.0.clone(), place_span.1)); } |
