about summary refs log tree commit diff
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
parent98d5e134f9eb38d8807466a674774987554c860a (diff)
downloadrust-2b5aa905003e2c7b44a9e79d41d86f4ac248b5ce.tar.gz
rust-2b5aa905003e2c7b44a9e79d41d86f4ac248b5ce.zip
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 ec267104518..20eb084e1a1 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> {
         let mut error_reported = false;
         match kind {
             Reservation(WriteKind::MutableBorrow(borrow_kind @ BorrowKind::Unique))
-                | Reservation(WriteKind::MutableBorrow(borrow_kind @ BorrowKind::Mut { .. }))
-                | Write(WriteKind::MutableBorrow(borrow_kind @ BorrowKind::Unique))
-                | Write(WriteKind::MutableBorrow(borrow_kind @ BorrowKind::Mut { .. })) =>
+            | Reservation(WriteKind::MutableBorrow(borrow_kind @ BorrowKind::Mut { .. }))
+            | Write(WriteKind::MutableBorrow(borrow_kind @ BorrowKind::Unique))
+            | Write(WriteKind::MutableBorrow(borrow_kind @ BorrowKind::Mut { .. })) =>
             {
                 let is_local_mutation_allowed = match borrow_kind {
                     BorrowKind::Unique => LocalMutationIsAllowed::Yes,