fix: relax default limit of set_recursion_limit

This commit is contained in:
Shunsuke Shibayama 2024-12-31 13:46:52 +09:00
parent e417e56d91
commit f41264534e
3 changed files with 5 additions and 4 deletions

View file

@ -1054,8 +1054,7 @@ impl<L: Locational> Unifier<'_, '_, '_, L> {
log!(info "trying {}sub_unify:\nmaybe_sub: {maybe_sub}\nmaybe_super: {maybe_super}", self.undoable.map_or("", |_| "undoable_"));
set_recursion_limit!(
panic,
"recursion limit exceed: sub_unify({maybe_sub}, {maybe_super})",
128
"recursion limit exceed: sub_unify({maybe_sub}, {maybe_super})"
);
// In this case, there is no new information to be gained
if maybe_sub == &Type::Never