pub fn is_type_diagnostic_item(
    cx: &LateContext<'_>,
    ty: Ty<'_>,
    diag_item: Symbol
) -> bool
Expand description

Checks if the type is equal to a diagnostic item. To check if a type implements a trait marked with a diagnostic item use implements_trait.

For a further exploitation what diagnostic items are see diagnostic items in rustc-dev-guide.


If you change the signature, remember to update the internal lint MatchTypeOnDiagItem