Skip to content

Commit 8cec7ba

Browse files
committed
Use full path for Fn in aggregate and solve since Fn is also a chalk_ir type
1 parent 257980b commit 8cec7ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

chalk-solve/src/solve.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ impl<TF: TypeFamily> Solver<TF> {
162162
&mut self,
163163
program: &dyn RustIrDatabase<TF>,
164164
goal: &UCanonical<InEnvironment<Goal<TF>>>,
165-
should_continue: impl Fn() -> bool,
165+
should_continue: impl std::ops::Fn() -> bool,
166166
) -> Option<Solution<TF>> {
167167
let ops = self.forest.context().ops(program);
168168
self.forest.solve(&ops, goal, should_continue)

chalk-solve/src/solve/slg/aggregate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ impl<TF: TypeFamily> context::AggregateOps<SlgContext<TF>> for SlgContextOps<'_,
1919
&self,
2020
root_goal: &UCanonical<InEnvironment<Goal<TF>>>,
2121
mut answers: impl context::AnswerStream<SlgContext<TF>>,
22-
should_continue: impl Fn() -> bool,
22+
should_continue: impl std::ops::Fn() -> bool,
2323
) -> Option<Solution<TF>> {
2424
let CompleteAnswer { subst, ambiguous } = match answers.next_answer(|| should_continue()) {
2525
AnswerResult::NoMoreSolutions => {

0 commit comments

Comments
 (0)