File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -179,6 +179,12 @@ trait SolveIterationHelpers<I: Interner>: SolveDatabase<I> {
179
179
} else {
180
180
debug ! ( "Error" ) ;
181
181
}
182
+
183
+ if let Some ( ( cur_solution, _) ) = & cur_solution {
184
+ if cur_solution. is_trivial_and_always_true ( self . interner ( ) ) {
185
+ break ;
186
+ }
187
+ }
182
188
}
183
189
184
190
if let Some ( ( s, _) ) = cur_solution {
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ impl<I: Interner> Solution<I> {
101
101
Solution :: Ambig ( guidance)
102
102
}
103
103
104
- fn is_trivial_and_always_true ( & self , interner : I ) -> bool {
104
+ pub fn is_trivial_and_always_true ( & self , interner : I ) -> bool {
105
105
match self {
106
106
Solution :: Unique ( constrained_subst) => {
107
107
constrained_subst. value . subst . is_identity_subst ( interner)
You can’t perform that action at this time.
0 commit comments