Skip to content
Permalink
Browse files

review comment

  • Loading branch information...
estebank committed Jun 19, 2019
1 parent 3dd3c6d commit 8a415d145a935959d7415c16ea660d4b9dceabf0
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/librustc_mir/borrow_check/mod.rs
@@ -1070,7 +1070,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {

(Reservation(WriteKind::MutableBorrow(bk)), BorrowKind::Shallow)
| (Reservation(WriteKind::MutableBorrow(bk)), BorrowKind::Shared) if {
tcx.migrate_borrowck() && this.borrow_set.location_map.get(&location).is_some()
tcx.migrate_borrowck() && this.borrow_set.location_map.contains_key(&location)
} => {
let bi = this.borrow_set.location_map[&location];
debug!(

0 comments on commit 8a415d1

Please sign in to comment.
You can’t perform that action at this time.