Skip to content

Commit 62b5bea

Browse files
authored
Rollup merge of #110594 - infdahai:cfg_chore, r=jyn514
`rustc --help` add `--cfg` SPEC declaration. 1. fixes #110462 2. add spec arguments based on https://doc.rust-lang.org/reference/conditional-compilation.html
2 parents 3fbaf78 + 27c0d92 commit 62b5bea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_session/src/config.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1400,7 +1400,8 @@ The default is {DEFAULT_EDITION} and the latest stable edition is {LATEST_STABLE
14001400
pub fn rustc_short_optgroups() -> Vec<RustcOptGroup> {
14011401
vec![
14021402
opt::flag_s("h", "help", "Display this message"),
1403-
opt::multi_s("", "cfg", "Configure the compilation environment", "SPEC"),
1403+
opt::multi_s("", "cfg", "Configure the compilation environment.
1404+
SPEC supports the syntax `NAME[=\"VALUE\"]`.", "SPEC"),
14041405
opt::multi("", "check-cfg", "Provide list of valid cfg options for checking", "SPEC"),
14051406
opt::multi_s(
14061407
"L",

0 commit comments

Comments
 (0)