summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/librustc_mir/borrow_check/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_mir/borrow_check/mod.rs b/src/librustc_mir/borrow_check/mod.rs
index ec26710451..20eb084e1a 100644
--- a/src/librustc_mir/borrow_check/mod.rs
+++ b/src/librustc_mir/borrow_check/mod.rs
@@ -1698,9 +1698,9 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
1698 let mut error_reported = false; 1698 let mut error_reported = false;
1699 match kind { 1699 match kind {
1700 Reservation(WriteKind::MutableBorrow(borrow_kind @ BorrowKind::Unique)) 1700 Reservation(WriteKind::MutableBorrow(borrow_kind @ BorrowKind::Unique))
1701 | Reservation(WriteKind::MutableBorrow(borrow_kind @ BorrowKind::Mut { .. })) 1701 | Reservation(WriteKind::MutableBorrow(borrow_kind @ BorrowKind::Mut { .. }))
1702 | Write(WriteKind::MutableBorrow(borrow_kind @ BorrowKind::Unique)) 1702 | Write(WriteKind::MutableBorrow(borrow_kind @ BorrowKind::Unique))
1703 | Write(WriteKind::MutableBorrow(borrow_kind @ BorrowKind::Mut { .. })) => 1703 | Write(WriteKind::MutableBorrow(borrow_kind @ BorrowKind::Mut { .. })) =>
1704 { 1704 {
1705 let is_local_mutation_allowed = match borrow_kind { 1705 let is_local_mutation_allowed = match borrow_kind {
1706 BorrowKind::Unique => LocalMutationIsAllowed::Yes, 1706 BorrowKind::Unique => LocalMutationIsAllowed::Yes,