fn clean_middle_generic_args_with_bindings<'tcx>(
    cx: &mut DocContext<'tcx>,
    did: DefId,
    has_self: bool,
    bindings: ThinVec<TypeBinding>,
    ty_args: Binder<'tcx, GenericArgsRef<'tcx>>
) -> GenericArgs