Skip to content

Commit eaa6488

Browse files
Request "-Z unstable-options" for unstable options
Explicitly requests the "-Z unstable-options" flag if someone attempts to use a cargo option gated by it. This enhances discoverability, particularly in the instance where the user is on the nightly compiler but isn't using the flag.
1 parent 342c5f3 commit eaa6488

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libtest/cli.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ macro_rules! unstable_optflag {
213213
let opt = $matches.opt_present($option_name);
214214
if !$allow_unstable && opt {
215215
return Err(format!(
216-
"The \"{}\" flag is only accepted on the nightly compiler",
216+
"The \"{}\" flag is only accepted on the nightly compiler with -Z unstable-options",
217217
$option_name
218218
));
219219
}

0 commit comments

Comments
 (0)