Skip to content

Commit 4a3638e

Browse files
committed
feat: do not recover
1 parent a81701f commit 4a3638e

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/Lean/Elab/Tactic/Grind/Basic.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ def mkEvalTactic' (elaborator : Name) (params : Params) : TermElabM (Goal → TS
354354
-- **Note**: we discard changes to `Term.State`
355355
let (subgoals, grindState') ← Term.TermElabM.run' (ctx := termCtx) (s := termState) do
356356
let (_, s) ← GrindTacticM.run
357-
(ctx := { methods, ctx := grindCtx, params, elaborator })
357+
(ctx := { recover := false, methods, ctx := grindCtx, params, elaborator })
358358
(s := { state := grindState, goals := [goal] }) do
359359
evalGrindTactic stx.raw
360360
pruneSolvedGoals

src/Lean/Meta/Tactic/Grind/Action.lean

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,11 @@ def checkSeqAt (s? : Option SavedState) (goal : Goal) (seq : List TGrind) : Grin
281281
s.restore
282282
-- **Note**: Ensure tracing is disabled.
283283
withTheReader Grind.Context (fun ctx => { ctx with config.trace := false }) do
284-
let subgoals ← evalTactic goal tac
285-
return subgoals.isEmpty
284+
try
285+
let subgoals ← evalTactic goal tac
286+
return subgoals.isEmpty
287+
catch _ =>
288+
return false
286289

287290
/--
288291
Helper action that checks whether the resulting tactic script produced by its continuation

0 commit comments

Comments
 (0)