Skip to content

Commit 8eb9a0c

Browse files
committed
Auto merge of #11504 - strager:fix-profile-doc, r=weihanglo
fix(docs): add required "inherits" option to example profile ## What does this PR try to resolve? I copy-pasted then modified the example [profile.<name>] section in Cargo's docs. I was met with the following error: > error: profile quick-build-incremental is missing an inherits directive (inherits is required for all profiles except dev or release) ## How should we test and review this PR? Copy-paste the new docs into a `Cargo.toml` file, tweak, then try to use the new profile (`cargo build --profile mynewprofile`). ## Additional information None
2 parents 8681a5a + 80bc392 commit 8eb9a0c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/doc/src/reference/config.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ known-hosts = ["..."] # known SSH host keys
121121
# Same keys as for [patch] in Cargo.toml
122122

123123
[profile.<name>] # Modify profile settings via config.
124+
inherits = "dev" # Inherits settings from [profile.dev].
124125
opt-level = 0 # Optimization level.
125126
debug = true # Include debug info.
126127
split-debuginfo = '...' # Debug info splitting behavior.

0 commit comments

Comments
 (0)