Skip to content

Commit

Permalink
fix: workaround for Meta.Context.config private (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
llllvvuu authored Jan 8, 2025
1 parent ddca959 commit ad380d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion REPL/Snapshots.lean
Original file line number Diff line number Diff line change
Expand Up @@ -259,13 +259,14 @@ When pickling the `Environment`, we do so relative to its imports.
def pickle (p : ProofSnapshot) (path : FilePath) : IO Unit := do
let env := p.coreState.env
let p' := { p with coreState := { p.coreState with env := ← mkEmptyEnvironment }}
let (cfg, _) ← Lean.Meta.getConfig.toIO p'.coreContext p'.coreState p'.metaContext p'.metaState
_root_.pickle path
(env.header.imports,
env.constants.map₂,
({ p'.coreState with } : CompactableCoreState),
p'.coreContext,
p'.metaState,
({ p'.metaContext with } : CompactableMetaContext),
({ p'.metaContext with config := cfg } : CompactableMetaContext),
p'.termState,
({ p'.termContext with } : CompactableTermContext),
p'.tacticState,
Expand Down

0 comments on commit ad380d5

Please sign in to comment.