summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/src/docs/deprecated_semver.txt
blob: c9574a99b2bec22abdd5b766a55f04b1dd41b494 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
### What it does
Checks for `#[deprecated]` annotations with a `since`
field that is not a valid semantic version.

### Why is this bad?
For checking the version of the deprecation, it must be
a valid semver. Failing that, the contained information is useless.

### Example
```
#[deprecated(since = "forever")]
fn something_else() { /* ... */ }
```