Skip to content

Commit 4441ef6

Browse files
committed
Auto merge of #14312 - weihanglo:doc, r=<try>
docs: clarify `target.'cfg(...)'` doesnt respect cfg from build script
2 parents b9e432a + 81147d1 commit 4441ef6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/doc/src/reference/config.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1173,9 +1173,9 @@ rustflags = ["…", "…"]
11731173
```
11741174

11751175
`cfg` values come from those built-in to the compiler (run `rustc --print=cfg`
1176-
to view), values set by [build scripts], and extra `--cfg` flags passed to
1177-
`rustc` (such as those defined in `RUSTFLAGS`). Do not try to match on
1178-
`debug_assertions` or Cargo features like `feature="foo"`.
1176+
to view) and extra `--cfg` flags passed to `rustc` (such as those defined in
1177+
`RUSTFLAGS`). Do not try to match on `debug_assertions`, `test` or Cargo
1178+
features like `feature="foo"`.
11791179

11801180
If using a target spec JSON file, the [`<triple>`] value is the filename stem.
11811181
For example `--target foo/bar.json` would match `[target.bar]`.

0 commit comments

Comments
 (0)