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.