@@ -699,9 +699,6 @@ fn print_final_report(
699699
700700 eprintln ! ( "" ) ;
701701
702- eprintln ! ( "# Regression found in the compiler" ) ;
703- eprintln ! ( "" ) ;
704-
705702 let ( start, end) = searched_range ( cfg, nightly_toolchains) ;
706703
707704 eprintln ! ( "searched nightlies: from {} to {}" , start, end) ;
@@ -719,24 +716,30 @@ fn print_final_report(
719716 ci_toolchains[ * ci_found] ,
720717 ) ;
721718
722- eprintln ! ( "source code: URL OF A REPOSITORY THAT REPRODUCES THE ERROR" ) ;
723-
724719 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+ ) ;
731726 eprintln ! ( "" ) ;
732- eprintln ! ( "<details><summary>COLLAPSIBLE ERROR STACKTRACE</summary>" ) ;
733- eprintln ! ( "<p>" ) ;
734727 eprintln ! ( "" ) ;
728+ if let Some ( host) = option_env ! ( "HOST" ) {
729+ eprintln ! ( "Host triple: {}" , host) ;
730+ }
731+
732+ eprintln ! ( "Reproduce with:" ) ;
735733 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+ }
738740 eprintln ! ( "" ) ;
739- eprintln ! ( "</p></details>" ) ;
741+ eprintln ! ( "```" ) ;
742+ eprintln ! ( "</details>" ) ;
740743}
741744
742745struct NightlyFinderIter {
0 commit comments