Skip to content

Commit d608852

Browse files
committed
Revert "Replace assertion"
This reverts commit 0c6d806.
1 parent 6ac9d94 commit d608852

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

chalk-solve/src/coherence.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ impl<I: Interner> SpecializationPriorities<I> {
6161
/// Store the priority of an impl (used during construction).
6262
/// Panics if we have already stored the priority for this impl.
6363
fn insert(&mut self, impl_id: ImplId<I>, p: SpecializationPriority) {
64-
let old_value = self.map.insert(impl_id, p);
65-
assert!(old_value.is_none());
64+
self.map.insert(impl_id, p);
6665
}
6766
}
6867

0 commit comments

Comments
 (0)