mirror of
https://github.com/rust-lang/cargo.git
synced 2026-03-12 19:40:13 +00:00
refactor(fix): Make bug report caller responsible for newlines
This commit is contained in:
parent
8d76c4f494
commit
cd30c9bd1f
@ -134,7 +134,7 @@ impl<'a> DiagnosticPrinter<'a> {
|
||||
let issue_link = get_bug_report_url(self.workspace_wrapper);
|
||||
write!(
|
||||
self.gctx.shell().err(),
|
||||
"{}",
|
||||
"{}\n\n",
|
||||
gen_please_report_this_bug_text(issue_link)
|
||||
)?;
|
||||
Ok(())
|
||||
@ -169,7 +169,7 @@ impl<'a> DiagnosticPrinter<'a> {
|
||||
let issue_link = get_bug_report_url(self.workspace_wrapper);
|
||||
write!(
|
||||
self.gctx.shell().err(),
|
||||
"{}",
|
||||
"{}\n\n",
|
||||
gen_please_report_this_bug_text(issue_link)
|
||||
)?;
|
||||
if !errors.is_empty() {
|
||||
@ -235,7 +235,7 @@ fn gen_please_report_this_bug_text(url: &str) -> String {
|
||||
{url}\n\
|
||||
quoting the full output of this command we'd be very appreciative!\n\
|
||||
Note that you may be able to make some more progress in the near-term\n\
|
||||
fixing code with the `--broken-code` flag\n\n\
|
||||
fixing code with the `--broken-code` flag\
|
||||
",
|
||||
)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user