Skip to content

Commit

Permalink
comment code
Browse files Browse the repository at this point in the history
  • Loading branch information
pierwill committed Dec 23, 2021
1 parent 34d8011 commit 57b4e5d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chalk-solve/src/coherence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ where
node_impls.contains(&more_special),
) {
(true, true) => {
// but how do we get indices for l and m?
// get existing indices for less_special and more_special
let l = forest
.node_indices()
.find(|i| forest[*i] == less_special)
Expand All @@ -131,6 +131,7 @@ where
}
(true, false) => {
let m = forest.add_node(more_special);
// get existing index for less_special
let l = forest
.node_indices()
.find(|i| forest[*i] == less_special)
Expand All @@ -139,6 +140,7 @@ where
}
(false, true) => {
let l = forest.add_node(less_special);
// get existing index for more_special
let m = forest
.node_indices()
.find(|i| forest[*i] == more_special)
Expand Down

0 comments on commit 57b4e5d

Please sign in to comment.