Skip to main content

Module diagnostics

Module diagnostics 

Source
Expand description

Project-failure rendering for the driver.

#521: the flattening layer (ADR 0100) is shared with bynkc in [bynk_driver]; this module survives as re-exports under the driver’s historical render_* names.

Functions§

print_project_warnings
v0.89 (ADR 0117): print a successful build’s non-failing warnings, with real per-file ariadne context now that a successful build’s snapshots (mirroring ProjectFailure::snapshots) make that possible. A warning whose source isn’t attributable (or doesn’t fit the snapshot) falls back to the plain warning[<category>]: <message> form.
render_project_failure
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.
render_project_failure_short
The project-failure analogue of bynk_render::print_errors_short: each attributed error is positioned against its file’s snapshot; an unattributed (project-level) error falls back to <severity>[<category>]: <message>.