@@ -213,7 +213,7 @@ impl AssocItem {
213213 }
214214 }
215215
216- pub fn signature < ' tcx > ( & self , tcx : TyCtxt < ' tcx > ) -> String {
216+ pub fn signature ( & self , tcx : TyCtxt < ' _ > ) -> String {
217217 match self . kind {
218218 ty:: AssocKind :: Method => {
219219 // We skip the binder here because the binder would deanonymize all
@@ -2311,7 +2311,7 @@ impl<'tcx> AdtDef {
23112311 /// Returns an iterator over all fields contained
23122312 /// by this ADT.
23132313 #[ inline]
2314- pub fn all_fields < ' s > ( & ' s self ) -> impl Iterator < Item = & ' s FieldDef > + Clone {
2314+ pub fn all_fields ( & self ) -> impl Iterator < Item = & FieldDef > + Clone {
23152315 self . variants . iter ( ) . flat_map ( |v| v. fields . iter ( ) )
23162316 }
23172317
@@ -3125,7 +3125,7 @@ impl Iterator for AssocItemsIterator<'_> {
31253125 }
31263126}
31273127
3128- fn associated_item < ' tcx > ( tcx : TyCtxt < ' tcx > , def_id : DefId ) -> AssocItem {
3128+ fn associated_item ( tcx : TyCtxt < ' _ > , def_id : DefId ) -> AssocItem {
31293129 let id = tcx. hir ( ) . as_local_hir_id ( def_id) . unwrap ( ) ;
31303130 let parent_id = tcx. hir ( ) . get_parent_item ( id) ;
31313131 let parent_def_id = tcx. hir ( ) . local_def_id_from_hir_id ( parent_id) ;
@@ -3170,7 +3170,7 @@ pub struct AdtSizedConstraint<'tcx>(pub &'tcx [Ty<'tcx>]);
31703170/// such.
31713171/// - a Error, if a type contained itself. The representability
31723172/// check should catch this case.
3173- fn adt_sized_constraint < ' tcx > ( tcx : TyCtxt < ' tcx > , def_id : DefId ) -> AdtSizedConstraint < ' tcx > {
3173+ fn adt_sized_constraint ( tcx : TyCtxt < ' _ > , def_id : DefId ) -> AdtSizedConstraint < ' _ > {
31743174 let def = tcx. adt_def ( def_id) ;
31753175
31763176 let result = tcx. mk_type_list ( def. variants . iter ( ) . flat_map ( |v| {
@@ -3184,7 +3184,7 @@ fn adt_sized_constraint<'tcx>(tcx: TyCtxt<'tcx>, def_id: DefId) -> AdtSizedConst
31843184 AdtSizedConstraint ( result)
31853185}
31863186
3187- fn associated_item_def_ids < ' tcx > ( tcx : TyCtxt < ' tcx > , def_id : DefId ) -> & ' tcx [ DefId ] {
3187+ fn associated_item_def_ids ( tcx : TyCtxt < ' _ > , def_id : DefId ) -> & [ DefId ] {
31883188 let id = tcx. hir ( ) . as_local_hir_id ( def_id) . unwrap ( ) ;
31893189 let item = tcx. hir ( ) . expect_item ( id) ;
31903190 match item. node {
@@ -3207,14 +3207,14 @@ fn associated_item_def_ids<'tcx>(tcx: TyCtxt<'tcx>, def_id: DefId) -> &'tcx [Def
32073207 }
32083208}
32093209
3210- fn def_span < ' tcx > ( tcx : TyCtxt < ' tcx > , def_id : DefId ) -> Span {
3210+ fn def_span ( tcx : TyCtxt < ' _ > , def_id : DefId ) -> Span {
32113211 tcx. hir ( ) . span_if_local ( def_id) . unwrap ( )
32123212}
32133213
32143214/// If the given `DefId` describes an item belonging to a trait,
32153215/// returns the `DefId` of the trait that the trait item belongs to;
32163216/// otherwise, returns `None`.
3217- fn trait_of_item < ' tcx > ( tcx : TyCtxt < ' tcx > , def_id : DefId ) -> Option < DefId > {
3217+ fn trait_of_item ( tcx : TyCtxt < ' _ > , def_id : DefId ) -> Option < DefId > {
32183218 tcx. opt_associated_item ( def_id)
32193219 . and_then ( |associated_item| {
32203220 match associated_item. container {
@@ -3237,7 +3237,7 @@ pub fn is_impl_trait_defn(tcx: TyCtxt<'_>, def_id: DefId) -> Option<DefId> {
32373237}
32383238
32393239/// See `ParamEnv` struct definition for details.
3240- fn param_env < ' tcx > ( tcx : TyCtxt < ' tcx > , def_id : DefId ) -> ParamEnv < ' tcx > {
3240+ fn param_env ( tcx : TyCtxt < ' _ > , def_id : DefId ) -> ParamEnv < ' _ > {
32413241 // The param_env of an impl Trait type is its defining function's param_env
32423242 if let Some ( parent) = is_impl_trait_defn ( tcx, def_id) {
32433243 return param_env ( tcx, parent) ;
@@ -3272,17 +3272,17 @@ fn param_env<'tcx>(tcx: TyCtxt<'tcx>, def_id: DefId) -> ParamEnv<'tcx> {
32723272 traits:: normalize_param_env_or_error ( tcx, def_id, unnormalized_env, cause)
32733273}
32743274
3275- fn crate_disambiguator < ' tcx > ( tcx : TyCtxt < ' tcx > , crate_num : CrateNum ) -> CrateDisambiguator {
3275+ fn crate_disambiguator ( tcx : TyCtxt < ' _ > , crate_num : CrateNum ) -> CrateDisambiguator {
32763276 assert_eq ! ( crate_num, LOCAL_CRATE ) ;
32773277 tcx. sess . local_crate_disambiguator ( )
32783278}
32793279
3280- fn original_crate_name < ' tcx > ( tcx : TyCtxt < ' tcx > , crate_num : CrateNum ) -> Symbol {
3280+ fn original_crate_name ( tcx : TyCtxt < ' _ > , crate_num : CrateNum ) -> Symbol {
32813281 assert_eq ! ( crate_num, LOCAL_CRATE ) ;
32823282 tcx. crate_name . clone ( )
32833283}
32843284
3285- fn crate_hash < ' tcx > ( tcx : TyCtxt < ' tcx > , crate_num : CrateNum ) -> Svh {
3285+ fn crate_hash ( tcx : TyCtxt < ' _ > , crate_num : CrateNum ) -> Svh {
32863286 assert_eq ! ( crate_num, LOCAL_CRATE ) ;
32873287 tcx. hir ( ) . crate_hash
32883288}
@@ -3302,7 +3302,7 @@ fn instance_def_size_estimate<'tcx>(tcx: TyCtxt<'tcx>, instance_def: InstanceDef
33023302/// If `def_id` is an issue 33140 hack impl, returns its self type; otherwise, returns `None`.
33033303///
33043304/// See [`ImplOverlapKind::Issue33140`] for more details.
3305- fn issue33140_self_ty < ' tcx > ( tcx : TyCtxt < ' tcx > , def_id : DefId ) -> Option < Ty < ' tcx > > {
3305+ fn issue33140_self_ty ( tcx : TyCtxt < ' _ > , def_id : DefId ) -> Option < Ty < ' _ > > {
33063306 debug ! ( "issue33140_self_ty({:?})" , def_id) ;
33073307
33083308 let trait_ref = tcx. impl_trait_ref ( def_id) . unwrap_or_else ( || {
0 commit comments