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_codegen_ssa/src | |
| parent | d76fe154029e03aeb64af721beafdcef856d576a (diff) | |
| download | rust-29c3babd7c03a48b022663beb7ad39bb24bbef36.tar.gz rust-29c3babd7c03a48b022663beb7ad39bb24bbef36.zip | |
Rename unpack to kind
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/meth.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/meth.rs b/compiler/rustc_codegen_ssa/src/meth.rs index 399c592432a..3a11ce6befb 100644 --- a/compiler/rustc_codegen_ssa/src/meth.rs +++ b/compiler/rustc_codegen_ssa/src/meth.rs @@ -77,7 +77,7 @@ fn dyn_trait_in_self<'tcx>( ty: Ty<'tcx>, ) -> Option<ty::ExistentialTraitRef<'tcx>> { for arg in ty.peel_refs().walk() { - if let GenericArgKind::Type(ty) = arg.unpack() + if let GenericArgKind::Type(ty) = arg.kind() && let ty::Dynamic(data, _, _) = ty.kind() { // FIXME(arbitrary_self_types): This is likely broken for receivers which |
