@@ -162,7 +162,7 @@ fn check_union_fields(tcx: TyCtxt<'_>, span: Span, item_def_id: LocalDefId) -> b
162
162
}
163
163
164
164
/// Check that a `static` is inhabited.
165
- fn check_static_inhabited < ' tcx > ( tcx : TyCtxt < ' tcx > , def_id : LocalDefId ) {
165
+ fn check_static_inhabited ( tcx : TyCtxt < ' _ > , def_id : LocalDefId ) {
166
166
// Make sure statics are inhabited.
167
167
// Other parts of the compiler assume that there are no uninhabited places. In principle it
168
168
// would be enough to check this for `extern` statics, as statics with an initializer will
@@ -212,7 +212,7 @@ fn check_static_inhabited<'tcx>(tcx: TyCtxt<'tcx>, def_id: LocalDefId) {
212
212
213
213
/// Checks that an opaque type does not contain cycles and does not use `Self` or `T::Foo`
214
214
/// projections that would result in "inheriting lifetimes".
215
- fn check_opaque < ' tcx > ( tcx : TyCtxt < ' tcx > , id : hir:: ItemId ) {
215
+ fn check_opaque ( tcx : TyCtxt < ' _ > , id : hir:: ItemId ) {
216
216
let item = tcx. hir ( ) . item ( id) ;
217
217
let hir:: ItemKind :: OpaqueTy ( hir:: OpaqueTy { origin, .. } ) = item. kind else {
218
218
tcx. sess . delay_span_bug ( tcx. hir ( ) . span ( id. hir_id ( ) ) , "expected opaque item" ) ;
@@ -245,8 +245,8 @@ fn check_opaque<'tcx>(tcx: TyCtxt<'tcx>, id: hir::ItemId) {
245
245
/// Checks that an opaque type does not use `Self` or `T::Foo` projections that would result
246
246
/// in "inheriting lifetimes".
247
247
#[ instrument( level = "debug" , skip( tcx, span) ) ]
248
- pub ( super ) fn check_opaque_for_inheriting_lifetimes < ' tcx > (
249
- tcx : TyCtxt < ' tcx > ,
248
+ pub ( super ) fn check_opaque_for_inheriting_lifetimes (
249
+ tcx : TyCtxt < ' _ > ,
250
250
def_id : LocalDefId ,
251
251
span : Span ,
252
252
) {
@@ -496,7 +496,7 @@ fn is_enum_of_nonnullable_ptr<'tcx>(
496
496
matches ! ( field. ty( tcx, substs) . kind( ) , ty:: FnPtr ( ..) | ty:: Ref ( ..) )
497
497
}
498
498
499
- fn check_static_linkage < ' tcx > ( tcx : TyCtxt < ' tcx > , def_id : LocalDefId ) {
499
+ fn check_static_linkage ( tcx : TyCtxt < ' _ > , def_id : LocalDefId ) {
500
500
if tcx. codegen_fn_attrs ( def_id) . import_linkage . is_some ( ) {
501
501
if match tcx. type_of ( def_id) . kind ( ) {
502
502
ty:: RawPtr ( _) => false ,
@@ -508,7 +508,7 @@ fn check_static_linkage<'tcx>(tcx: TyCtxt<'tcx>, def_id: LocalDefId) {
508
508
}
509
509
}
510
510
511
- fn check_item_type < ' tcx > ( tcx : TyCtxt < ' tcx > , id : hir:: ItemId ) {
511
+ fn check_item_type ( tcx : TyCtxt < ' _ > , id : hir:: ItemId ) {
512
512
debug ! (
513
513
"check_item_type(it.def_id={:?}, it.name={})" ,
514
514
id. owner_id,
@@ -1160,7 +1160,7 @@ pub(super) fn check_transparent<'tcx>(tcx: TyCtxt<'tcx>, adt: ty::AdtDef<'tcx>)
1160
1160
}
1161
1161
1162
1162
#[ allow( trivial_numeric_casts) ]
1163
- fn check_enum < ' tcx > ( tcx : TyCtxt < ' tcx > , def_id : LocalDefId ) {
1163
+ fn check_enum ( tcx : TyCtxt < ' _ > , def_id : LocalDefId ) {
1164
1164
let def = tcx. adt_def ( def_id) ;
1165
1165
def. destructor ( tcx) ; // force the destructor to be evaluated
1166
1166
0 commit comments