Skip to content

Commit 27c0d92

Browse files
committed
add cfg SPEC declaration.
use name[=value] syntax. Signed-off-by: clundro <[email protected]>
1 parent 13fc33e commit 27c0d92

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)