summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/src/docs/redundant_feature_names.txt
blob: 5bd6925ed47d0e047f56d989ab22344cd7061ece (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
### What it does
Checks for feature names with prefix `use-`, `with-` or suffix `-support`

### Why is this bad?
These prefixes and suffixes have no significant meaning.

### Example
```
[features]
default = ["use-abc", "with-def", "ghi-support"]
use-abc = []  // redundant
with-def = []   // redundant
ghi-support = []   // redundant
```

Use instead:
```
[features]
default = ["abc", "def", "ghi"]
abc = []
def = []
ghi = []
```