We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8be047 commit ffaadaeCopy full SHA for ffaadae
clippy_lints/src/utils/mod.rs
@@ -867,7 +867,7 @@ pub fn return_ty<'tcx>(cx: &LateContext<'tcx>, fn_item: hir::HirId) -> Ty<'tcx>
867
cx.tcx.erase_late_bound_regions(&ret_ty)
868
}
869
870
-/// Walk into `ty` and returns `true` if any inner type is the same as `other_ty`
+/// Walks into `ty` and returns `true` if any inner type is the same as `other_ty`
871
pub fn contains_ty(ty: Ty<'_>, other_ty: Ty<'_>) -> bool {
872
ty.walk().any(|inner| match inner.unpack() {
873
GenericArgKind::Type(inner_ty) => ty::TyS::same_type(other_ty, inner_ty),
0 commit comments