pub fn get_primary_span(diag: &RustcDiagnostic) -> Option<&RustcSpan>Expand description
Extracts the primary source span from a diagnostic.
Diagnostics may have multiple spans; this returns the one marked as primary (the main error location).
pub fn get_primary_span(diag: &RustcDiagnostic) -> Option<&RustcSpan>Extracts the primary source span from a diagnostic.
Diagnostics may have multiple spans; this returns the one marked as primary (the main error location).