1313//! behavior as long as the resulting behavior is still correct.
1414use std:: cmp:: Ordering ;
1515use std:: collections:: hash_map:: Entry ;
16- use std:: collections:: { BTreeMap , btree_map } ;
16+ use std:: collections:: { btree_map , BTreeMap } ;
1717use std:: fmt:: Debug ;
1818use std:: hash:: Hash ;
1919use std:: iter;
@@ -1262,7 +1262,7 @@ impl<D: Delegate<Cx = X>, X: Cx> SearchGraph<D> {
12621262 encountered_overflow |= stack_entry. encountered_overflow ;
12631263 debug_assert_eq ! ( stack_entry. input, input) ;
12641264
1265- // If the current goal is not the root of a cycle, we are done.
1265+ // If the current goal is not a cycle head , we are done.
12661266 //
12671267 // There are no provisional cache entries which depend on this goal.
12681268 let Some ( usages) = stack_entry. usages else {
@@ -1278,7 +1278,7 @@ impl<D: Delegate<Cx = X>, X: Cx> SearchGraph<D> {
12781278 //
12791279 // Check whether we reached a fixpoint, either because the final result
12801280 // is equal to the provisional result of the previous iteration, or because
1281- // this was only the root of either coinductive or inductive cycles, and the
1281+ // this was only the head of either coinductive or inductive cycles, and the
12821282 // final result is equal to the initial response for that case.
12831283 if self . reached_fixpoint ( cx, & stack_entry, usages, result) {
12841284 self . rebase_provisional_cache_entries ( & stack_entry, |_, result| result) ;
0 commit comments