Module diagnostic_items

Source
Expand description

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:

  • Traits like Debug, that have no bearing on language semantics

  • Compiler internal types like Ty and TyCtxt

Functionsยง

all_diagnostic_items ๐Ÿ”’
Traverse and collect all the diagnostic items in all crates.
collect_item ๐Ÿ”’
diagnostic_items ๐Ÿ”’
Traverse and collect the diagnostic items in the current
extract ๐Ÿ”’
Extract the first rustc_diagnostic_item = "$name" out of a list of attributes.
observe_item ๐Ÿ”’
provide ๐Ÿ”’
report_duplicate_item ๐Ÿ”’