Skip to content

Commit 0917c69

Browse files
committed
Re-add comments
1 parent 6051c6f commit 0917c69

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

chalk-solve/src/coherence.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ where
109109

110110
let node_impls: Vec<ImplId<_>> = forest.raw_nodes().iter().map(|x| x.weight).collect();
111111

112+
// Find all specializations (implemented in coherence/solve)
113+
// Record them in the forest by adding an edge from the less special
114+
// to the more special.
112115
self.visit_specializations_of_trait(|less_special, more_special| {
113116
// Check so that we never add multiple nodes with the same ImplId.
114117
if !node_impls.contains(&less_special) && !node_impls.contains(&more_special) {

0 commit comments

Comments
 (0)