Include map length in diagnostics

This commit is contained in:
Manish Goregaokar 2017-10-20 15:00:17 -07:00
parent f7f898b3b3
commit a10329f8ff
3 changed files with 11 additions and 2 deletions

View file

@ -1257,6 +1257,10 @@ impl<K, V, S> HashMap<K, V, S>
debug_assert!(elems_left == 0 || bucket.index() != start_index);
}
}
pub fn diagnostic_count_hashes(&self) -> usize {
self.table.diagnostic_count_hashes()
}
}
impl<K, V, S> PartialEq for HashMap<K, V, S>