Skip to main content

print_project_failure

Function print_project_failure 

pub fn print_project_failure(failure: &ProjectFailure)
Expand description

v0.24 (ADR 0052 rider) / ADR 0100: the project-failure flattening layer. #521: the implementation is shared with the bynk driver in [bynk_driver]; these re-exports keep bynkc’s public API (and its callers) unchanged. Render a project build failure with per-file ariadne context, exactly as single-file mode had rich rendering. Unattributed (project-level) errors keep the plain form.

This is the flattening layer (ADR 0100): it attributes each AttributedError to its file snapshot and delegates the actual rendering to bynk_render::print_errors. The ProjectFailure → CompileError flattening stays here, above bynk-render, so there is no render → emit edge.