Skip to content

Commit fe13e06

Browse files
committed
Remove is_type_ref_to_diagnostic_item
1 parent 4914f59 commit fe13e06

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

clippy_utils/src/ty/mod.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -380,14 +380,6 @@ pub fn is_recursively_primitive_type(ty: Ty<'_>) -> bool {
380380
}
381381
}
382382

383-
/// Checks if the type is a reference equals to a diagnostic item
384-
pub fn is_type_ref_to_diagnostic_item(cx: &LateContext<'_>, ty: Ty<'_>, diag_item: Symbol) -> bool {
385-
match *ty.kind() {
386-
ty::Ref(_, ref_ty, _) => ref_ty.is_diag_item(cx, diag_item),
387-
_ => false,
388-
}
389-
}
390-
391383
/// Checks if the type is equal to a lang item.
392384
///
393385
/// Returns `false` if the `LangItem` is not defined.

0 commit comments

Comments
 (0)