2024-07-29 15:37:45 -04:00
|
|
|
// Calling rustdoc with no arguments, which should bring up a help menu, used to
|
|
|
|
// cause an error as rustdoc expects an input file. Fixed in #98331, this test
|
|
|
|
// ensures the output of rustdoc's help menu is as expected.
|
|
|
|
// See https://github.com/rust-lang/rust/issues/88756
|
|
|
|
|
2025-02-24 09:52:53 +01:00
|
|
|
use run_make_support::{diff, rustdoc};
|
2024-07-29 15:37:45 -04:00
|
|
|
|
|
|
|
fn main() {
|
2025-02-24 09:52:53 +01:00
|
|
|
let out = rustdoc().run().stdout_utf8();
|
2024-07-29 15:37:45 -04:00
|
|
|
diff()
|
|
|
|
.expected_file("output-default.stdout")
|
|
|
|
.actual_text("actual", out)
|
|
|
|
// replace the channel type in the URL with $CHANNEL
|
|
|
|
.normalize(r"nightly/|beta/|stable/|1\.[0-9]+\.[0-9]+/", "$$CHANNEL/")
|
|
|
|
.run();
|
|
|
|
}
|