diff options
| author | Michael Goulet <michael@errs.io> | 2025-05-24 12:07:32 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-05-27 11:14:45 +0000 |
| commit | 29c3babd7c03a48b022663beb7ad39bb24bbef36 (patch) | |
| tree | 5cbb67aad5c38e1bc431de42968571537804b776 /compiler/rustc_ty_utils/src/representability.rs | |
| parent | d76fe154029e03aeb64af721beafdcef856d576a (diff) | |
| download | rust-29c3babd7c03a48b022663beb7ad39bb24bbef36.tar.gz rust-29c3babd7c03a48b022663beb7ad39bb24bbef36.zip | |
Rename unpack to kind
Diffstat (limited to 'compiler/rustc_ty_utils/src/representability.rs')
| -rw-r--r-- | compiler/rustc_ty_utils/src/representability.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_ty_utils/src/representability.rs b/compiler/rustc_ty_utils/src/representability.rs index 98b1550e1a3..33d334092ba 100644 --- a/compiler/rustc_ty_utils/src/representability.rs +++ b/compiler/rustc_ty_utils/src/representability.rs @@ -74,7 +74,7 @@ fn representability_adt_ty<'tcx>(tcx: TyCtxt<'tcx>, ty: Ty<'tcx>) -> Representab // but the type parameters may cause a cycle with an upstream type let params_in_repr = tcx.params_in_repr(adt.did()); for (i, arg) in args.iter().enumerate() { - if let ty::GenericArgKind::Type(ty) = arg.unpack() { + if let ty::GenericArgKind::Type(ty) = arg.kind() { if params_in_repr.contains(i as u32) { rtry!(representability_ty(tcx, ty)); } @@ -104,7 +104,7 @@ fn params_in_repr_ty<'tcx>(tcx: TyCtxt<'tcx>, ty: Ty<'tcx>, params_in_repr: &mut ty::Adt(adt, args) => { let inner_params_in_repr = tcx.params_in_repr(adt.did()); for (i, arg) in args.iter().enumerate() { - if let ty::GenericArgKind::Type(ty) = arg.unpack() { + if let ty::GenericArgKind::Type(ty) = arg.kind() { if inner_params_in_repr.contains(i as u32) { params_in_repr_ty(tcx, ty, params_in_repr); } |
