]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_borrowck/src/borrow_set.rs
New upstream version 1.62.1+dfsg1
[rustc.git] / compiler / rustc_borrowck / src / borrow_set.rs
index 4a9904891ecad14ac4cac39b2beaea351e538f7a..7c921b850582362244a89cc297c2179805e3528b 100644 (file)
@@ -167,10 +167,6 @@ impl<'tcx> BorrowSet<'tcx> {
     crate fn get_index_of(&self, location: &Location) -> Option<BorrowIndex> {
         self.location_map.get_index_of(location).map(BorrowIndex::from)
     }
-
-    crate fn contains(&self, location: &Location) -> bool {
-        self.location_map.contains_key(location)
-    }
 }
 
 struct GatherBorrows<'a, 'tcx> {