Skip to content

Commit 1529682

Browse files
authored
Rollup merge of #111915 - jyn514:libtest-errors, r=thomcc
libtest: Improve error when missing `-Zunstable-options` "only accepted on the nightly compiler" is misleading when this *is* nightly.
2 parents d8b387d + e1a2ab5 commit 1529682

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/src/cli.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -404,13 +404,13 @@ fn get_format(
404404
Some("terse") => OutputFormat::Terse,
405405
Some("json") => {
406406
if !allow_unstable {
407-
return Err("The \"json\" format is only accepted on the nightly compiler".into());
407+
return Err("The \"json\" format is only accepted on the nightly compiler with -Z unstable-options".into());
408408
}
409409
OutputFormat::Json
410410
}
411411
Some("junit") => {
412412
if !allow_unstable {
413-
return Err("The \"junit\" format is only accepted on the nightly compiler".into());
413+
return Err("The \"junit\" format is only accepted on the nightly compiler with -Z unstable-options".into());
414414
}
415415
OutputFormat::Junit
416416
}

0 commit comments

Comments
 (0)