We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82ed96b commit 6863ff1Copy full SHA for 6863ff1
src/solve/solver.rs
@@ -136,7 +136,12 @@ impl Solver {
136
// if all the components of the cycle also have coinductive semantics, we accept
137
// the cycle `(?0: AutoTrait) :- ... :- (?0: AutoTrait)` as an infinite proof for
138
// `?0: AutoTrait` and we do not perform any substitution.
139
- if self.stack.iter().skip(index).all(|s| s.goal.is_coinductive(&*self.program)) {
+ if self.stack.iter()
140
+ .skip(index)
141
+ .map(|s| &s.goal)
142
+ .chain(Some(&goal))
143
+ .all(|g| g.is_coinductive(&*self.program))
144
+ {
145
let value = ConstrainedSubst {
146
subst: Substitution::empty(),
147
constraints: vec![],
0 commit comments