Skip to main content

project_failure_short_lines

Function project_failure_short_lines 

Source
pub fn project_failure_short_lines(failure: &ProjectFailure) -> Vec<String>
Expand description

The string form of print_project_failure_short: one path:line:col: severity[category]: message line per attributed error (an unattributed project-level error falls back to severity[category]: message). Backs both the printer above and the bynkc test --format json compile-error document, whose diagnostics the VS Code bynkc problem-matcher re-parses — each Vec entry is exactly one line by that contract, so unlike the other renderers in this file this one deliberately does not grow note/label continuation lines (finding #47): doing so would break a machine consumer that re-parses every entry as a single diagnostic line.

The flattening layer (ADR 0100): it delegates the per-error formatting to bynk_render::short_line / bynk_render::severity_word, and the attribution lookup to the crate-private attributed_snapshot (finding #48).