summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2018-05-22 15:03:40 +0200
committerFelix S. Klock II <pnkfelix@pnkfx.org>2018-05-29 23:02:40 +0200
commit2b5aa905003e2c7b44a9e79d41d86f4ac248b5ce (patch)
tree2fd0c4827d21ed21d31ff00e56623370bd482ca9
parentTests illustrating the bug fixes for #27282 and #24535. (diff)
downloadgrust-2b5aa905003e2c7b44a9e79d41d86f4ac248b5ce.tar.gz
grust-2b5aa905003e2c7b44a9e79d41d86f4ac248b5ce.tar.bz2
grust-2b5aa905003e2c7b44a9e79d41d86f4ac248b5ce.tar.xz
review feedback: fix indentation of pattern candidates to match code elsewhere in file.
-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,