Skip to content

Commit 681d554

Browse files
estebankMark-Simulacrum
authored andcommitted
review comment
1 parent 2790cdf commit 681d554

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
10941094

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

0 commit comments

Comments
 (0)