@@ -163,12 +163,12 @@ impl<'a, 'tcx: 'a> FnCtxtExt<'tcx> for FnCtxtSimulator<'a, 'tcx> {
163163 let find_param_matching = |matches : & dyn Fn ( ty:: ParamTerm ) -> bool | {
164164 predicate_args. iter ( ) . find_map ( |arg| {
165165 arg. walk ( ) . find ( |arg| {
166- if let ty:: GenericArgKind :: Type ( ty) = arg. unpack ( )
166+ if let ty:: GenericArgKind :: Type ( ty) = arg. kind ( )
167167 && let ty:: Param ( param_ty) = * ty. kind ( )
168168 && matches ( ty:: ParamTerm :: Ty ( param_ty) )
169169 {
170170 true
171- } else if let ty:: GenericArgKind :: Const ( ct) = arg. unpack ( )
171+ } else if let ty:: GenericArgKind :: Const ( ct) = arg. kind ( )
172172 && let ty:: ConstKind :: Param ( param_ct) = ct. kind ( )
173173 && matches ( ty:: ParamTerm :: Const ( param_ct) )
174174 {
@@ -424,7 +424,7 @@ impl<'a, 'tcx: 'a> FnCtxtExt<'tcx> for FnCtxtSimulator<'a, 'tcx> {
424424 // Handle `Self` param specifically, since it's separated in
425425 // the path representation
426426 if let Some ( self_ty) = self_ty
427- && let ty:: GenericArgKind :: Type ( ty) = param. unpack ( )
427+ && let ty:: GenericArgKind :: Type ( ty) = param. kind ( )
428428 && ty == self . tcx . types . self_param
429429 {
430430 error. obligation . cause . span = self_ty
@@ -440,7 +440,7 @@ impl<'a, 'tcx: 'a> FnCtxtExt<'tcx> for FnCtxtSimulator<'a, 'tcx> {
440440 }
441441 // Handle `Self` param specifically, since it's separated in
442442 // the path representation
443- if let ty:: GenericArgKind :: Type ( ty) = param. unpack ( )
443+ if let ty:: GenericArgKind :: Type ( ty) = param. kind ( )
444444 && ty == self . tcx . types . self_param
445445 {
446446 error. obligation . cause . span = self_ty
@@ -820,7 +820,7 @@ impl<'a, 'tcx: 'a> FnCtxtExt<'tcx> for FnCtxtSimulator<'a, 'tcx> {
820820 return Ok ( expr) ;
821821 }
822822
823- let ty:: GenericArgKind :: Type ( in_ty) = in_ty. unpack ( ) else {
823+ let ty:: GenericArgKind :: Type ( in_ty) = in_ty. kind ( ) else {
824824 return Err ( expr) ;
825825 } ;
826826
@@ -1132,7 +1132,7 @@ fn find_param_in_ty<'tcx>(
11321132 if arg == param_to_point_at {
11331133 return true ;
11341134 }
1135- if let ty:: GenericArgKind :: Type ( ty) = arg. unpack ( )
1135+ if let ty:: GenericArgKind :: Type ( ty) = arg. kind ( )
11361136 && let ty:: Alias ( ty:: Projection | ty:: Inherent , ..) = ty. kind ( )
11371137 {
11381138 // This logic may seem a bit strange, but typically when
0 commit comments