review comment
This commit is contained in:
parent
3dd3c6dcd8
commit
8a415d145a
1 changed files with 1 additions and 1 deletions
|
@ -1070,7 +1070,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
|
||||||
|
|
||||||
(Reservation(WriteKind::MutableBorrow(bk)), BorrowKind::Shallow)
|
(Reservation(WriteKind::MutableBorrow(bk)), BorrowKind::Shallow)
|
||||||
| (Reservation(WriteKind::MutableBorrow(bk)), BorrowKind::Shared) if {
|
| (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];
|
let bi = this.borrow_set.location_map[&location];
|
||||||
debug!(
|
debug!(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue