pub(crate) fn ty_args_to_args<'tcx>(
    cx: &mut DocContext<'tcx>,
    ty_args: Binder<'tcx, &'tcx [GenericArg<'tcx>]>,
    has_self: bool,
    owner: DefId
) -> Vec<GenericArg>