]> git.lizzy.rs Git - rust.git/blob - src/docs/redundant_feature_names.txt
Auto merge of #9425 - kraktus:patch-1, r=xFrednet
[rust.git] / src / docs / redundant_feature_names.txt
1 ### What it does
2 Checks for feature names with prefix `use-`, `with-` or suffix `-support`
3
4 ### Why is this bad?
5 These prefixes and suffixes have no significant meaning.
6
7 ### Example
8 ```
9 [features]
10 default = ["use-abc", "with-def", "ghi-support"]
11 use-abc = []  // redundant
12 with-def = []   // redundant
13 ghi-support = []   // redundant
14 ```
15
16 Use instead:
17 ```
18 [features]
19 default = ["abc", "def", "ghi"]
20 abc = []
21 def = []
22 ghi = []
23 ```