@@ -25,7 +25,7 @@ use rustc_public::mir::Body;
25
25
use rustc_public:: mir:: mono:: Instance as InstanceStable ;
26
26
use rustc_public:: rustc_internal;
27
27
use rustc_public:: ty:: {
28
- Binder , DynKind , ExistentialPredicate , ExistentialProjection , Region , RegionKind , RigidTy ,
28
+ Binder , ExistentialPredicate , ExistentialProjection , Region , RegionKind , RigidTy ,
29
29
Ty as StableTy ,
30
30
} ;
31
31
use rustc_span:: def_id:: DefId ;
@@ -301,8 +301,7 @@ impl<'tcx, 'r> GotocCtx<'tcx, 'r> {
301
301
predictates. extend (
302
302
projections. into_iter ( ) . map ( |proj| proj. map_bound ( ExistentialPredicate :: Projection ) ) ,
303
303
) ;
304
- let rigid =
305
- RigidTy :: Dynamic ( predictates, Region { kind : RegionKind :: ReErased } , DynKind :: Dyn ) ;
304
+ let rigid = RigidTy :: Dynamic ( predictates, Region { kind : RegionKind :: ReErased } ) ;
306
305
307
306
rustc_public:: ty:: Ty :: from_rigid_kind ( rigid)
308
307
}
@@ -419,7 +418,7 @@ impl<'tcx, 'r> GotocCtx<'tcx, 'r> {
419
418
/// We follow the order from the `TyCtxt::COMMON_VTABLE_ENTRIES`.
420
419
fn trait_vtable_field_types ( & mut self , t : ty:: Ty < ' tcx > ) -> Vec < DatatypeComponent > {
421
420
let mut vtable_base = common_vtable_fields ( self . trait_vtable_drop_type ( t) ) ;
422
- if let ty:: Dynamic ( binder, _, _ ) = t. kind ( ) {
421
+ if let ty:: Dynamic ( binder, _) = t. kind ( ) {
423
422
// The virtual methods on the trait ref. Some auto traits have no methods.
424
423
if let Some ( principal) = binder. principal ( ) {
425
424
let poly = principal. with_self_ty ( self . tcx , t) ;
0 commit comments