Skip to content

Commit

Permalink
Request "-Z unstable-options" for unstable options
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
workingjubilee authored Mar 24, 2020
1 parent 342c5f3 commit eaa6488
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libtest/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ macro_rules! unstable_optflag {
let opt = $matches.opt_present($option_name);
if !$allow_unstable && opt {
return Err(format!(
"The \"{}\" flag is only accepted on the nightly compiler",
"The \"{}\" flag is only accepted on the nightly compiler with -Z unstable-options",
$option_name
));
}
Expand Down

0 comments on commit eaa6488

Please sign in to comment.