Skip to content

Commit cdd093e

Browse files
authored
Merge pull request #86 from chrissimpkins/concise-report
Update final report: new data, elimination of extra Markdown formatting, updated instructions
2 parents 6baf139 + 4f45bd9 commit cdd093e

File tree

1 file changed

+24
-19
lines changed

1 file changed

+24
-19
lines changed

src/main.rs

+24-19
Original file line numberDiff line numberDiff line change
@@ -689,19 +689,18 @@ fn print_final_report(
689689
#[rustfmt::skip]
690690
eprintln!("{}", "==================================================================================".dimmed());
691691
#[rustfmt::skip]
692-
eprintln!("{}", "= Please open an issue on Rust's github repository =".dimmed());
692+
eprintln!("{}", "= Please file this regression report on the rust-lang/rust GitHub repository =".dimmed());
693693
#[rustfmt::skip]
694-
eprintln!("{}", "= https://github.com/rust-lang/rust/issues/new =".dimmed());
694+
eprintln!("{}", "= New issue: https://github.com/rust-lang/rust/issues/new =".dimmed());
695695
#[rustfmt::skip]
696-
eprintln!("{}", "= Below you will find a text that would serve as a starting point of your report =".dimmed());
696+
eprintln!("{}", "= Known issues: https://github.com/rust-lang/rust/issues =".dimmed());
697+
#[rustfmt::skip]
698+
eprintln!("{}", "= Copy and paste the text below into the issue report thread. Thanks! =".dimmed());
697699
#[rustfmt::skip]
698700
eprintln!("{}", "==================================================================================".dimmed());
699701

700702
eprintln!("");
701703

702-
eprintln!("# Regression found in the compiler");
703-
eprintln!("");
704-
705704
let (start, end) = searched_range(cfg, nightly_toolchains);
706705

707706
eprintln!("searched nightlies: from {} to {}", start, end);
@@ -719,24 +718,30 @@ fn print_final_report(
719718
ci_toolchains[*ci_found],
720719
);
721720

722-
eprintln!("source code: URL OF A REPOSITORY THAT REPRODUCES THE ERROR");
723-
724721
eprintln!("");
725-
726-
eprintln!("## Instructions");
727-
eprintln!("");
728-
eprintln!("Please give the steps for how to build your repository (platform, system dependencies, etc.)");
729-
730-
eprintln!("## Error");
722+
eprintln!("<details>");
723+
eprintln!(
724+
"<summary>bisected with <a href='{}'>cargo-bisect-rustc</a> v{}</summary>",
725+
env!("CARGO_PKG_REPOSITORY"),
726+
env!("CARGO_PKG_VERSION"),
727+
);
731728
eprintln!("");
732-
eprintln!("<details><summary>COLLAPSIBLE ERROR STACKTRACE</summary>");
733-
eprintln!("<p>");
734729
eprintln!("");
730+
if let Some(host) = option_env!("HOST") {
731+
eprintln!("Host triple: {}", host);
732+
}
733+
734+
eprintln!("Reproduce with:");
735735
eprintln!("```bash");
736-
eprintln!("Paste the error the compiler is giving");
737-
eprintln!("```");
736+
eprint!("cargo bisect-rustc ");
737+
for (index, arg) in env::args_os().enumerate() {
738+
if index > 1 {
739+
eprint!("{} ", arg.to_string_lossy());
740+
}
741+
}
738742
eprintln!("");
739-
eprintln!("</p></details>");
743+
eprintln!("```");
744+
eprintln!("</details>");
740745
}
741746

742747
struct NightlyFinderIter {

0 commit comments

Comments
 (0)