aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/hashglobe/src/diagnostic.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/hashglobe/src/diagnostic.rs b/components/hashglobe/src/diagnostic.rs
index 05a044b0246..0c4df266b34 100644
--- a/components/hashglobe/src/diagnostic.rs
+++ b/components/hashglobe/src/diagnostic.rs
@@ -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();
}
}