Skip to content

Commit cb29ec9

Browse files
author
Yuki Okushi
authored
Rollup merge of rust-lang#106653 - ehuss:allow-features-help, r=nilstrieb
Fix help docs for -Zallow-features The arguments for -Zallow-features are comma-separated (`parse_opt_comma_list`), not space separated (`parse_list`).
2 parents 6adc6f4 + d0c47bd commit cb29ec9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_session/src/options.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,7 @@ options! {
12411241

12421242
// tidy-alphabetical-start
12431243
allow_features: Option<Vec<String>> = (None, parse_opt_comma_list, [TRACKED],
1244-
"only allow the listed language features to be enabled in code (space separated)"),
1244+
"only allow the listed language features to be enabled in code (comma separated)"),
12451245
always_encode_mir: bool = (false, parse_bool, [TRACKED],
12461246
"encode MIR of all functions into the crate metadata (default: no)"),
12471247
asm_comments: bool = (false, parse_bool, [TRACKED],

src/test/rustdoc-ui/z-help.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-Z allow-features=val -- only allow the listed language features to be enabled in code (space separated)
1+
-Z allow-features=val -- only allow the listed language features to be enabled in code (comma separated)
22
-Z always-encode-mir=val -- encode MIR of all functions into the crate metadata (default: no)
33
-Z asm-comments=val -- generate comments into the assembly (may change behavior) (default: no)
44
-Z assert-incr-state=val -- assert that the incremental cache is in given state: either `loaded` or `not-loaded`.

0 commit comments

Comments
 (0)