mirror of
https://github.com/servo/servo.git
synced 2025-07-02 21:13:39 +01:00
Verify in DiagnosticHashMap::drop.
This commit is contained in:
parent
528d0fb409
commit
c9b5ffb586
1 changed files with 2 additions and 0 deletions
|
@ -209,7 +209,9 @@ impl<K: Hash + Eq, V, S: BuildHasher> Drop for DiagnosticHashMap<K, V, S>
|
|||
S: BuildHasher
|
||||
{
|
||||
fn drop(&mut self) {
|
||||
self.map.verify();
|
||||
debug_assert!(self.readonly, "Dropped while mutating");
|
||||
self.verify();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue