@@ -1901,14 +1901,14 @@ impl FnParam<'_> {
19011901 }
19021902}
19031903
1904- struct FnCallDiagCtxt < ' a , ' b , ' tcx > {
1905- arg_matching_ctxt : ArgMatchingCtxt < ' a , ' b , ' tcx > ,
1904+ struct FnCallDiagCtxt < ' a , ' tcx > {
1905+ arg_matching_ctxt : ArgMatchingCtxt < ' a , ' tcx > ,
19061906 errors : Vec < Error < ' tcx > > ,
19071907 matched_inputs : IndexVec < ExpectedIdx , Option < ProvidedIdx > > ,
19081908}
19091909
1910- impl < ' a , ' b , ' tcx > Deref for FnCallDiagCtxt < ' a , ' b , ' tcx > {
1911- type Target = ArgMatchingCtxt < ' a , ' b , ' tcx > ;
1910+ impl < ' a , ' tcx > Deref for FnCallDiagCtxt < ' a , ' tcx > {
1911+ type Target = ArgMatchingCtxt < ' a , ' tcx > ;
19121912
19131913 fn deref ( & self ) -> & Self :: Target {
19141914 & self . arg_matching_ctxt
@@ -1921,9 +1921,9 @@ enum ArgumentsFormatting {
19211921 Multiline { fallback_indent : String , brace_indent : String } ,
19221922}
19231923
1924- impl < ' a , ' b , ' tcx > FnCallDiagCtxt < ' a , ' b , ' tcx > {
1924+ impl < ' a , ' tcx > FnCallDiagCtxt < ' a , ' tcx > {
19251925 fn new (
1926- arg : & ' a FnCtxt < ' b , ' tcx > ,
1926+ arg : & ' a FnCtxt < ' a , ' tcx > ,
19271927 compatibility_diagonal : IndexVec < ProvidedIdx , Compatibility < ' tcx > > ,
19281928 formal_and_expected_inputs : IndexVec < ExpectedIdx , ( Ty < ' tcx > , Ty < ' tcx > ) > ,
19291929 provided_args : IndexVec < ProvidedIdx , & ' tcx Expr < ' tcx > > ,
@@ -2629,7 +2629,7 @@ impl<'a, 'b, 'tcx> FnCallDiagCtxt<'a, 'b, 'tcx> {
26292629 ( suggestions, labels, suggestion_text)
26302630 }
26312631
2632- fn label_generic_mismatches ( & self , err : & mut Diag < ' b > ) {
2632+ fn label_generic_mismatches ( & self , err : & mut Diag < ' a > ) {
26332633 self . fn_ctxt . label_generic_mismatches (
26342634 err,
26352635 self . fn_def_id ,
@@ -2805,22 +2805,22 @@ impl<'a, 'b, 'tcx> FnCallDiagCtxt<'a, 'b, 'tcx> {
28052805 }
28062806}
28072807
2808- struct ArgMatchingCtxt < ' a , ' b , ' tcx > {
2809- args_ctxt : ArgsCtxt < ' a , ' b , ' tcx > ,
2808+ struct ArgMatchingCtxt < ' a , ' tcx > {
2809+ args_ctxt : ArgsCtxt < ' a , ' tcx > ,
28102810 provided_arg_tys : IndexVec < ProvidedIdx , ( Ty < ' tcx > , Span ) > ,
28112811}
28122812
2813- impl < ' a , ' b , ' tcx > Deref for ArgMatchingCtxt < ' a , ' b , ' tcx > {
2814- type Target = ArgsCtxt < ' a , ' b , ' tcx > ;
2813+ impl < ' a , ' tcx > Deref for ArgMatchingCtxt < ' a , ' tcx > {
2814+ type Target = ArgsCtxt < ' a , ' tcx > ;
28152815
28162816 fn deref ( & self ) -> & Self :: Target {
28172817 & self . args_ctxt
28182818 }
28192819}
28202820
2821- impl < ' a , ' b , ' tcx > ArgMatchingCtxt < ' a , ' b , ' tcx > {
2821+ impl < ' a , ' tcx > ArgMatchingCtxt < ' a , ' tcx > {
28222822 fn new (
2823- arg : & ' a FnCtxt < ' b , ' tcx > ,
2823+ arg : & ' a FnCtxt < ' a , ' tcx > ,
28242824 compatibility_diagonal : IndexVec < ProvidedIdx , Compatibility < ' tcx > > ,
28252825 formal_and_expected_inputs : IndexVec < ExpectedIdx , ( Ty < ' tcx > , Ty < ' tcx > ) > ,
28262826 provided_args : IndexVec < ProvidedIdx , & ' tcx Expr < ' tcx > > ,
@@ -2951,23 +2951,23 @@ impl<'a, 'b, 'tcx> ArgMatchingCtxt<'a, 'b, 'tcx> {
29512951 }
29522952}
29532953
2954- struct ArgsCtxt < ' a , ' b , ' tcx > {
2955- call_ctxt : CallCtxt < ' a , ' b , ' tcx > ,
2954+ struct ArgsCtxt < ' a , ' tcx > {
2955+ call_ctxt : CallCtxt < ' a , ' tcx > ,
29562956 call_metadata : CallMetadata ,
29572957 args_span : Span ,
29582958}
29592959
2960- impl < ' a , ' b , ' tcx > Deref for ArgsCtxt < ' a , ' b , ' tcx > {
2961- type Target = CallCtxt < ' a , ' b , ' tcx > ;
2960+ impl < ' a , ' tcx > Deref for ArgsCtxt < ' a , ' tcx > {
2961+ type Target = CallCtxt < ' a , ' tcx > ;
29622962
29632963 fn deref ( & self ) -> & Self :: Target {
29642964 & self . call_ctxt
29652965 }
29662966}
29672967
2968- impl < ' a , ' b , ' tcx > ArgsCtxt < ' a , ' b , ' tcx > {
2968+ impl < ' a , ' tcx > ArgsCtxt < ' a , ' tcx > {
29692969 fn new (
2970- arg : & ' a FnCtxt < ' b , ' tcx > ,
2970+ arg : & ' a FnCtxt < ' a , ' tcx > ,
29712971 compatibility_diagonal : IndexVec < ProvidedIdx , Compatibility < ' tcx > > ,
29722972 formal_and_expected_inputs : IndexVec < ExpectedIdx , ( Ty < ' tcx > , Ty < ' tcx > ) > ,
29732973 provided_args : IndexVec < ProvidedIdx , & ' tcx Expr < ' tcx > > ,
@@ -2978,7 +2978,7 @@ impl<'a, 'b, 'tcx> ArgsCtxt<'a, 'b, 'tcx> {
29782978 call_expr : & ' tcx Expr < ' tcx > ,
29792979 tuple_arguments : TupleArgumentsFlag ,
29802980 ) -> Self {
2981- let call_ctxt: CallCtxt < ' _ , ' _ , ' _ > = CallCtxt :: new (
2981+ let call_ctxt: CallCtxt < ' _ , ' _ > = CallCtxt :: new (
29822982 arg,
29832983 compatibility_diagonal,
29842984 formal_and_expected_inputs,
@@ -3085,8 +3085,8 @@ struct CallMetadata {
30853085 is_method : bool ,
30863086}
30873087
3088- struct CallCtxt < ' a , ' b , ' tcx > {
3089- fn_ctxt : & ' a FnCtxt < ' b , ' tcx > ,
3088+ struct CallCtxt < ' a , ' tcx > {
3089+ fn_ctxt : & ' a FnCtxt < ' a , ' tcx > ,
30903090 compatibility_diagonal : IndexVec < ProvidedIdx , Compatibility < ' tcx > > ,
30913091 formal_and_expected_inputs : IndexVec < ExpectedIdx , ( Ty < ' tcx > , Ty < ' tcx > ) > ,
30923092 provided_args : IndexVec < ProvidedIdx , & ' tcx hir:: Expr < ' tcx > > ,
@@ -3100,17 +3100,17 @@ struct CallCtxt<'a, 'b, 'tcx> {
31003100 callee_ty : Option < Ty < ' tcx > > ,
31013101}
31023102
3103- impl < ' a , ' b , ' tcx > Deref for CallCtxt < ' a , ' b , ' tcx > {
3104- type Target = & ' a FnCtxt < ' b , ' tcx > ;
3103+ impl < ' a , ' tcx > Deref for CallCtxt < ' a , ' tcx > {
3104+ type Target = & ' a FnCtxt < ' a , ' tcx > ;
31053105
31063106 fn deref ( & self ) -> & Self :: Target {
31073107 & self . fn_ctxt
31083108 }
31093109}
31103110
3111- impl < ' a , ' b , ' tcx > CallCtxt < ' a , ' b , ' tcx > {
3111+ impl < ' a , ' tcx > CallCtxt < ' a , ' tcx > {
31123112 fn new (
3113- fn_ctxt : & ' a FnCtxt < ' b , ' tcx > ,
3113+ fn_ctxt : & ' a FnCtxt < ' a , ' tcx > ,
31143114 compatibility_diagonal : IndexVec < ProvidedIdx , Compatibility < ' tcx > > ,
31153115 formal_and_expected_inputs : IndexVec < ExpectedIdx , ( Ty < ' tcx > , Ty < ' tcx > ) > ,
31163116 provided_args : IndexVec < ProvidedIdx , & ' tcx hir:: Expr < ' tcx > > ,
@@ -3120,7 +3120,7 @@ impl<'a, 'b, 'tcx> CallCtxt<'a, 'b, 'tcx> {
31203120 call_span : Span ,
31213121 call_expr : & ' tcx hir:: Expr < ' tcx > ,
31223122 tuple_arguments : TupleArgumentsFlag ,
3123- ) -> CallCtxt < ' a , ' b , ' tcx > {
3123+ ) -> CallCtxt < ' a , ' tcx > {
31243124 let callee_expr = match & call_expr. peel_blocks ( ) . kind {
31253125 hir:: ExprKind :: Call ( callee, _) => Some ( * callee) ,
31263126 hir:: ExprKind :: MethodCall ( _, receiver, ..) => {
0 commit comments