mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-27 11:59:05 +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
|
@ -361,8 +361,7 @@ impl Context {
|
|||
pub(crate) fn structural_supertype_of(&self, lhs: &Type, rhs: &Type) -> bool {
|
||||
set_recursion_limit!(
|
||||
panic,
|
||||
"recursion limit exceed: structural_supertype_of({lhs}, {rhs})",
|
||||
128
|
||||
"recursion limit exceed: structural_supertype_of({lhs}, {rhs})"
|
||||
);
|
||||
match (lhs, rhs) {
|
||||
// Proc :> Func if params are compatible
|
||||
|
|
|
@ -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