Skip to content

Commit

Permalink
Verify in DiagnosticHashMap::drop.
Browse files Browse the repository at this point in the history
  • Loading branch information
bholley committed Oct 11, 2017
1 parent 528d0fb commit c9b5ffb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/hashglobe/src/diagnostic.rs
Expand Up @@ -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();
}
}

Expand Down

0 comments on commit c9b5ffb

Please sign in to comment.