fix: leaking isDefEqStuckExceptionId
This commit is contained in:
parent
8e159f004c
commit
27be7e6812
1 changed files with 9 additions and 6 deletions
|
|
@ -579,11 +579,14 @@ catchInternalId isDefEqStuckExceptionId
|
|||
(toLOptionM $ synthInstanceImp? type)
|
||||
(fun _ => pure LOption.undef)
|
||||
|
||||
private def synthInstanceImp (type : Expr) : MetaM Expr := do
|
||||
result? ← synthInstanceImp? type;
|
||||
match result? with
|
||||
| some result => pure result
|
||||
| none => throwError $ "failed to synthesize" ++ indentExpr type
|
||||
private def synthInstanceImp (type : Expr) : MetaM Expr :=
|
||||
catchInternalId isDefEqStuckExceptionId
|
||||
(do
|
||||
result? ← synthInstanceImp? type;
|
||||
match result? with
|
||||
| some result => pure result
|
||||
| none => throwError $ "failed to synthesize" ++ indentExpr type)
|
||||
(fun _ => throwError $ "failed to synthesize" ++ indentExpr type)
|
||||
|
||||
private def synthPendingImp (mvarId : MVarId) : MetaM Bool := do
|
||||
mvarDecl ← getMVarDecl mvarId;
|
||||
|
|
@ -593,7 +596,7 @@ match mvarDecl.kind with
|
|||
match c? with
|
||||
| none => pure false
|
||||
| some _ => do
|
||||
val? ← synthInstanceImp? mvarDecl.type;
|
||||
val? ← catchInternalId isDefEqStuckExceptionId (synthInstanceImp? mvarDecl.type) (fun _ => pure none);
|
||||
match val? with
|
||||
| none => pure false
|
||||
| some val =>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue