Skip to main content

Module errors

Module errors 

Source
Expand description

Compiler diagnostics capture via cargo check --message-format=json.

We parse the JSON stream with cargo_metadata::Message rather than scraping stderr — that gives us stable span/line/column data regardless of rustc’s human-readable formatting changes.

Structs§

DiagSpan
Diagnostic
Diagnostics

Enums§

DiagLevel

Functions§

last_error
Run cargo check and parse the diagnostic stream.
parse_message_stream
Parse a cargo check --message-format=json stream. Public for tests and for consumers that have already captured the stream (e.g. a Cargo hook).