Skip to content

Commit 8c456fa

Browse files
adamrkjackh726
authored andcommitted
move on_subgoal_selection_floundered into pursue_answer
1 parent 47a3880 commit 8c456fa

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

chalk-engine/src/logic.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -940,14 +940,6 @@ impl<'forest, I: Interner, C: Context<I> + 'forest, CO: ContextOps<I, C> + 'fore
940940
}
941941
}
942942
None => {
943-
if floundered {
944-
// The strand floundered when trying to select a subgoal.
945-
// This will always return a `RootSearchFail`, either because the
946-
// root table floundered or we yield with `QuantumExceeded`.
947-
return NoRemainingSubgoalsResult::RootSearchFail(
948-
self.on_subgoal_selection_flounder(),
949-
);
950-
}
951943
debug!("answer is not available (or not new)");
952944

953945
// This table ned nowhere of interest
@@ -1322,12 +1314,14 @@ impl<'forest, I: Interner, C: Context<I> + 'forest, CO: ContextOps<I, C> + 'fore
13221314
&& answer.subst.value.constraints.is_empty();
13231315

13241316
if is_trivial_answer {
1317+
self.on_subgoal_selection_flounder();
13251318
None
13261319
} else {
13271320
if let Some(answer_index) = self.forest.tables[table].push_answer(answer) {
13281321
Some(answer_index)
13291322
} else {
13301323
info!("answer: not a new answer, returning None");
1324+
self.on_subgoal_selection_flounder();
13311325
None
13321326
}
13331327
}

0 commit comments

Comments
 (0)