This PR improves the consistency of error message formatting by rendering addenda of several existing error messages as labeled notes and hints.
33 lines
720 B
Text
33 lines
720 B
Text
/-!
|
|
# Deprecate `:=` for `inductive` and `structure`
|
|
-/
|
|
|
|
set_option linter.deprecated true
|
|
|
|
/--
|
|
warning: 'inductive ... :=' has been deprecated in favor of 'inductive ... where'.
|
|
|
|
Note: This linter can be disabled with `set_option linter.deprecated false`
|
|
-/
|
|
#guard_msgs in
|
|
inductive DogSound' :=
|
|
| woof
|
|
| grr
|
|
|
|
/--
|
|
warning: structure ... :=' has been deprecated in favor of 'structure ... where'.
|
|
|
|
Note: This linter can be disabled with `set_option linter.deprecated false`
|
|
-/
|
|
#guard_msgs in
|
|
structure S :=
|
|
(n : Nat)
|
|
|
|
/--
|
|
warning: class ... :=' has been deprecated in favor of 'class ... where'.
|
|
|
|
Note: This linter can be disabled with `set_option linter.deprecated false`
|
|
-/
|
|
#guard_msgs in
|
|
class C :=
|
|
(n : Nat)
|