Rollup merge of #70350 - workingjubilee:patch-1, r=Dylan-DPC

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 #65770.
This commit is contained in:
Mazdak Farrokhzad 2020-03-24 21:32:32 +01:00 committed by GitHub
commit f8ec23f2c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
));
}