We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d270a5e commit 814d41fCopy full SHA for 814d41f
chalk-solve/src/coherence.rs
@@ -61,18 +61,6 @@ impl<I: Interner> SpecializationPriorities<I> {
61
/// Store the priority of an impl (used during construction).
62
/// Panics if we have already stored the priority for this impl.
63
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.
76
self.map.insert(impl_id, p);
77
}
78
0 commit comments