@@ -498,7 +498,7 @@ fn record_accesses<'a, 'tcx: 'a>(
498498/// the user's terminal with thousands of lines of type-name.
499499///
500500/// If the type name is longer than before+after, it will be written to a file.
501- fn shrunk_instance_name (
501+ fn shrunk_instance_name < ' tcx > (
502502 tcx : TyCtxt < ' tcx > ,
503503 instance : & Instance < ' tcx > ,
504504 before : usize ,
@@ -1145,7 +1145,7 @@ struct RootCollector<'a, 'tcx> {
11451145 entry_fn : Option < ( DefId , EntryFnType ) > ,
11461146}
11471147
1148- impl ItemLikeVisitor < ' v > for RootCollector < ' _ , ' v > {
1148+ impl < ' v > ItemLikeVisitor < ' v > for RootCollector < ' _ , ' v > {
11491149 fn visit_item ( & mut self , item : & ' v hir:: Item < ' v > ) {
11501150 match item. kind {
11511151 hir:: ItemKind :: ExternCrate ( ..)
@@ -1225,7 +1225,7 @@ impl ItemLikeVisitor<'v> for RootCollector<'_, 'v> {
12251225 fn visit_foreign_item ( & mut self , _foreign_item : & ' v hir:: ForeignItem < ' v > ) { }
12261226}
12271227
1228- impl RootCollector < ' _ , ' v > {
1228+ impl < ' v > RootCollector < ' _ , ' v > {
12291229 fn is_root ( & self , def_id : LocalDefId ) -> bool {
12301230 !item_requires_monomorphization ( self . tcx , def_id)
12311231 && match self . mode {
0 commit comments