Skip to content

Commit

Permalink
Rollup merge of rust-lang#70350 - workingjubilee:patch-1, r=Dylan-DPC
Browse files Browse the repository at this point in the history
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.

This relates to, but does not end with or resolve, issue rust-lang#65770.
  • Loading branch information
Centril authored Mar 24, 2020
2 parents 2074aa2 + eaa6488 commit d214a2e
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 d214a2e

Please sign in to comment.