]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/src/docs/negative_feature_names.txt
:arrow_up: rust-analyzer
[rust.git] / src / tools / clippy / src / docs / negative_feature_names.txt
1 ### What it does
2 Checks for negative feature names with prefix `no-` or `not-`
3
4 ### Why is this bad?
5 Features are supposed to be additive, and negatively-named features violate it.
6
7 ### Example
8 ```
9 [features]
10 default = []
11 no-abc = []
12 not-def = []
13
14 ```
15 Use instead:
16 ```
17 [features]
18 default = ["abc", "def"]
19 abc = []
20 def = []
21
22 ```