We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6051c6f commit 0917c69Copy full SHA for 0917c69
chalk-solve/src/coherence.rs
@@ -109,6 +109,9 @@ where
109
110
let node_impls: Vec<ImplId<_>> = forest.raw_nodes().iter().map(|x| x.weight).collect();
111
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.
115
self.visit_specializations_of_trait(|less_special, more_special| {
116
// Check so that we never add multiple nodes with the same ImplId.
117
if !node_impls.contains(&less_special) && !node_impls.contains(&more_special) {
0 commit comments