From b75248ef4eeac4cf06e8cfd2fa6e36ab488eb4d1 Mon Sep 17 00:00:00 2001 From: "Felix S. Klock II" Date: Thu, 14 Dec 2017 09:03:04 -0600 Subject: [PATCH] Address review note: `AccessErrorsReported` meant to track whether error reported at *any* point in past. --- src/librustc_mir/borrow_check/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_mir/borrow_check/mod.rs b/src/librustc_mir/borrow_check/mod.rs index e9d5bd365e2b..074b4a09a2d4 100644 --- a/src/librustc_mir/borrow_check/mod.rs +++ b/src/librustc_mir/borrow_check/mod.rs @@ -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 }; } }