Skip to content

Commit 2ef3a42

Browse files
committed
(WIP) expand definition of coinductive goals
1 parent f5e06c2 commit 2ef3a42

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

chalk-solve/src/coinductive_goal.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,13 @@ impl<I: Interner> IsCoinductive<I> for Goal<I> {
2626
WhereClause::AliasEq(..) => false,
2727
},
2828
GoalData::DomainGoal(DomainGoal::WellFormed(WellFormed::Trait(..))) => true,
29-
GoalData::Quantified(QuantifierKind::ForAll, goal) => {
30-
goal.skip_binders().is_coinductive(db)
31-
}
32-
_ => false,
29+
GoalData::DomainGoal(_) => false,
30+
GoalData::Quantified(_, goal) => goal.skip_binders().is_coinductive(db),
31+
GoalData::All(..) => true, // FIXME(ndm)
32+
GoalData::Implies(_, goal) => goal.is_coinductive(db),
33+
GoalData::Not(_) => false,
34+
GoalData::EqGoal(_) => false,
35+
GoalData::CannotProve(_) => false,
3336
}
3437
}
3538
}

0 commit comments

Comments
 (0)