cargo_fixit/util/
messages.rs

1pub fn gen_please_report_this_bug_text(clippy: bool) -> String {
2    format!(
3        "This likely indicates a bug in either rustc or cargo itself,\n\
4     and we would appreciate a bug report! You're likely to see\n\
5     a number of compiler warnings after this message which cargo\n\
6     attempted to fix but failed. If you could open an issue at\n\
7     {}\n\
8     quoting the full output of this command we'd be very appreciative!\n\
9     Note that you may be able to make some more progress in the near-term\n\
10     fixing code with the `--broken-code` flag\n\n\
11     ",
12        if clippy {
13            "https://github.com/rust-lang/rust-clippy/issues"
14        } else {
15            "https://github.com/rust-lang/rust/issues"
16        }
17    )
18}