diff options
| author | Eric Holk <ericholk@microsoft.com> | 2022-04-13 16:11:28 -0700 |
|---|---|---|
| committer | Eric Holk <ericholk@microsoft.com> | 2022-09-12 16:55:55 -0700 |
| commit | 6c01273a1566bc312ea88225880d35c2259914a6 (patch) | |
| tree | 30cbf9416c7479ee6cc8f06fb1f7d71d1d296a89 /compiler/rustc_codegen_ssa/src | |
| parent | eff35e59c698df379806add4c9f2c1d8d3fe55ca (diff) | |
| download | rust-6c01273a1566bc312ea88225880d35c2259914a6.tar.gz rust-6c01273a1566bc312ea88225880d35c2259914a6.zip | |
Plumb dyn trait representation through ty::Dynamic
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 f8e982b7751..f6b9ddf2eea 100644 --- a/compiler/rustc_codegen_ssa/src/meth.rs +++ b/compiler/rustc_codegen_ssa/src/meth.rs @@ -69,7 +69,7 @@ impl<'a, 'tcx> VirtualIndex { fn expect_dyn_trait_in_self<'tcx>(ty: Ty<'tcx>) -> ty::PolyExistentialTraitRef<'tcx> { for arg in ty.peel_refs().walk() { if let GenericArgKind::Type(ty) = arg.unpack() { - if let ty::Dynamic(data, _) = ty.kind() { + if let ty::Dynamic(data, _, _) = ty.kind() { return data.principal().expect("expected principal trait object"); } } |
