@@ -865,7 +865,6 @@ impl EncodeContext<'tcx> {
865865 } ) )
866866 }
867867 ty:: AssocKind :: Type => EntryKind :: AssocType ( container) ,
868- ty:: AssocKind :: OpaqueTy => span_bug!( ast_item. span, "opaque type in trait" ) ,
869868 } ) ;
870869 record ! ( self . tables. visibility[ def_id] <- trait_item. vis) ;
871870 record ! ( self . tables. span[ def_id] <- ast_item. span) ;
@@ -883,7 +882,6 @@ impl EncodeContext<'tcx> {
883882 self . encode_item_type ( def_id) ;
884883 }
885884 }
886- ty:: AssocKind :: OpaqueTy => unreachable ! ( ) ,
887885 }
888886 if trait_item. kind == ty:: AssocKind :: Fn {
889887 record ! ( self . tables. fn_sig[ def_id] <- tcx. fn_sig( def_id) ) ;
@@ -948,7 +946,6 @@ impl EncodeContext<'tcx> {
948946 has_self: impl_item. fn_has_self_parameter,
949947 } ) )
950948 }
951- ty:: AssocKind :: OpaqueTy => EntryKind :: AssocOpaqueTy ( container) ,
952949 ty:: AssocKind :: Type => EntryKind :: AssocType ( container)
953950 } ) ;
954951 record ! ( self . tables. visibility[ def_id] <- impl_item. vis) ;
@@ -980,7 +977,7 @@ impl EncodeContext<'tcx> {
980977 let always_encode_mir = self . tcx . sess . opts . debugging_opts . always_encode_mir ;
981978 needs_inline || is_const_fn || always_encode_mir
982979 }
983- hir:: ImplItemKind :: OpaqueTy ( .. ) | hir :: ImplItemKind :: TyAlias ( ..) => false ,
980+ hir:: ImplItemKind :: TyAlias ( ..) => false ,
984981 } ;
985982 if mir {
986983 self . encode_optimized_mir ( def_id. expect_local ( ) ) ;
@@ -1777,7 +1774,7 @@ impl<'tcx, 'v> ParItemLikeVisitor<'v> for PrefetchVisitor<'tcx> {
17771774 self . prefetch_mir ( def_id)
17781775 }
17791776 }
1780- hir:: ImplItemKind :: OpaqueTy ( .. ) | hir :: ImplItemKind :: TyAlias ( ..) => ( ) ,
1777+ hir:: ImplItemKind :: TyAlias ( ..) => ( ) ,
17811778 }
17821779 }
17831780}
0 commit comments