Skip to content

Commit 891a59f

Browse files
authored
chore: bump toolchain to v4.31.0-rc1 (#864)
1 parent 83b4c6c commit 891a59f

8 files changed

Lines changed: 14 additions & 13 deletions

File tree

lake-manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "git",
66
"subDir": null,
77
"scope": "",
8-
"rev": "99ada816d9929a51132d5b5dc4f43c51f16d67d8",
8+
"rev": "08da3f6f41c075e0c18d37eb0fd417c10ed77b6e",
99
"name": "illuminate",
1010
"manifestFile": "lake-manifest.json",
1111
"inputRev": "main",
@@ -15,7 +15,7 @@
1515
"type": "git",
1616
"subDir": null,
1717
"scope": "",
18-
"rev": "a456461b368b71d2accd95234832cd9c174b5437",
18+
"rev": "d575be693add4fe9cb996968968ce42ce75c5ccd",
1919
"name": "plausible",
2020
"manifestFile": "lake-manifest.json",
2121
"inputRev": "main",

lean-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
leanprover/lean4:v4.30.0
1+
leanprover/lean4:v4.31.0-rc1

src/tests/Tests/LeanCode.lean

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ end
114114
def unusedArgFn (unused : Nat) : Nat := 0
115115
```
116116
```leanOutput unusedVar
117-
unused variable `unused`
117+
Variable name `unused` is not explicitly referenced.
118+
119+
The binding can be removed (if unused) or named `_` (if used implicitly).
118120

119121
Note: This linter can be disabled with `set_option linter.unusedVariables false`
120122
```

src/verso-blog/VersoBlog/LiterateLeanPage.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ directory that contains a toolchain file and a Lake configuration (`lakefile.tom
570570
Set the option `verso.literateMarkdown.logInlines` to `true` to see the error messages that
571571
prevented elaboration of inline elements.
572572
-/
573-
syntax "def_literate_page " ident optConfig " from " ident " in " str " as " str (" with " term)? (rewrites)? : command
573+
syntax "def_literate_page " ident Lean.Parser.Tactic.optConfig " from " ident " in " str " as " str (" with " term)? (rewrites)? : command
574574
/--
575575
Creates a post from a literate Lean module with Markdown module docstrings in it, performing a
576576
best-effort conversion from a large subset of Markdown to Verso documents. Inline code elements are
@@ -587,7 +587,7 @@ directory that contains a toolchain file and a Lake configuration (`lakefile.tom
587587
Set the option `verso.literateMarkdown.logInlines` to `true` to see the error messages that
588588
prevented elaboration of inline elements.
589589
-/
590-
syntax "def_literate_post " ident optConfig " from " ident " in " str " as " str (" with " term)? (rewrites)? : command
590+
syntax "def_literate_post " ident Lean.Parser.Tactic.optConfig " from " ident " in " str " as " str (" with " term)? (rewrites)? : command
591591

592592

593593

src/verso-blog/VersoBlog/LiterateModuleDocs.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ module {lit}`MOD` in the project directory {lit}`DIR` with title {lit}`TITLE`.
124124
(`lakefile.toml` or `lakefile.lean`), which should depend on the same version of Verso that this
125125
website is using.
126126
-/
127-
syntax "literate_page " ident optConfig " from " ident " in " str " as " str (" with " term)? : command
127+
syntax "literate_page " ident Lean.Parser.Tactic.optConfig " from " ident " in " str " as " str (" with " term)? : command
128128
/--
129129
Creates a post from a literate Lean module with Verso-based module docstrings in it. Markdown module
130130
docstrings are supported, but no attempt is made to elaborate included code.
@@ -136,7 +136,7 @@ module {lit}`MOD` in the project directory {lit}`DIR` with title {lit}`TITLE`.
136136
(`lakefile.toml` or `lakefile.lean`), which should depend on the same version of Verso that this
137137
website is using.
138138
-/
139-
syntax "literate_post " ident optConfig " from " ident " in " str " as " str (" with " term)? : command
139+
syntax "literate_post " ident Lean.Parser.Tactic.optConfig " from " ident " in " str " as " str (" with " term)? : command
140140

141141
open Verso Doc in
142142
open Lean Elab Command in
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
leanprover/lean4:v4.30.0
1+
leanprover/lean4:v4.31.0-rc1
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
leanprover/lean4:v4.30.0
1+
leanprover/lean4:v4.31.0-rc1

test-projects/website/DemoSite/Blog/Conditionals.lean

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ example : 2 < 5 := by
4949
Here's the error:
5050
```leanOutput fst
5151
unsolved goals
52-
case a.a
5352
⊢ (Nat.succ 2).le 3
5453
```
5554

@@ -254,8 +253,8 @@ example : (123123190283102938019238098 * 1234124).toString.length > 14 := by
254253
```
255254
```leanOutput traces
256255
[diag] Diagnostics
257-
[reduction] unfolded reducible declarations (max: 46, num: 1):
258-
[reduction] outParam ↦ 46
256+
[reduction] unfolded reducible declarations (max: 40, num: 1):
257+
[reduction] outParam ↦ 40
259258
[type_class] used instances (max: 54, num: 1):
260259
[type_class] Lean.Grind.CommRing.OfCommSemiring.instOfNatQ ↦ 54
261260
[reduction] Axioms (possibly imported non-exposed defs) that were tried to be unfolded (max: 22, num: 1):

0 commit comments

Comments
 (0)