@@ -1225,7 +1225,7 @@ impl<'tcx> AliasTy<'tcx> {
1225
1225
1226
1226
/// Whether this alias type is an opaque.
1227
1227
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 ) )
1229
1229
}
1230
1230
1231
1231
/// FIXME: rename `AliasTy` to `AliasTerm` and always handle
@@ -2745,7 +2745,7 @@ impl<'tcx> Ty<'tcx> {
2745
2745
// Extern types have metadata = ().
2746
2746
| ty:: Foreign ( ..)
2747
2747
// `dyn*` has no metadata
2748
- | ty:: Dynamic ( _, _, DynKind :: DynStar )
2748
+ | ty:: Dynamic ( _, _, ty :: DynStar )
2749
2749
// If returned by `struct_tail_without_normalization` this is a unit struct
2750
2750
// without any fields, or not a struct, and therefore is Sized.
2751
2751
| ty:: Adt ( ..)
@@ -2754,7 +2754,7 @@ impl<'tcx> Ty<'tcx> {
2754
2754
| ty:: Tuple ( ..) => ( tcx. types . unit , false ) ,
2755
2755
2756
2756
ty:: Str | ty:: Slice ( _) => ( tcx. types . usize , false ) ,
2757
- ty:: Dynamic ( _, _, DynKind :: Dyn ) => {
2757
+ ty:: Dynamic ( _, _, ty :: Dyn ) => {
2758
2758
let dyn_metadata = tcx. require_lang_item ( LangItem :: DynMetadata , None ) ;
2759
2759
( tcx. type_of ( dyn_metadata) . instantiate ( tcx, & [ tail. into ( ) ] ) , false )
2760
2760
} ,
0 commit comments