Function rustc_hir_analysis::astconv::generics::check_generic_arg_count
source · pub(crate) fn check_generic_arg_count(
tcx: TyCtxt<'_>,
span: Span,
def_id: DefId,
seg: &PathSegment<'_>,
gen_params: &Generics,
gen_args: &GenericArgs<'_>,
gen_pos: GenericArgPosition,
has_self: bool,
infer_args: bool
) -> GenericArgCountResult
Expand description
Checks that the correct number of generic arguments have been provided. This is used both for datatypes and function calls.