@@ -651,12 +651,6 @@ pub enum ImplSource<'tcx, N> {
651651 /// Same as above, but for a function pointer type with the given signature.
652652 FnPointer ( ImplSourceFnPointerData < ' tcx , N > ) ,
653653
654- /// ImplSource for a builtin `DeterminantKind` trait implementation.
655- DiscriminantKind ( ImplSourceDiscriminantKindData ) ,
656-
657- /// ImplSource for a builtin `Pointee` trait implementation.
658- Pointee ( ImplSourcePointeeData ) ,
659-
660654 /// ImplSource automatically generated for a generator.
661655 Generator ( ImplSourceGeneratorData < ' tcx , N > ) ,
662656
@@ -682,8 +676,6 @@ impl<'tcx, N> ImplSource<'tcx, N> {
682676 ImplSource :: Future ( c) => c. nested ,
683677 ImplSource :: Object ( d) => d. nested ,
684678 ImplSource :: FnPointer ( d) => d. nested ,
685- ImplSource :: DiscriminantKind ( ImplSourceDiscriminantKindData )
686- | ImplSource :: Pointee ( ImplSourcePointeeData ) => vec ! [ ] ,
687679 ImplSource :: TraitAlias ( d) => d. nested ,
688680 ImplSource :: TraitUpcasting ( d) => d. nested ,
689681 ImplSource :: ConstDestruct ( i) => i. nested ,
@@ -701,8 +693,6 @@ impl<'tcx, N> ImplSource<'tcx, N> {
701693 ImplSource :: Future ( c) => & c. nested ,
702694 ImplSource :: Object ( d) => & d. nested ,
703695 ImplSource :: FnPointer ( d) => & d. nested ,
704- ImplSource :: DiscriminantKind ( ImplSourceDiscriminantKindData )
705- | ImplSource :: Pointee ( ImplSourcePointeeData ) => & [ ] ,
706696 ImplSource :: TraitAlias ( d) => & d. nested ,
707697 ImplSource :: TraitUpcasting ( d) => & d. nested ,
708698 ImplSource :: ConstDestruct ( i) => & i. nested ,
@@ -751,12 +741,6 @@ impl<'tcx, N> ImplSource<'tcx, N> {
751741 fn_ty : p. fn_ty ,
752742 nested : p. nested . into_iter ( ) . map ( f) . collect ( ) ,
753743 } ) ,
754- ImplSource :: DiscriminantKind ( ImplSourceDiscriminantKindData ) => {
755- ImplSource :: DiscriminantKind ( ImplSourceDiscriminantKindData )
756- }
757- ImplSource :: Pointee ( ImplSourcePointeeData ) => {
758- ImplSource :: Pointee ( ImplSourcePointeeData )
759- }
760744 ImplSource :: TraitAlias ( d) => ImplSource :: TraitAlias ( ImplSourceTraitAliasData {
761745 alias_def_id : d. alias_def_id ,
762746 substs : d. substs ,
@@ -876,13 +860,6 @@ pub struct ImplSourceFnPointerData<'tcx, N> {
876860 pub nested : Vec < N > ,
877861}
878862
879- // FIXME(@lcnr): This should be refactored and merged with other builtin vtables.
880- #[ derive( Clone , Debug , PartialEq , Eq , TyEncodable , TyDecodable , HashStable ) ]
881- pub struct ImplSourceDiscriminantKindData ;
882-
883- #[ derive( Clone , Debug , PartialEq , Eq , TyEncodable , TyDecodable , HashStable ) ]
884- pub struct ImplSourcePointeeData ;
885-
886863#[ derive( Clone , PartialEq , Eq , TyEncodable , TyDecodable , HashStable , Lift ) ]
887864#[ derive( TypeFoldable , TypeVisitable ) ]
888865pub struct ImplSourceConstDestructData < N > {
0 commit comments