@@ -72,7 +72,8 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
72
72
return ;
73
73
}
74
74
75
- let report_candidates = |err : & mut DiagnosticBuilder , mut sources : Vec < CandidateSource > | {
75
+ let report_candidates = |err : & mut DiagnosticBuilder < ' _ > ,
76
+ mut sources : Vec < CandidateSource > | {
76
77
sources. sort ( ) ;
77
78
sources. dedup ( ) ;
78
79
// Dynamic limit to avoid hiding just one candidate, which is silly.
@@ -497,7 +498,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
497
498
}
498
499
499
500
fn suggest_use_candidates ( & self ,
500
- err : & mut DiagnosticBuilder ,
501
+ err : & mut DiagnosticBuilder < ' _ > ,
501
502
mut msg : String ,
502
503
candidates : Vec < DefId > ) {
503
504
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> {
549
550
}
550
551
551
552
fn suggest_valid_traits ( & self ,
552
- err : & mut DiagnosticBuilder ,
553
+ err : & mut DiagnosticBuilder < ' _ > ,
553
554
valid_out_of_scope_traits : Vec < DefId > ) -> bool {
554
555
if !valid_out_of_scope_traits. is_empty ( ) {
555
556
let mut candidates = valid_out_of_scope_traits;
@@ -577,7 +578,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
577
578
}
578
579
579
580
fn suggest_traits_to_import < ' b > ( & self ,
580
- err : & mut DiagnosticBuilder ,
581
+ err : & mut DiagnosticBuilder < ' _ > ,
581
582
span : Span ,
582
583
rcvr_ty : Ty < ' tcx > ,
583
584
item_name : ast:: Ident ,
@@ -648,8 +649,8 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
648
649
fn type_derefs_to_local ( & self ,
649
650
span : Span ,
650
651
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 {
653
654
match ty. sty {
654
655
ty:: Adt ( def, _) => def. did . is_local ( ) ,
655
656
ty:: Foreign ( did) => did. is_local ( ) ,
@@ -749,7 +750,7 @@ fn compute_all_traits<'a, 'gcx, 'tcx>(tcx: TyCtxt<'a, 'gcx, 'tcx>) -> Vec<DefId>
749
750
// Cross-crate:
750
751
751
752
let mut external_mods = FxHashSet :: default ( ) ;
752
- fn handle_external_def ( tcx : TyCtxt ,
753
+ fn handle_external_def ( tcx : TyCtxt < ' _ , ' _ , ' _ > ,
753
754
traits : & mut Vec < DefId > ,
754
755
external_mods : & mut FxHashSet < DefId > ,
755
756
def : Def ) {
@@ -779,7 +780,7 @@ fn compute_all_traits<'a, 'gcx, 'tcx>(tcx: TyCtxt<'a, 'gcx, 'tcx>) -> Vec<DefId>
779
780
traits
780
781
}
781
782
782
- pub fn provide ( providers : & mut ty:: query:: Providers ) {
783
+ pub fn provide ( providers : & mut ty:: query:: Providers < ' _ > ) {
783
784
providers. all_traits = |tcx, cnum| {
784
785
assert_eq ! ( cnum, LOCAL_CRATE ) ;
785
786
Lrc :: new ( compute_all_traits ( tcx) )
0 commit comments