Skip to main content

format_diagnostic_text

Function format_diagnostic_text 

Source
pub fn format_diagnostic_text(diagnostic: &Diagnostic) -> String
Expand description

Render a Diagnostic as a human-readable line. Returns "warning: …" for diagnostics representing problems, "info: …" for diagnostics describing successful but noteworthy outcomes.