Skip to content

Commit 8a415d1

Browse files
committed
review comment
1 parent 3dd3c6d commit 8a415d1

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

src/librustc_mir/borrow_check/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
10701070

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

0 commit comments

Comments
 (0)