Skip to content

Commit 7bcb6fd

Browse files
committed
fix: populate local instances in PPContext.runMetaM
1 parent f84b4e3 commit 7bcb6fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Lean/Meta/Basic.lean

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2703,7 +2703,8 @@ def runCoreM {α : Type} (ppCtx : PPContext) (x : CoreM α) : IO α :=
27032703
{ env := ppCtx.env, ngen := { namePrefix := `_pp_uniq } }
27042704

27052705
def runMetaM {α : Type} (ppCtx : PPContext) (x : MetaM α) : IO α :=
2706-
ppCtx.runCoreM <| x.run' { lctx := ppCtx.lctx } { mctx := ppCtx.mctx }
2706+
ppCtx.runCoreM <|
2707+
(withPopulatingLocalInstances x).run' { lctx := ppCtx.lctx } { mctx := ppCtx.mctx }
27072708

27082709
end PPContext
27092710

0 commit comments

Comments
 (0)