aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBobby Holley <bobbyholley@gmail.com>2017-10-11 10:24:00 -0700
committerBobby Holley <bobbyholley@gmail.com>2017-10-11 10:24:00 -0700
commitc9b5ffb58691dc30e370a989dd0a23aad6b26a4a (patch)
tree0cf98685b19b58d4913fe956e4a4814fd1f77c38
parent528d0fb40939311625dd977b52e879758d6f6aab (diff)
downloadservo-c9b5ffb58691dc30e370a989dd0a23aad6b26a4a.tar.gz
servo-c9b5ffb58691dc30e370a989dd0a23aad6b26a4a.zip
Verify in DiagnosticHashMap::drop.
-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();
}
}