Function clippy_utils::is_ty_param_diagnostic_item[−][src]

pub fn is_ty_param_diagnostic_item<'tcx>(
    cx: &LateContext<'_>,
    qpath: &QPath<'tcx>,
    item: Symbol
) -> Option<&'tcx Ty<'tcx>>
Expand description

Checks if the first type parameter is a diagnostic item.