pub fn format_diagnostic_text(diagnostic: &Diagnostic) -> StringExpand description
Render a Diagnostic as a human-readable line. Returns
"warning: …" for diagnostics representing problems, "info: …"
for diagnostics describing successful but noteworthy outcomes.