diff --git a/src/map/core.rs b/src/map/core.rs index 6479135d..50ebebea 100644 --- a/src/map/core.rs +++ b/src/map/core.rs @@ -44,7 +44,8 @@ fn equivalent<'a, K, V, Q: ?Sized + Equivalent>( #[inline] fn erase_index(table: &mut RawTable, hash: HashValue, index: usize) { - table.erase_entry(hash.get(), move |&i| i == index); + let erased = table.erase_entry(hash.get(), move |&i| i == index); + debug_assert!(erased); } #[inline]