Skip to content

Commit a0fb4ac

Browse files
committed
docs(ref): Link to the more full docs on check-cfg
1 parent bd744f0 commit a0fb4ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/doc/src/reference/build-scripts.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,8 @@ identifier, the value should be a string.
261261
Add to the list of expected config names and values that is used when checking
262262
the _reachable_ cfg expressions with the [`unexpected_cfgs`][unexpected-cfgs] lint.
263263

264-
For details on the syntax of `CHECK_CFG`, see `rustc` [`--check-cfg` flag][option-check-cfg].
264+
The syntax of `CHECK_CFG` mirrors the `rustc` [`--check-cfg` flag][option-check-cfg], see
265+
[Checking conditional configurations][checking-conditional-configurations] for more details.
265266

266267
> Note: `cargo:rustc-check-cfg` (single-colon) can be used if your MSRV is below Rust 1.77
267268
@@ -285,6 +286,7 @@ avoid typos, missing check-cfg, stale cfgs...
285286
See also the
286287
[conditional compilation][conditional-compilation-example] example.
287288

289+
[checking-conditional-configurations]: ../../rustc/check-cfg.html
288290
[option-check-cfg]: ../../rustc/command-line-arguments.md#option-check-cfg
289291
[conditional-compilation-example]: build-script-examples.md#conditional-compilation
290292

0 commit comments

Comments
 (0)