@@ -962,7 +962,7 @@ impl CrateRoot {
962
962
}
963
963
}
964
964
965
- impl < ' a , ' tcx > CrateMetadataRef < ' a > {
965
+ impl < ' a > CrateMetadataRef < ' a > {
966
966
fn missing ( self , descr : & str , id : DefIndex ) -> ! {
967
967
bug ! ( "missing `{descr}` for {:?}" , self . local_def_id( id) )
968
968
}
@@ -1036,7 +1036,7 @@ impl<'a, 'tcx> CrateMetadataRef<'a> {
1036
1036
. decode ( ( self , sess) )
1037
1037
}
1038
1038
1039
- fn load_proc_macro ( self , id : DefIndex , tcx : TyCtxt < ' tcx > ) -> SyntaxExtension {
1039
+ fn load_proc_macro < ' tcx > ( self , id : DefIndex , tcx : TyCtxt < ' tcx > ) -> SyntaxExtension {
1040
1040
let ( name, kind, helper_attrs) = match * self . raw_proc_macro ( id) {
1041
1041
ProcMacro :: CustomDerive { trait_name, attributes, client } => {
1042
1042
let helper_attrs =
@@ -1070,7 +1070,7 @@ impl<'a, 'tcx> CrateMetadataRef<'a> {
1070
1070
)
1071
1071
}
1072
1072
1073
- fn get_explicit_item_bounds (
1073
+ fn get_explicit_item_bounds < ' tcx > (
1074
1074
self ,
1075
1075
index : DefIndex ,
1076
1076
tcx : TyCtxt < ' tcx > ,
@@ -1084,7 +1084,7 @@ impl<'a, 'tcx> CrateMetadataRef<'a> {
1084
1084
ty:: EarlyBinder :: bind ( & * output)
1085
1085
}
1086
1086
1087
- fn get_explicit_item_super_predicates (
1087
+ fn get_explicit_item_super_predicates < ' tcx > (
1088
1088
self ,
1089
1089
index : DefIndex ,
1090
1090
tcx : TyCtxt < ' tcx > ,
@@ -1141,7 +1141,7 @@ impl<'a, 'tcx> CrateMetadataRef<'a> {
1141
1141
)
1142
1142
}
1143
1143
1144
- fn get_adt_def ( self , item_id : DefIndex , tcx : TyCtxt < ' tcx > ) -> ty:: AdtDef < ' tcx > {
1144
+ fn get_adt_def < ' tcx > ( self , item_id : DefIndex , tcx : TyCtxt < ' tcx > ) -> ty:: AdtDef < ' tcx > {
1145
1145
let kind = self . def_kind ( item_id) ;
1146
1146
let did = self . local_def_id ( item_id) ;
1147
1147
@@ -1225,12 +1225,12 @@ impl<'a, 'tcx> CrateMetadataRef<'a> {
1225
1225
/// Iterates over the stability implications in the given crate (when a `#[unstable]` attribute
1226
1226
/// has an `implied_by` meta item, then the mapping from the implied feature to the actual
1227
1227
/// feature is a stability implication).
1228
- fn get_stability_implications ( self , tcx : TyCtxt < ' tcx > ) -> & ' tcx [ ( Symbol , Symbol ) ] {
1228
+ fn get_stability_implications < ' tcx > ( self , tcx : TyCtxt < ' tcx > ) -> & ' tcx [ ( Symbol , Symbol ) ] {
1229
1229
tcx. arena . alloc_from_iter ( self . root . stability_implications . decode ( self ) )
1230
1230
}
1231
1231
1232
1232
/// Iterates over the lang items in the given crate.
1233
- fn get_lang_items ( self , tcx : TyCtxt < ' tcx > ) -> & ' tcx [ ( DefId , LangItem ) ] {
1233
+ fn get_lang_items < ' tcx > ( self , tcx : TyCtxt < ' tcx > ) -> & ' tcx [ ( DefId , LangItem ) ] {
1234
1234
tcx. arena . alloc_from_iter (
1235
1235
self . root
1236
1236
. lang_items
@@ -1239,7 +1239,11 @@ impl<'a, 'tcx> CrateMetadataRef<'a> {
1239
1239
)
1240
1240
}
1241
1241
1242
- fn get_stripped_cfg_items ( self , cnum : CrateNum , tcx : TyCtxt < ' tcx > ) -> & ' tcx [ StrippedCfgItem ] {
1242
+ fn get_stripped_cfg_items < ' tcx > (
1243
+ self ,
1244
+ cnum : CrateNum ,
1245
+ tcx : TyCtxt < ' tcx > ,
1246
+ ) -> & ' tcx [ StrippedCfgItem ] {
1243
1247
let item_names = self
1244
1248
. root
1245
1249
. stripped_cfg_items
@@ -1412,7 +1416,7 @@ impl<'a, 'tcx> CrateMetadataRef<'a> {
1412
1416
. decode ( ( self , sess) )
1413
1417
}
1414
1418
1415
- fn get_inherent_implementations_for_type (
1419
+ fn get_inherent_implementations_for_type < ' tcx > (
1416
1420
self ,
1417
1421
tcx : TyCtxt < ' tcx > ,
1418
1422
id : DefIndex ,
@@ -1439,15 +1443,15 @@ impl<'a, 'tcx> CrateMetadataRef<'a> {
1439
1443
} )
1440
1444
}
1441
1445
1442
- fn get_incoherent_impls ( self , tcx : TyCtxt < ' tcx > , simp : SimplifiedType ) -> & ' tcx [ DefId ] {
1446
+ fn get_incoherent_impls < ' tcx > ( self , tcx : TyCtxt < ' tcx > , simp : SimplifiedType ) -> & ' tcx [ DefId ] {
1443
1447
if let Some ( impls) = self . cdata . incoherent_impls . get ( & simp) {
1444
1448
tcx. arena . alloc_from_iter ( impls. decode ( self ) . map ( |idx| self . local_def_id ( idx) ) )
1445
1449
} else {
1446
1450
& [ ]
1447
1451
}
1448
1452
}
1449
1453
1450
- fn get_implementations_of_trait (
1454
+ fn get_implementations_of_trait < ' tcx > (
1451
1455
self ,
1452
1456
tcx : TyCtxt < ' tcx > ,
1453
1457
trait_def_id : DefId ,
@@ -1491,7 +1495,7 @@ impl<'a, 'tcx> CrateMetadataRef<'a> {
1491
1495
self . root . foreign_modules . decode ( ( self , sess) )
1492
1496
}
1493
1497
1494
- fn get_dylib_dependency_formats (
1498
+ fn get_dylib_dependency_formats < ' tcx > (
1495
1499
self ,
1496
1500
tcx : TyCtxt < ' tcx > ,
1497
1501
) -> & ' tcx [ ( CrateNum , LinkagePreference ) ] {
@@ -1503,11 +1507,11 @@ impl<'a, 'tcx> CrateMetadataRef<'a> {
1503
1507
)
1504
1508
}
1505
1509
1506
- fn get_missing_lang_items ( self , tcx : TyCtxt < ' tcx > ) -> & ' tcx [ LangItem ] {
1510
+ fn get_missing_lang_items < ' tcx > ( self , tcx : TyCtxt < ' tcx > ) -> & ' tcx [ LangItem ] {
1507
1511
tcx. arena . alloc_from_iter ( self . root . lang_items_missing . decode ( self ) )
1508
1512
}
1509
1513
1510
- fn exported_symbols (
1514
+ fn exported_symbols < ' tcx > (
1511
1515
self ,
1512
1516
tcx : TyCtxt < ' tcx > ,
1513
1517
) -> & ' tcx [ ( ExportedSymbol < ' tcx > , SymbolExportInfo ) ] {
0 commit comments