3
3
<!--
4
4
This page is currently (as of May 2024) the canonical place for describing the interaction
5
5
between Cargo and --check-cfg. It is placed in the rustc book rather than the Cargo book
6
- since check-cfg is primarely a Rust/rustc feature and is therefor consider by T-cargo to
6
+ since check-cfg is primarily a Rust/rustc feature and is therefore considered by T-cargo to
7
7
be an implementation detail, at least --check-cfg and the unexpected_cfgs are owned by
8
8
rustc, not Cargo.
9
9
-->
@@ -17,7 +17,7 @@ to the [Cargo book](../../cargo/index.html).
17
17
18
18
* See the [ ` [features] ` section in the Cargo book] [ cargo-features ] for more details.*
19
19
20
- With the ` [features] ` table Cargo provides a mechanism to express conditional compilation and
20
+ With the ` [features] ` table, Cargo provides a mechanism to express conditional compilation and
21
21
optional dependencies. Cargo * automatically* declares corresponding cfgs for every feature as
22
22
expected.
23
23
@@ -32,12 +32,12 @@ my_feature = []
32
32
33
33
## ` check-cfg ` in ` [lints.rust] ` table
34
34
35
- <!-- Note that T-Cargo considers `[ lints.rust.unexpected_cfgs.check-cfg] ` to be an
36
- implementation detail and is therefor not documented in Cargo, we therefor do that ourself -->
35
+ <!-- Note that T-Cargo considers `lints.rust.unexpected_cfgs.check-cfg` to be an
36
+ implementation detail and is therefore documented here and not in Cargo. -->
37
37
38
38
* See the [ ` [lints] ` section in the Cargo book] [ cargo-lints-table ] for more details.*
39
39
40
- When using a statically known custom config (ie. not dependant on a build-script), Cargo provides
40
+ When using a statically known custom config (i.e., not dependent on a build-script), Cargo provides
41
41
the custom lint config ` check-cfg ` under ` [lints.rust.unexpected_cfgs] ` .
42
42
43
43
It can be used to set custom static [ ` --check-cfg ` ] ( ../check-cfg.md ) args, it is mainly useful when
0 commit comments