[−][src]Module rustc_passes::diagnostic_items

Detecting diagnostic items.

Diagnostic items are items that are not language-inherent, but can reasonably be expected to exist for diagnostic purposes. This allows diagnostic authors to refer to specific items directly, without having to guess module paths and crates. Examples are:

Structs

DiagnosticItemCollector

Functions

collect

Traverse and collect the diagnostic items in the current

collect_all

Traverse and collect all the diagnostic items in all crates.

collect_item
extract

Extract the first rustc_diagnostic_item = "$name" out of a list of attributes.

provide