forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#124963 - GuillaumeGomez:migrate-rustdoc-sha…
…red-flags, r=jieyouxu Migrate `run-make/rustdoc-shared-flags` to rmake Part of rust-lang#121876. r? ``@jieyouxu``
- Loading branch information
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::{rustc, rustdoc, Diff}; | ||
|
||
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"]); | ||
} |