diff --git a/src/Lean/Elab/Command.lean b/src/Lean/Elab/Command.lean index d10fb3da6a..fa2f3fef00 100644 --- a/src/Lean/Elab/Command.lean +++ b/src/Lean/Elab/Command.lean @@ -555,7 +555,11 @@ private def getVarDecls (s : State) : Array Syntax := instance {α} : Inhabited (CommandElabM α) where default := throw default -private def mkMetaContext : Meta.Context := { +/-- +The environment linter framework needs to be able to run linters with the same context +as `liftTermElabM`, so we expose that context as a public function here. +-/ +def mkMetaContext : Meta.Context := { config := { foApprox := true, ctxApprox := true, quasiPatternApprox := true } }