@@ -1238,7 +1238,7 @@ impl<'tcx> AliasTy<'tcx> {
1238
1238
1239
1239
/// Whether this alias type is an opaque.
1240
1240
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 ) )
1242
1242
}
1243
1243
1244
1244
/// FIXME: rename `AliasTy` to `AliasTerm` and always handle
@@ -2759,7 +2759,7 @@ impl<'tcx> Ty<'tcx> {
2759
2759
// Extern types have metadata = ().
2760
2760
| ty:: Foreign ( ..)
2761
2761
// `dyn*` has no metadata
2762
- | ty:: Dynamic ( _, _, DynKind :: DynStar )
2762
+ | ty:: Dynamic ( _, _, ty :: DynStar )
2763
2763
// If returned by `struct_tail_without_normalization` this is a unit struct
2764
2764
// without any fields, or not a struct, and therefore is Sized.
2765
2765
| ty:: Adt ( ..)
@@ -2768,7 +2768,7 @@ impl<'tcx> Ty<'tcx> {
2768
2768
| ty:: Tuple ( ..) => ( tcx. types . unit , false ) ,
2769
2769
2770
2770
ty:: Str | ty:: Slice ( _) => ( tcx. types . usize , false ) ,
2771
- ty:: Dynamic ( _, _, DynKind :: Dyn ) => {
2771
+ ty:: Dynamic ( _, _, ty :: Dyn ) => {
2772
2772
let dyn_metadata = tcx. require_lang_item ( LangItem :: DynMetadata , None ) ;
2773
2773
( tcx. type_of ( dyn_metadata) . instantiate ( tcx, & [ tail. into ( ) ] ) , false )
2774
2774
} ,
0 commit comments