[][src]Crate diagnostics

The diagnostics object controls the output of warnings and errors generated by the compiler during the lexing, parsing and semantic analysis phases. It also tracks the number of warnings and errors generated for flow control.

This implementation is NOT thread-safe. Messages from different threads may be interleaved.

Modules

lint

Macros

declare_lint
lint_array

Declare a static LintArray and return it as an expression.

Structs

Diagnostics

Instead of writing errors, warnings and lints generated in the different compiler stages directly to stdout, they are collected in this object.

Message

Enums

MessageLevel

Traits

Printable

This abstraction allows us to call the diagnostics API with pretty much everything.

Functions

pad_left
pad_left_with_char
u8_to_printable_representation