@@ -418,7 +418,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
418418 } ;
419419
420420 match ( & param. kind , arg) {
421- ( GenericParamDefKind :: Lifetime , GenericArg :: Lifetime ( lt) ) => {
421+ ( GenericParamDefKind :: Lifetime { .. } , GenericArg :: Lifetime ( lt) ) => {
422422 self . astconv . ast_region_to_region ( lt, Some ( param) ) . into ( )
423423 }
424424 ( & GenericParamDefKind :: Type { has_default, .. } , GenericArg :: Type ( ty) ) => {
@@ -458,7 +458,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
458458 ) -> subst:: GenericArg < ' tcx > {
459459 let tcx = self . astconv . tcx ( ) ;
460460 match param. kind {
461- GenericParamDefKind :: Lifetime => self
461+ GenericParamDefKind :: Lifetime { .. } => self
462462 . astconv
463463 . re_infer ( Some ( param) , self . span )
464464 . unwrap_or_else ( || {
@@ -2720,7 +2720,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
27202720 let substs = InternalSubsts :: for_item ( tcx, def_id, |param, _| {
27212721 if let Some ( i) = ( param. index as usize ) . checked_sub ( generics. parent_count ) {
27222722 // Our own parameters are the resolved lifetimes.
2723- if let GenericParamDefKind :: Lifetime = param. kind {
2723+ if let GenericParamDefKind :: Lifetime { .. } = param. kind {
27242724 if let hir:: GenericArg :: Lifetime ( lifetime) = & lifetimes[ i] {
27252725 self . ast_region_to_region ( lifetime, None ) . into ( )
27262726 } else {
@@ -2739,7 +2739,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
27392739 // For `impl Trait` in the types of statics, constants,
27402740 // locals and type aliases. These capture all parent
27412741 // lifetimes, so they can use their identity subst.
2742- GenericParamDefKind :: Lifetime
2742+ GenericParamDefKind :: Lifetime { .. }
27432743 if matches ! (
27442744 origin,
27452745 hir:: OpaqueTyOrigin :: FnReturn ( ..) | hir:: OpaqueTyOrigin :: AsyncFn ( ..)
0 commit comments