]> git.lizzy.rs Git - rust.git/blob - src/docs/deprecated_semver.txt
Auto merge of #9425 - kraktus:patch-1, r=xFrednet
[rust.git] / src / docs / deprecated_semver.txt
1 ### What it does
2 Checks for `#[deprecated]` annotations with a `since`
3 field that is not a valid semantic version.
4
5 ### Why is this bad?
6 For checking the version of the deprecation, it must be
7 a valid semver. Failing that, the contained information is useless.
8
9 ### Example
10 ```
11 #[deprecated(since = "forever")]
12 fn something_else() { /* ... */ }
13 ```