Skip to content

Commit b75248e

Browse files
committed
Address review note: AccessErrorsReported meant to track whether error reported at *any* point in past.
1 parent f96777c commit b75248e

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

src/librustc_mir/borrow_check/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
706706
if self.reservation_error_reported.contains(&place_span.0) {
707707
debug!("skipping access_place for activation of invalid reservation \
708708
place: {:?} borrow_index: {:?}", place_span.0, borrow_index);
709-
return AccessErrorsReported { mutability_error: false, conflict_error: false };
709+
return AccessErrorsReported { mutability_error: false, conflict_error: true };
710710
}
711711
}
712712

0 commit comments

Comments
 (0)