Skip to content

Commit 879c93f

Browse files
committed
chore: use realizeGlobalConstNoOverloadWithInfo
closes #10427 closes #10426
1 parent cdaa827 commit 879c93f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ def elabGrindPattern : CommandElab := fun stx => do
3535
| _ => throwUnsupportedSyntax
3636
where
3737
go (thmName : TSyntax `ident) (terms : Syntax.TSepArray `term ",") (kind : AttributeKind) : CommandElabM Unit := liftTermElabM do
38-
let declName ← resolveGlobalConstNoOverload thmName
39-
discard <| addTermInfo thmName (← mkConstWithLevelParams declName)
38+
let declName ← realizeGlobalConstNoOverloadWithInfo thmName
4039
let info ← getConstVal declName
4140
forallTelescope info.type fun xs _ => do
4241
let patterns ← terms.getElems.mapM fun term => do

0 commit comments

Comments
 (0)