rust/tests/run-make/rustdoc-shared-flags/rmake.rs

15 lines
451 B
Rust

use run_make_support::{rustc, rustdoc, Diff};
fn compare_outputs(args: &[&str]) {
let rustc_output = rustc().args(args).run().stdout_utf8();
let rustdoc_output = rustdoc().args(args).run().stdout_utf8();
Diff::new().expected_text("rustc", rustc_output).actual_text("rustdoc", rustdoc_output).run();
}
fn main() {
compare_outputs(&["-C", "help"]);
compare_outputs(&["-Z", "help"]);
compare_outputs(&["-C", "passes=list"]);
}