@@ -865,7 +865,6 @@ impl EncodeContext<'tcx> {
865
865
} ) )
866
866
}
867
867
ty:: AssocKind :: Type => EntryKind :: AssocType ( container) ,
868
- ty:: AssocKind :: OpaqueTy => span_bug!( ast_item. span, "opaque type in trait" ) ,
869
868
} ) ;
870
869
record ! ( self . tables. visibility[ def_id] <- trait_item. vis) ;
871
870
record ! ( self . tables. span[ def_id] <- ast_item. span) ;
@@ -883,7 +882,6 @@ impl EncodeContext<'tcx> {
883
882
self . encode_item_type ( def_id) ;
884
883
}
885
884
}
886
- ty:: AssocKind :: OpaqueTy => unreachable ! ( ) ,
887
885
}
888
886
if trait_item. kind == ty:: AssocKind :: Fn {
889
887
record ! ( self . tables. fn_sig[ def_id] <- tcx. fn_sig( def_id) ) ;
@@ -948,7 +946,6 @@ impl EncodeContext<'tcx> {
948
946
has_self: impl_item. fn_has_self_parameter,
949
947
} ) )
950
948
}
951
- ty:: AssocKind :: OpaqueTy => EntryKind :: AssocOpaqueTy ( container) ,
952
949
ty:: AssocKind :: Type => EntryKind :: AssocType ( container)
953
950
} ) ;
954
951
record ! ( self . tables. visibility[ def_id] <- impl_item. vis) ;
@@ -980,7 +977,7 @@ impl EncodeContext<'tcx> {
980
977
let always_encode_mir = self . tcx . sess . opts . debugging_opts . always_encode_mir ;
981
978
needs_inline || is_const_fn || always_encode_mir
982
979
}
983
- hir:: ImplItemKind :: OpaqueTy ( .. ) | hir :: ImplItemKind :: TyAlias ( ..) => false ,
980
+ hir:: ImplItemKind :: TyAlias ( ..) => false ,
984
981
} ;
985
982
if mir {
986
983
self . encode_optimized_mir ( def_id. expect_local ( ) ) ;
@@ -1777,7 +1774,7 @@ impl<'tcx, 'v> ParItemLikeVisitor<'v> for PrefetchVisitor<'tcx> {
1777
1774
self . prefetch_mir ( def_id)
1778
1775
}
1779
1776
}
1780
- hir:: ImplItemKind :: OpaqueTy ( .. ) | hir :: ImplItemKind :: TyAlias ( ..) => ( ) ,
1777
+ hir:: ImplItemKind :: TyAlias ( ..) => ( ) ,
1781
1778
}
1782
1779
}
1783
1780
}
0 commit comments