replace usage of evaluate_goal with a new add_goal

This commit is contained in:
Boxy
2023-03-16 14:58:26 +00:00
parent 7ac4b82ddd
commit ed63201224
8 changed files with 334 additions and 252 deletions

View File

@@ -39,9 +39,7 @@ impl<'tcx> SearchGraph<'tcx> {
}
pub(super) fn is_empty(&self) -> bool {
self.stack.is_empty()
&& self.provisional_cache.is_empty()
&& !self.overflow_data.did_overflow()
self.stack.is_empty() && self.provisional_cache.is_empty()
}
/// Whether we're currently in a cycle. This should only be used