X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_borrowck%2Fsrc%2Fborrow_set.rs;h=7c921b850582362244a89cc297c2179805e3528b;hb=2300401fb0a44966a2159dd0a69762b18fd89345;hp=4a9904891ecad14ac4cac39b2beaea351e538f7a;hpb=50a66b75dcfb69fd23b1dca441d756f31d0b483f;p=rust.git diff --git a/compiler/rustc_borrowck/src/borrow_set.rs b/compiler/rustc_borrowck/src/borrow_set.rs index 4a9904891ec..7c921b85058 100644 --- a/compiler/rustc_borrowck/src/borrow_set.rs +++ b/compiler/rustc_borrowck/src/borrow_set.rs @@ -167,10 +167,6 @@ pub fn build( crate fn get_index_of(&self, location: &Location) -> Option { 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> {