Skip to main content

Module diagnostic

Module diagnostic 

Source
Expand description

What a tool finds wrong — reading a document, building a mod, serving a request — each as one record: what it is (a code), how bad, what’s wrong and where (a file, its line and column, a value’s path in it). The one kind of problem every tool says and every tool reads.

Structs§

Diagnostic
One thing found.
Errors
Every problem found reading a document, in its order.

Enums§

Code
A diagnostic’s kind: one of this crate’s Problems, or a tool’s own code (E0308, a lint’s name), kept as an Atom. Written as its code in every form.
Problem
What’s wrong with a value, as this crate finds it: each a stable code (SD…) tools can match on.
Severity
How bad it is.