Address review note: AccessErrorsReported meant to track whether error reported at *any* point in past.
This commit is contained in:
parent
f96777c9ff
commit
b75248ef4e
1 changed files with 1 additions and 1 deletions
|
|
@ -706,7 +706,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
|
|||
if self.reservation_error_reported.contains(&place_span.0) {
|
||||
debug!("skipping access_place for activation of invalid reservation \
|
||||
place: {:?} borrow_index: {:?}", place_span.0, borrow_index);
|
||||
return AccessErrorsReported { mutability_error: false, conflict_error: false };
|
||||
return AccessErrorsReported { mutability_error: false, conflict_error: true };
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue