Function clippy_utils::ty::is_type_diagnostic_item [−][src]
pub fn is_type_diagnostic_item(
cx: &LateContext<'_>,
ty: Ty<'_>,
diag_item: Symbol
) -> boolExpand description
Checks if the type is equal to a diagnostic item
If you change the signature, remember to update the internal lint MatchTypeOnDiagItem