@@ -422,7 +422,7 @@ pub(crate) fn check_generic_arg_count(
422422 let named_type_param_count = param_counts. types - has_self as usize - synth_type_param_count;
423423 let named_const_param_count = param_counts. consts ;
424424 let infer_lifetimes =
425- ( gen_pos != GenericArgPosition :: Type || seg. infer_args ) && !gen_args. has_lifetime_params ( ) ;
425+ ( gen_pos != GenericArgPosition :: Type || seg. infer_args ) && !gen_args. has_lifetime_args ( ) ;
426426
427427 if gen_pos != GenericArgPosition :: Type
428428 && let Some ( c) = gen_args. constraints . first ( )
@@ -472,7 +472,7 @@ pub(crate) fn check_generic_arg_count(
472472
473473 let min_expected_lifetime_args = if infer_lifetimes { 0 } else { param_counts. lifetimes } ;
474474 let max_expected_lifetime_args = param_counts. lifetimes ;
475- let num_provided_lifetime_args = gen_args. num_lifetime_params ( ) ;
475+ let num_provided_lifetime_args = gen_args. num_lifetime_args ( ) ;
476476
477477 let lifetimes_correct = check_lifetime_args (
478478 min_expected_lifetime_args,
@@ -596,7 +596,7 @@ pub(crate) fn check_generic_arg_count(
596596 - default_counts. consts
597597 } ;
598598 debug ! ( ?expected_min) ;
599- debug ! ( arg_counts. lifetimes=?gen_args. num_lifetime_params ( ) ) ;
599+ debug ! ( arg_counts. lifetimes=?gen_args. num_lifetime_args ( ) ) ;
600600
601601 let provided = gen_args. num_generic_params ( ) ;
602602
@@ -606,7 +606,7 @@ pub(crate) fn check_generic_arg_count(
606606 named_const_param_count + named_type_param_count + synth_type_param_count,
607607 provided,
608608 param_counts. lifetimes + has_self as usize ,
609- gen_args. num_lifetime_params ( ) ,
609+ gen_args. num_lifetime_args ( ) ,
610610 )
611611 } ;
612612
@@ -640,15 +640,15 @@ pub(crate) fn prohibit_explicit_late_bound_lifetimes(
640640 let param_counts = def. own_counts ( ) ;
641641
642642 if let Some ( span_late) = def. has_late_bound_regions
643- && args. has_lifetime_params ( )
643+ && args. has_lifetime_args ( )
644644 {
645645 let msg = "cannot specify lifetime arguments explicitly \
646646 if late bound lifetime parameters are present";
647647 let note = "the late bound lifetime parameter is introduced here" ;
648648 let span = args. args [ 0 ] . span ( ) ;
649649
650650 if position == GenericArgPosition :: Value ( IsMethodCall :: No )
651- && args. num_lifetime_params ( ) != param_counts. lifetimes
651+ && args. num_lifetime_args ( ) != param_counts. lifetimes
652652 {
653653 struct_span_code_err ! ( cx. dcx( ) , span, E0794 , "{}" , msg)
654654 . with_span_note ( span_late, note)
0 commit comments