@@ -1225,7 +1225,7 @@ impl<'tcx> AliasTy<'tcx> {
12251225
12261226 /// Whether this alias type is an opaque.
12271227 pub fn is_opaque ( self , tcx : TyCtxt < ' tcx > ) -> bool {
1228- matches ! ( self . opt_kind( tcx) , Some ( ty:: AliasKind :: Opaque ) )
1228+ matches ! ( self . opt_kind( tcx) , Some ( ty:: Opaque ) )
12291229 }
12301230
12311231 /// FIXME: rename `AliasTy` to `AliasTerm` and always handle
@@ -2745,7 +2745,7 @@ impl<'tcx> Ty<'tcx> {
27452745 // Extern types have metadata = ().
27462746 | ty:: Foreign ( ..)
27472747 // `dyn*` has no metadata
2748- | ty:: Dynamic ( _, _, DynKind :: DynStar )
2748+ | ty:: Dynamic ( _, _, ty :: DynStar )
27492749 // If returned by `struct_tail_without_normalization` this is a unit struct
27502750 // without any fields, or not a struct, and therefore is Sized.
27512751 | ty:: Adt ( ..)
@@ -2754,7 +2754,7 @@ impl<'tcx> Ty<'tcx> {
27542754 | ty:: Tuple ( ..) => ( tcx. types . unit , false ) ,
27552755
27562756 ty:: Str | ty:: Slice ( _) => ( tcx. types . usize , false ) ,
2757- ty:: Dynamic ( _, _, DynKind :: Dyn ) => {
2757+ ty:: Dynamic ( _, _, ty :: Dyn ) => {
27582758 let dyn_metadata = tcx. require_lang_item ( LangItem :: DynMetadata , None ) ;
27592759 ( tcx. type_of ( dyn_metadata) . instantiate ( tcx, & [ tail. into ( ) ] ) , false )
27602760 } ,
0 commit comments