@@ -1238,7 +1238,7 @@ impl<'tcx> AliasTy<'tcx> {
12381238
12391239 /// Whether this alias type is an opaque.
12401240 pub fn is_opaque ( self , tcx : TyCtxt < ' tcx > ) -> bool {
1241- matches ! ( self . opt_kind( tcx) , Some ( ty:: AliasKind :: Opaque ) )
1241+ matches ! ( self . opt_kind( tcx) , Some ( ty:: Opaque ) )
12421242 }
12431243
12441244 /// FIXME: rename `AliasTy` to `AliasTerm` and always handle
@@ -2759,7 +2759,7 @@ impl<'tcx> Ty<'tcx> {
27592759 // Extern types have metadata = ().
27602760 | ty:: Foreign ( ..)
27612761 // `dyn*` has no metadata
2762- | ty:: Dynamic ( _, _, DynKind :: DynStar )
2762+ | ty:: Dynamic ( _, _, ty :: DynStar )
27632763 // If returned by `struct_tail_without_normalization` this is a unit struct
27642764 // without any fields, or not a struct, and therefore is Sized.
27652765 | ty:: Adt ( ..)
@@ -2768,7 +2768,7 @@ impl<'tcx> Ty<'tcx> {
27682768 | ty:: Tuple ( ..) => ( tcx. types . unit , false ) ,
27692769
27702770 ty:: Str | ty:: Slice ( _) => ( tcx. types . usize , false ) ,
2771- ty:: Dynamic ( _, _, DynKind :: Dyn ) => {
2771+ ty:: Dynamic ( _, _, ty :: Dyn ) => {
27722772 let dyn_metadata = tcx. require_lang_item ( LangItem :: DynMetadata , None ) ;
27732773 ( tcx. type_of ( dyn_metadata) . instantiate ( tcx, & [ tail. into ( ) ] ) , false )
27742774 } ,
0 commit comments