Module diagnostic

Source
Expand description

This module is responsible for the construction of diagnostic messages. The DiagnosticBuilder is the public stable interface, to construct messages.

Structs§

DiagnosticBuilder
This builder creates the diagnostic object which will be emitted by the driver. The documentation will showcase the messages in rustc’s console emission style, the actual display depends on the driver.

Enums§

Applicability
Indicates the confidence in the correctness of a suggestion.

Traits§

EmissionNode
Every lint emission is bound to a specific node. The node is used to determine the lint level and Span that is used for the main diagnostic message.