Skip to content

Commit 2ad20e8

Browse files
committed
tidy fixes
1 parent cbde62c commit 2ad20e8

File tree

1 file changed

+2
-2
lines changed
  • src/librustc_mir/borrow_check

1 file changed

+2
-2
lines changed

src/librustc_mir/borrow_check/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1576,10 +1576,12 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
15761576
err.emit();
15771577
},
15781578
Reservation(WriteKind::Mutate) | Write(WriteKind::Mutate) => {
1579+
15791580
if let Err(place_err) = self.is_mutable(place, is_local_mutation_allowed) {
15801581
error_reported = true;
15811582
let mut err_info = None;
15821583
match *place_err {
1584+
15831585
Place::Projection(box Projection {
15841586
ref base, elem:ProjectionElem::Deref}) => {
15851587
match *base {
@@ -1641,9 +1643,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
16411643
);
16421644
}
16431645
}
1644-
16451646
Activation(..) => {} // permission checks are done at Reservation point.
1646-
16471647
Read(ReadKind::Borrow(BorrowKind::Unique))
16481648
| Read(ReadKind::Borrow(BorrowKind::Mut { .. }))
16491649
| Read(ReadKind::Borrow(BorrowKind::Shared))

0 commit comments

Comments
 (0)