Skip to content

Commit 78cb453

Browse files
committed
document include in bootstrap.example.toml
Signed-off-by: onur-ozkan <[email protected]>
1 parent 4e80659 commit 78cb453

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Diff for: bootstrap.example.toml

+5
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
# Note that this has no default value (x.py uses the defaults in `bootstrap.example.toml`).
2020
#profile = <none>
2121

22+
# Inherits configuration values from different configuration files (a.k.a. config extensions).
23+
# Supports absolute paths, and uses the current directory (where the bootstrap was invoked)
24+
# as the base if the given path is not absolute.
25+
#include = []
26+
2227
# Keeps track of major changes made to this configuration.
2328
#
2429
# This value also represents ID of the PR that caused major changes. Meaning,

Diff for: src/doc/rustc-dev-guide/src/building/suggested.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ include = ["cross.toml"]
5353

5454
You can also include extensions within extensions recursively.
5555

56-
**Note:** In the `include` field, the overriding logic follows a right-to-left order. Also, the outer
57-
extension/config always overrides the inner ones.
56+
**Note:** In the `include` field, the overriding logic follows a right-to-left order. For example,
57+
in `include = ["a.toml", "b.toml"]`, extension `b.toml` overrides `a.toml`. Also, parent extensions
58+
always overrides the inner ones.
5859

5960
## Configuring `rust-analyzer` for `rustc`
6061

0 commit comments

Comments
 (0)