This PR makes stricter requirements for the `@[deprecated]` attribute, requiring either a replacement identifier as `@[deprecated bar]` or suggestion text `@[deprecated "Past its use by date"]`, and also requires a `since := "..."` field.
17 lines
1.3 KiB
Text
17 lines
1.3 KiB
Text
deprecated.lean:5:2-5:14: warning: `[deprecated]` attribute should specify the date or library version at which the deprecation was introduced, using `(since := "...")`
|
|
deprecated.lean:8:2-8:12: warning: `[deprecated]` attribute should specify either a new name or a deprecation message
|
|
deprecated.lean:8:2-8:12: warning: `[deprecated]` attribute should specify the date or library version at which the deprecation was introduced, using `(since := "...")`
|
|
deprecated.lean:11:6-11:7: warning: `f` has been deprecated: use `g` instead
|
|
2
|
|
deprecated.lean:13:6-13:7: warning: `h` has been deprecated
|
|
1
|
|
deprecated.lean:15:13-15:15: error: unknown constant 'g1'
|
|
deprecated.lean:23:13-23:15: error: unknown constant 'g1'
|
|
deprecated.lean:27:2-27:55: warning: `[deprecated]` attribute should specify the date or library version at which the deprecation was introduced, using `(since := "...")`
|
|
deprecated.lean:30:6-30:8: warning: `f2` has been deprecated: use `Foo.g1` instead
|
|
2
|
|
2
|
|
deprecated.lean:33:6-33:8: warning: `f4` has been deprecated: use g1 instead, f4 is not a good name
|
|
2
|
|
deprecated.lean:35:2-35:12: warning: `[deprecated]` attribute should specify either a new name or a deprecation message
|
|
deprecated.lean:35:2-35:12: warning: `[deprecated]` attribute should specify the date or library version at which the deprecation was introduced, using `(since := "...")`
|