about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2019-06-19 09:25:20 -0700
committerEsteban Küber <esteban@kuber.com.ar>2019-06-19 09:25:48 -0700
commit8a415d145a935959d7415c16ea660d4b9dceabf0 (patch)
treedabbf7b1d4e609514a7cfcdc544443fa94955344
parent3dd3c6dcd8f6937b7f368df27efc27812600eb82 (diff)
downloadrust-8a415d145a935959d7415c16ea660d4b9dceabf0.tar.gz
rust-8a415d145a935959d7415c16ea660d4b9dceabf0.zip
review comment
-rw-r--r--src/librustc_mir/borrow_check/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_mir/borrow_check/mod.rs b/src/librustc_mir/borrow_check/mod.rs
index bb089cb4952..839eee5a91f 100644
--- a/src/librustc_mir/borrow_check/mod.rs
+++ b/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!(