fix: Use guarded `isDefEq`
This commit is contained in:
parent
17ab2eafd8
commit
2d068ecd50
|
@ -110,7 +110,7 @@ private def collectSorrysInTree (t : Elab.InfoTree) : IO (List InfoWithContext)
|
||||||
return true
|
return true
|
||||||
ctx.runMetaM lctx do
|
ctx.runMetaM lctx do
|
||||||
let type ← Meta.inferType expr
|
let type ← Meta.inferType expr
|
||||||
Bool.not <$> Meta.isDefEq type expectedType
|
Bool.not <$> Meta.isExprDefEqGuarded type expectedType
|
||||||
| .ofTacticInfo { stx, goalsBefore, .. } =>
|
| .ofTacticInfo { stx, goalsBefore, .. } =>
|
||||||
-- The `sorry` term is distinct from the `sorry` tactic
|
-- The `sorry` term is distinct from the `sorry` tactic
|
||||||
let isSorry := stx.isOfKind `Lean.Parser.Tactic.tacticSorry
|
let isSorry := stx.isOfKind `Lean.Parser.Tactic.tacticSorry
|
||||||
|
|
Loading…
Reference in New Issue