Skip to content

Commit f8ec23f

Browse files
authored
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.
2 parents 8d4b5ff + eaa6488 commit f8ec23f

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)