pub(crate) fn replace_self(ty: &Type, self_ty: Option<&Type>) -> Type
ty with Self replaced by self_ty (an impl method’s wrapper is a free function, where Self names nothing).
ty
Self
self_ty