@@ -72,7 +72,8 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
7272 return ;
7373 }
7474
75- let report_candidates = |err : & mut DiagnosticBuilder , mut sources : Vec < CandidateSource > | {
75+ let report_candidates = |err : & mut DiagnosticBuilder < ' _ > ,
76+ mut sources : Vec < CandidateSource > | {
7677 sources. sort ( ) ;
7778 sources. dedup ( ) ;
7879 // Dynamic limit to avoid hiding just one candidate, which is silly.
@@ -497,7 +498,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
497498 }
498499
499500 fn suggest_use_candidates ( & self ,
500- err : & mut DiagnosticBuilder ,
501+ err : & mut DiagnosticBuilder < ' _ > ,
501502 mut msg : String ,
502503 candidates : Vec < DefId > ) {
503504 let module_did = self . tcx . hir ( ) . get_module_parent_by_hir_id ( self . body_id ) ;
@@ -549,7 +550,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
549550 }
550551
551552 fn suggest_valid_traits ( & self ,
552- err : & mut DiagnosticBuilder ,
553+ err : & mut DiagnosticBuilder < ' _ > ,
553554 valid_out_of_scope_traits : Vec < DefId > ) -> bool {
554555 if !valid_out_of_scope_traits. is_empty ( ) {
555556 let mut candidates = valid_out_of_scope_traits;
@@ -577,7 +578,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
577578 }
578579
579580 fn suggest_traits_to_import < ' b > ( & self ,
580- err : & mut DiagnosticBuilder ,
581+ err : & mut DiagnosticBuilder < ' _ > ,
581582 span : Span ,
582583 rcvr_ty : Ty < ' tcx > ,
583584 item_name : ast:: Ident ,
@@ -648,8 +649,8 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
648649 fn type_derefs_to_local ( & self ,
649650 span : Span ,
650651 rcvr_ty : Ty < ' tcx > ,
651- source : SelfSource ) -> bool {
652- fn is_local ( ty : Ty ) -> bool {
652+ source : SelfSource < ' _ > ) -> bool {
653+ fn is_local ( ty : Ty < ' _ > ) -> bool {
653654 match ty. sty {
654655 ty:: Adt ( def, _) => def. did . is_local ( ) ,
655656 ty:: Foreign ( did) => did. is_local ( ) ,
@@ -749,7 +750,7 @@ fn compute_all_traits<'a, 'gcx, 'tcx>(tcx: TyCtxt<'a, 'gcx, 'tcx>) -> Vec<DefId>
749750 // Cross-crate:
750751
751752 let mut external_mods = FxHashSet :: default ( ) ;
752- fn handle_external_def ( tcx : TyCtxt ,
753+ fn handle_external_def ( tcx : TyCtxt < ' _ , ' _ , ' _ > ,
753754 traits : & mut Vec < DefId > ,
754755 external_mods : & mut FxHashSet < DefId > ,
755756 def : Def ) {
@@ -779,7 +780,7 @@ fn compute_all_traits<'a, 'gcx, 'tcx>(tcx: TyCtxt<'a, 'gcx, 'tcx>) -> Vec<DefId>
779780 traits
780781}
781782
782- pub fn provide ( providers : & mut ty:: query:: Providers ) {
783+ pub fn provide ( providers : & mut ty:: query:: Providers < ' _ > ) {
783784 providers. all_traits = |tcx, cnum| {
784785 assert_eq ! ( cnum, LOCAL_CRATE ) ;
785786 Lrc :: new ( compute_all_traits ( tcx) )
0 commit comments