Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: move toolchain to v4.5.0-rc1, and merge changes from bump/v4.5.0 #479

Merged
merged 5 commits into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fixes for lean4#2973 (#470)
Co-authored-by: Kyle Miller <kmill31415@gmail.com>
  • Loading branch information
kim-em and kmill authored Dec 20, 2023
commit a17925cb39040c461c92ce63cd152f1767b02832
6 changes: 2 additions & 4 deletions Std/Tactic/Lint/Misc.lean
Original file line number Diff line number Diff line change
Expand Up @@ -221,14 +221,12 @@ with rfl when elaboration results in a different term than the user intended. -/
return none

/--
Return a list of unused have/suffices/let_fun terms in an expression.
This actually finds all beta-redexes.
Return a list of unused `let_fun` terms in an expression.
-/
def findUnusedHaves (e : Expr) : MetaM (Array MessageData) := do
let res ← IO.mkRef #[]
forEachExpr e fun e => do
let some e := letFunAnnotation? e | return
let Expr.app (Expr.lam n t b ..) _ .. := e | return
let some (n, t, _v, b) := e.letFun? | return
if n.isInternal then return
if b.hasLooseBVars then return
let msg ← addMessageContextFull m!"unnecessary have {n.eraseMacroScopes} : {t}"
Expand Down
2 changes: 1 addition & 1 deletion lean-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
leanprover/lean4:v4.4.0-rc1
leanprover/lean4:nightly-2023-12-19