Skip to content

Commit

Permalink
Rollup merge of #111915 - jyn514:libtest-errors, r=thomcc
Browse files Browse the repository at this point in the history
libtest: Improve error when missing `-Zunstable-options`

"only accepted on the nightly compiler" is misleading when this *is* nightly.
  • Loading branch information
Manishearth authored May 24, 2023
2 parents d0b3ebe + 9314ed0 commit 8038606
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions library/test/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,13 +404,13 @@ fn get_format(
Some("terse") => OutputFormat::Terse,
Some("json") => {
if !allow_unstable {
return Err("The \"json\" format is only accepted on the nightly compiler".into());
return Err("The \"json\" format is only accepted on the nightly compiler with -Z unstable-options".into());
}
OutputFormat::Json
}
Some("junit") => {
if !allow_unstable {
return Err("The \"junit\" format is only accepted on the nightly compiler".into());
return Err("The \"junit\" format is only accepted on the nightly compiler with -Z unstable-options".into());
}
OutputFormat::Junit
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
error: The "json" format is only accepted on the nightly compiler
error: The "json" format is only accepted on the nightly compiler with -Z unstable-options

0 comments on commit 8038606

Please sign in to comment.