pub fn parse_diagnostics(output: &str) -> (Vec<CompileError>, Vec<CompileError>)Expand description
Parse cargo/rustc diagnostic output into structured errors and warnings.
Recognises the standard rustc format:
error[E0308]: mismatched types
--> src/main.rs:10:5and the warning: / note: variants. Lines without a --> span still
produce a diagnostic (with file/line/column set to None) so the
caller sees the headline message.