diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-03-24 21:32:32 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-24 21:32:32 +0100 |
| commit | f8ec23f2c09b67dc2236973d068955a3557366c7 (patch) | |
| tree | 97e9b660696e3bb6f07afcde7920cb9551fadaa0 | |
| parent | 8d4b5ff121f31c32d3e58fd14dde1a49fc5b0d68 (diff) | |
| parent | eaa6488ca7550428ce70d6f43e906a8e36def943 (diff) | |
| download | rust-f8ec23f2c09b67dc2236973d068955a3557366c7.tar.gz rust-f8ec23f2c09b67dc2236973d068955a3557366c7.zip | |
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.
| -rw-r--r-- | src/libtest/cli.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libtest/cli.rs b/src/libtest/cli.rs index 5317063b80d..aac454c023c 100644 --- a/src/libtest/cli.rs +++ b/src/libtest/cli.rs @@ -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 )); } |
