Skip to main content

partition_by_severity

Function partition_by_severity 

Source
pub fn partition_by_severity(
    diagnostics: Vec<CompileError>,
) -> (Vec<CompileError>, Vec<CompileError>)
Expand description

Split diagnostics into (errors, warnings) by severity (ADR 0117). The build fails iff the errors half is non-empty; the warnings half surfaces but does not gate compilation. Relative order within each half is preserved.