Skip to content

Commit

Permalink
chore: update to Lean v4.6.0-rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
tydeu committed Feb 15, 2024
1 parent d364c8c commit 5ae885f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Alloy/Util/Command.lean
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ open Lean Elab Command
.node (.ofCommandInfo { elaborator, stx }) trees

/-- Create context info for the info tree from the current state of command elaboration. -/
def mkCommandElabContextInfo : CommandElabM ContextInfo := do
def mkCommandElabContextInfo : CommandElabM CommandContextInfo := do
let ctx ← read; let s ← get; let scope := s.scopes.head!
return {
env := s.env, fileMap := ctx.fileMap, mctx := {}, currNamespace := scope.currNamespace,
Expand All @@ -22,7 +22,7 @@ def mkCommandElabContextInfo : CommandElabM ContextInfo := do

/-- Create an info tree for an elaborator with the current command elaboration context. -/
@[inline] def mkCommandElabInfoTree (elaborator : Name) (stx : Syntax) (trees : PersistentArray InfoTree) : CommandElabM InfoTree := do
return .context (← mkCommandElabContextInfo) (mkElabInfoTree elaborator stx trees)
return .context (.commandCtx (← mkCommandElabContextInfo)) (mkElabInfoTree elaborator stx trees)

/-- Adapted from the private `elabCommandUsing` definition in `Lean.Elab.Command`. -/
def elabCommandUsing (stx : Syntax) : List (KeyedDeclsAttribute.AttributeEntry CommandElab) → CommandElabM Bool
Expand Down
2 changes: 1 addition & 1 deletion lean-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
leanprover/lean4:4.3.0
leanprover/lean4:4.6.0-rc1

0 comments on commit 5ae885f

Please sign in to comment.