mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-28 12:14:43 +00:00
fix: relax default limit of set_recursion_limit
This commit is contained in:
parent
e417e56d91
commit
f41264534e
3 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue