Skip to content

Commit 814d41f

Browse files
committed
this is fine
1 parent d270a5e commit 814d41f

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

chalk-solve/src/coherence.rs

-12
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,6 @@ 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-
// FIXME:
65-
// Previously, the code was:
66-
//
67-
// ```
68-
// let old_value = self.map.insert(impl_id, p);
69-
// assert!(old_value.is_none());
70-
// ```
71-
//
72-
// `SpecializationPriority::build_specialization_forest`
73-
// has a check to ensure we don't add duplicate nodes.
74-
// *However*, The tests only pass after removing the assertion here.
75-
// We should make sure this is correct.
7664
self.map.insert(impl_id, p);
7765
}
7866
}

0 commit comments

Comments
 (0)