1 2 3 4 5
pub(crate) fn format_error_output(msg: &str, help: &str) -> String { // Shamelessly copied from // https://gitlab.com/CreepySkeleton/proc-macro-error/-/blob/a43601004db560a7e02ee5d45f26eda757dec259/src/diagnostic.rs#L240 format!("{msg}\n\n = help: {help}\n\n") }