diff options
| author | Michael Goulet <michael@errs.io> | 2022-08-29 03:53:33 +0000 |
|---|---|---|
| committer | Eric Holk <ericholk@microsoft.com> | 2022-09-12 16:55:59 -0700 |
| commit | b2ed2dcaaedf0a96dece85a5409b3a1f30a84360 (patch) | |
| tree | 09e5929727f25e3cec44443f4f9fdf857cddc0f3 /compiler/rustc_monomorphize/src | |
| parent | 12ec2f0e34e230a5d95d7ef06c6de92efcdcbedf (diff) | |
| download | rust-b2ed2dcaaedf0a96dece85a5409b3a1f30a84360.tar.gz rust-b2ed2dcaaedf0a96dece85a5409b3a1f30a84360.zip | |
Rename some variants
Diffstat (limited to 'compiler/rustc_monomorphize/src')
| -rw-r--r-- | compiler/rustc_monomorphize/src/collector.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/compiler/rustc_monomorphize/src/collector.rs b/compiler/rustc_monomorphize/src/collector.rs index 8b318d5e249..4e7eba2d02f 100644 --- a/compiler/rustc_monomorphize/src/collector.rs +++ b/compiler/rustc_monomorphize/src/collector.rs @@ -189,8 +189,7 @@ use rustc_middle::ty::adjustment::{CustomCoerceUnsized, PointerCast}; use rustc_middle::ty::print::with_no_trimmed_paths; use rustc_middle::ty::subst::{GenericArgKind, InternalSubsts}; use rustc_middle::ty::{ - self, GenericParamDefKind, Instance, TraitObjectRepresentation, Ty, TyCtxt, TypeFoldable, - TypeVisitable, VtblEntry, + self, GenericParamDefKind, Instance, Ty, TyCtxt, TypeFoldable, TypeVisitable, VtblEntry, }; use rustc_middle::{middle::codegen_fn_attrs::CodegenFnAttrFlags, mir::visit::TyContext}; use rustc_session::config::EntryFnType; @@ -1115,9 +1114,7 @@ fn find_vtable_types_for_unsizing<'tcx>( } // T as dyn* Trait - (_, &ty::Dynamic(_, _, TraitObjectRepresentation::Sized)) => { - ptr_vtable(source_ty, target_ty) - } + (_, &ty::Dynamic(_, _, ty::DynStar)) => ptr_vtable(source_ty, target_ty), (&ty::Adt(source_adt_def, source_substs), &ty::Adt(target_adt_def, target_substs)) => { assert_eq!(source_adt_def, target_adt_def); |
