@@ -689,19 +689,18 @@ fn print_final_report(
689
689
#[ rustfmt:: skip]
690
690
eprintln ! ( "{}" , "==================================================================================" . dimmed( ) ) ;
691
691
#[ 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( ) ) ;
693
693
#[ 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( ) ) ;
695
695
#[ 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( ) ) ;
697
699
#[ rustfmt:: skip]
698
700
eprintln ! ( "{}" , "==================================================================================" . dimmed( ) ) ;
699
701
700
702
eprintln ! ( "" ) ;
701
703
702
- eprintln ! ( "# Regression found in the compiler" ) ;
703
- eprintln ! ( "" ) ;
704
-
705
704
let ( start, end) = searched_range ( cfg, nightly_toolchains) ;
706
705
707
706
eprintln ! ( "searched nightlies: from {} to {}" , start, end) ;
@@ -719,24 +718,30 @@ fn print_final_report(
719
718
ci_toolchains[ * ci_found] ,
720
719
) ;
721
720
722
- eprintln ! ( "source code: URL OF A REPOSITORY THAT REPRODUCES THE ERROR" ) ;
723
-
724
721
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
+ ) ;
731
728
eprintln ! ( "" ) ;
732
- eprintln ! ( "<details><summary>COLLAPSIBLE ERROR STACKTRACE</summary>" ) ;
733
- eprintln ! ( "<p>" ) ;
734
729
eprintln ! ( "" ) ;
730
+ if let Some ( host) = option_env ! ( "HOST" ) {
731
+ eprintln ! ( "Host triple: {}" , host) ;
732
+ }
733
+
734
+ eprintln ! ( "Reproduce with:" ) ;
735
735
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
+ }
738
742
eprintln ! ( "" ) ;
739
- eprintln ! ( "</p></details>" ) ;
743
+ eprintln ! ( "```" ) ;
744
+ eprintln ! ( "</details>" ) ;
740
745
}
741
746
742
747
struct NightlyFinderIter {
0 commit comments