mirror of
https://github.com/servo/servo.git
synced 2025-07-03 05:23:38 +01:00
Report hash value at HashMap corruption location.
This commit is contained in:
parent
07e9794306
commit
f7f898b3b3
3 changed files with 27 additions and 5 deletions
|
@ -1339,6 +1339,12 @@ impl<'a, K: Debug, V: Debug> fmt::Debug for Iter<'a, K, V> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a, K: 'a, V: 'a> Iter<'a, K, V> {
|
||||
pub fn next_with_hash(&mut self) -> Option<(usize, &'a K, &'a V)> {
|
||||
self.inner.next_with_hash()
|
||||
}
|
||||
}
|
||||
|
||||
/// A mutable iterator over the entries of a `HashMap`.
|
||||
///
|
||||
/// This `struct` is created by the [`iter_mut`] method on [`HashMap`]. See its
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue