Skip to content

Commit 438c79c

Browse files
committed
docs(rustc): De-emphasize --cfg/--check-cfg note
At the suggestion of @Urgau
1 parent 9232bd2 commit 438c79c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/doc/rustc/src/check-cfg.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ development process.
1111
In order to accomplish that goal, `rustc` accepts the `--check-cfg` flag, which specifies
1212
whether to check conditions and how to check them.
1313

14-
> **Note:** No implicit expectation is added when using `--cfg`. Users are expected to
15-
pass all expected names and values using the _check cfg specification_.
16-
1714
> **Note:** For interacting with this through Cargo,
1815
see [Cargo Specifics](check-cfg/cargo-specifics.md) page.
1916

@@ -36,6 +33,9 @@ where `name` is a bare identifier (has no quotes) and each `"value"` term is a q
3633
string. `name` specifies the name of the condition, such as `feature` or `my_cfg`.
3734
`"value"` specify one of the value of that condition name.
3835

36+
> **Note:** No implicit expectation is added when using `--cfg`. Users are expected to
37+
pass all expected names and values using the _check cfg specification_.
38+
3939
When the `cfg(...)` option is specified, `rustc` will check every[^reachable]:
4040
- `#[cfg(name = "value")]` attribute
4141
- `#[cfg_attr(name = "value")]` attribute

0 commit comments

Comments
 (0)