Skip to content

Commit cb68d55

Browse files
committed
Use proper deprecation syntax
1 parent cdb7347 commit cb68d55

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

Mathlib/Tactic/Linter/Whitespace.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ public register_option linter.style.whitespace : Bool := {
4343
}
4444

4545
/-- Deprecated in favour of `linter.style.whitespace` -/
46-
@[deprecated linter.style.whitespace (since := "2026-01-07")]
4746
public register_option linter.style.commandStart : Bool := {
4847
defValue := false
4948
descr := "deprecated: use the `linter.style.whitespace` option instead"
49+
deprecation? := some { since := "2026-01-07", text? := "use the `linter.style.whitespace` option instead" }
5050
}
5151

5252
/-- If the `linter.style.whitespace.verbose` option is `true`, the `whitespace` linter

MathlibTest/Linter/Whitespace.lean

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,16 @@ section
1010

1111
set_option linter.style.setOption true
1212

13+
/--
14+
warning: `linter.style.commandStart` has been deprecated: use the `linter.style.whitespace` option instead
15+
-/
1316
#guard_msgs in
1417
set_option linter.style.commandStart true
1518

19+
/--
20+
warning: `linter.style.commandStart` has been deprecated: use the `linter.style.whitespace` option instead
21+
-/
22+
#guard_msgs in
1623
set_option linter.style.commandStart true in
1724
example : Nat := 0
1825

0 commit comments

Comments
 (0)