-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate
run-make/rustdoc-shared-flags
to rmake
- Loading branch information
1 parent
98dabb6
commit 3708e3c
Showing
3 changed files
with
14 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use run_make_support::{Diff, rustc, rustdoc}; | ||
|
||
fn compare_outputs(args: &[&str]) { | ||
let rustc_output = String::from_utf8(rustc().args(args).command_output().stdout).unwrap(); | ||
let rustdoc_output = String::from_utf8(rustdoc().args(args).command_output().stdout).unwrap(); | ||
|
||
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"]); | ||
} |