@@ -874,7 +874,6 @@ impl EncodeContext<'tcx> {
874874 } ) )
875875 }
876876 ty:: AssocKind :: Type => EntryKind :: AssocType ( container) ,
877- ty:: AssocKind :: OpaqueTy => span_bug!( ast_item. span, "opaque type in trait" ) ,
878877 } ) ;
879878 record ! ( self . tables. visibility[ def_id] <- trait_item. vis) ;
880879 record ! ( self . tables. span[ def_id] <- ast_item. span) ;
@@ -892,7 +891,6 @@ impl EncodeContext<'tcx> {
892891 self . encode_item_type ( def_id) ;
893892 }
894893 }
895- ty:: AssocKind :: OpaqueTy => unreachable ! ( ) ,
896894 }
897895 if trait_item. kind == ty:: AssocKind :: Fn {
898896 record ! ( self . tables. fn_sig[ def_id] <- tcx. fn_sig( def_id) ) ;
@@ -957,7 +955,6 @@ impl EncodeContext<'tcx> {
957955 has_self: impl_item. fn_has_self_parameter,
958956 } ) )
959957 }
960- ty:: AssocKind :: OpaqueTy => EntryKind :: AssocOpaqueTy ( container) ,
961958 ty:: AssocKind :: Type => EntryKind :: AssocType ( container)
962959 } ) ;
963960 record ! ( self . tables. visibility[ def_id] <- impl_item. vis) ;
@@ -989,7 +986,7 @@ impl EncodeContext<'tcx> {
989986 let always_encode_mir = self . tcx . sess . opts . debugging_opts . always_encode_mir ;
990987 needs_inline || is_const_fn || always_encode_mir
991988 }
992- hir:: ImplItemKind :: OpaqueTy ( .. ) | hir :: ImplItemKind :: TyAlias ( ..) => false ,
989+ hir:: ImplItemKind :: TyAlias ( ..) => false ,
993990 } ;
994991 if mir {
995992 self . encode_optimized_mir ( def_id. expect_local ( ) ) ;
@@ -1786,7 +1783,7 @@ impl<'tcx, 'v> ParItemLikeVisitor<'v> for PrefetchVisitor<'tcx> {
17861783 self . prefetch_mir ( def_id)
17871784 }
17881785 }
1789- hir:: ImplItemKind :: OpaqueTy ( .. ) | hir :: ImplItemKind :: TyAlias ( ..) => ( ) ,
1786+ hir:: ImplItemKind :: TyAlias ( ..) => ( ) ,
17901787 }
17911788 }
17921789}
0 commit comments