Skip to content

Commit

Permalink
rewrite unstable-flag-required to rmake
Browse files Browse the repository at this point in the history
  • Loading branch information
Oneirical committed Jul 16, 2024
1 parent 85dbe02 commit 6184592
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/tools/tidy/src/allowed_run_make_makefiles.txt
Original file line number Diff line number Diff line change
Expand Up @@ -129,5 +129,4 @@ run-make/test-benches/Makefile
run-make/thumb-none-cortex-m/Makefile
run-make/thumb-none-qemu/Makefile
run-make/translation/Makefile
run-make/unstable-flag-required/Makefile
run-make/x86_64-fortanix-unknown-sgx-lvi/Makefile
4 changes: 0 additions & 4 deletions tests/run-make/unstable-flag-required/Makefile

This file was deleted.

12 changes: 12 additions & 0 deletions tests/run-make/unstable-flag-required/rmake.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// The flag `--output-format` is unauthorized on beta and stable releases, which led
// to confusion for maintainers doing testing on nightly. Tying it to an unstable flag
// elucidates this, and this test checks that `--output-format` cannot be passed on its
// own.
// See https://github.com/rust-lang/rust/pull/82497

use run_make_support::{diff, rustdoc};

fn main() {
let out = rustdoc().output_format("json").input("x.html").run_fail().stderr_utf8();
diff().expected_file("output-format-json.stderr").actual_text("actual-json", out).run();
}

0 comments on commit 6184592

Please sign in to comment.