File tree 1 file changed +5
-5
lines changed
compiler/rustc_trait_selection/src/solve
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -260,13 +260,13 @@ impl<'tcx> SearchGraph<'tcx> {
260
260
} else {
261
261
// If we don't have a provisional result yet we're in the first iteration,
262
262
// so we start with no constraints.
263
- let is_coinductive = self . stack . raw [ stack_depth. index ( ) ..]
263
+ let is_inductive = self . stack . raw [ stack_depth. index ( ) ..]
264
264
. iter ( )
265
- . all ( |entry| entry. input . value . goal . predicate . is_coinductive ( tcx) ) ;
266
- if is_coinductive {
267
- Self :: response_no_constraints ( tcx, input, Certainty :: Yes )
268
- } else {
265
+ . any ( |entry| !entry. input . value . goal . predicate . is_coinductive ( tcx) ) ;
266
+ if is_inductive {
269
267
Self :: response_no_constraints ( tcx, input, Certainty :: OVERFLOW )
268
+ } else {
269
+ Self :: response_no_constraints ( tcx, input, Certainty :: Yes )
270
270
}
271
271
} ;
272
272
}
You can’t perform that action at this time.
0 commit comments