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