Function clippy_utils::is_diagnostic_ctor
source ยท pub fn is_diagnostic_ctor(
cx: &LateContext<'_>,
qpath: &QPath<'_>,
diagnostic_item: Symbol,
) -> bool
Expand description
Checks if a QPath
resolves to a constructor of a diagnostic item.