Skip to main content

translate_diagnostics

Function translate_diagnostics 

Source
pub fn translate_diagnostics(
    diagnostics: &[RustcDiagnostic],
    source_map: &SourceMap,
    interner: &Interner,
) -> Option<LogosError>
Expand description

Translates rustc diagnostics to LOGOS errors.

Returns the first successfully translated error — the CLI’s one-error-at-a-time contract. IDE surfaces want translate_diagnostics_all.