@@ -699,9 +699,6 @@ fn print_final_report(
699
699
700
700
eprintln ! ( "" ) ;
701
701
702
- eprintln ! ( "# Regression found in the compiler" ) ;
703
- eprintln ! ( "" ) ;
704
-
705
702
let ( start, end) = searched_range ( cfg, nightly_toolchains) ;
706
703
707
704
eprintln ! ( "searched nightlies: from {} to {}" , start, end) ;
@@ -719,24 +716,30 @@ fn print_final_report(
719
716
ci_toolchains[ * ci_found] ,
720
717
) ;
721
718
722
- eprintln ! ( "source code: URL OF A REPOSITORY THAT REPRODUCES THE ERROR" ) ;
723
-
724
719
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" ) ;
720
+ eprintln ! ( "<details>" ) ;
721
+ eprintln ! (
722
+ "<summary>bisected with <a href='{}'>cargo-bisect-rustc</a> v{}</summary>" ,
723
+ env! ( "CARGO_PKG_REPOSITORY" ) ,
724
+ env! ( "CARGO_PKG_VERSION" ) ,
725
+ ) ;
731
726
eprintln ! ( "" ) ;
732
- eprintln ! ( "<details><summary>COLLAPSIBLE ERROR STACKTRACE</summary>" ) ;
733
- eprintln ! ( "<p>" ) ;
734
727
eprintln ! ( "" ) ;
728
+ if let Some ( host) = option_env ! ( "HOST" ) {
729
+ eprintln ! ( "Host triple: {}" , host) ;
730
+ }
731
+
732
+ eprintln ! ( "Reproduce with:" ) ;
735
733
eprintln ! ( "```bash" ) ;
736
- eprintln ! ( "Paste the error the compiler is giving" ) ;
737
- eprintln ! ( "```" ) ;
734
+ eprint ! ( "cargo bisect-rustc " ) ;
735
+ for ( index, arg) in env:: args_os ( ) . enumerate ( ) {
736
+ if index > 1 {
737
+ eprint ! ( "{} " , arg. to_string_lossy( ) ) ;
738
+ }
739
+ }
738
740
eprintln ! ( "" ) ;
739
- eprintln ! ( "</p></details>" ) ;
741
+ eprintln ! ( "```" ) ;
742
+ eprintln ! ( "</details>" ) ;
740
743
}
741
744
742
745
struct NightlyFinderIter {
0 commit comments