mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Auto merge of #18829 - bholley:verify_in_drop, r=Manishearth
Verify in DiagnosticHashMap::drop This will let us reason better about the drop_in_place crashes. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18829) <!-- Reviewable:end -->
This commit is contained in:
commit
882b22b606
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