pub fn parse_diagnostics(stderr: &str) -> Vec<RustDiagnostic>Expand description
Parse rustc JSON diagnostics from --error-format=json output.
Each line of stderr is attempted as a JSON diagnostic object. Lines that fail to parse (e.g., non-JSON rendered output) are silently skipped.
§Example
use adk_code::diagnostics::parse_diagnostics;
let stderr = "";
let diagnostics = parse_diagnostics(stderr);
assert!(diagnostics.is_empty());