mirror of
https://github.com/servo/servo.git
synced 2025-10-09 13:09:25 +01:00
Revert "Report hash value at HashMap corruption location."
This reverts commit f7f898b3b3
.
This commit is contained in:
parent
bf69d1b460
commit
d48aa12b8d
3 changed files with 5 additions and 27 deletions
|
@ -1130,15 +1130,6 @@ impl<'a, K, V> ExactSizeIterator for Iter<'a, K, V> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a, K, V> Iter<'a, K, V> {
|
||||
pub fn next_with_hash(&mut self) -> Option<(usize, &'a K, &'a V)> {
|
||||
self.iter.next().map(|raw| unsafe {
|
||||
let (hash_ptr, pair_ptr) = raw.hash_pair();
|
||||
(*hash_ptr, &(*pair_ptr).0, &(*pair_ptr).1)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a, K, V> Iterator for IterMut<'a, K, V> {
|
||||
type Item = (&'a K, &'a mut V);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue