@@ -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
@@ -678,8 +672,6 @@ impl<'tcx, N> ImplSource<'tcx, N> {
678672 ImplSource :: Generator ( c) => c. nested ,
679673 ImplSource :: Object ( d) => d. nested ,
680674 ImplSource :: FnPointer ( d) => d. nested ,
681- ImplSource :: DiscriminantKind ( ImplSourceDiscriminantKindData )
682- | ImplSource :: Pointee ( ImplSourcePointeeData ) => vec ! [ ] ,
683675 ImplSource :: TraitAlias ( d) => d. nested ,
684676 ImplSource :: TraitUpcasting ( d) => d. nested ,
685677 ImplSource :: ConstDestruct ( i) => i. nested ,
@@ -696,8 +688,6 @@ impl<'tcx, N> ImplSource<'tcx, N> {
696688 ImplSource :: Generator ( c) => & c. nested ,
697689 ImplSource :: Object ( d) => & d. nested ,
698690 ImplSource :: FnPointer ( d) => & d. nested ,
699- ImplSource :: DiscriminantKind ( ImplSourceDiscriminantKindData )
700- | ImplSource :: Pointee ( ImplSourcePointeeData ) => & [ ] ,
701691 ImplSource :: TraitAlias ( d) => & d. nested ,
702692 ImplSource :: TraitUpcasting ( d) => & d. nested ,
703693 ImplSource :: ConstDestruct ( i) => & i. nested ,
@@ -741,12 +731,6 @@ impl<'tcx, N> ImplSource<'tcx, N> {
741731 fn_ty : p. fn_ty ,
742732 nested : p. nested . into_iter ( ) . map ( f) . collect ( ) ,
743733 } ) ,
744- ImplSource :: DiscriminantKind ( ImplSourceDiscriminantKindData ) => {
745- ImplSource :: DiscriminantKind ( ImplSourceDiscriminantKindData )
746- }
747- ImplSource :: Pointee ( ImplSourcePointeeData ) => {
748- ImplSource :: Pointee ( ImplSourcePointeeData )
749- }
750734 ImplSource :: TraitAlias ( d) => ImplSource :: TraitAlias ( ImplSourceTraitAliasData {
751735 alias_def_id : d. alias_def_id ,
752736 substs : d. substs ,
@@ -856,13 +840,6 @@ pub struct ImplSourceFnPointerData<'tcx, N> {
856840 pub nested : Vec < N > ,
857841}
858842
859- // FIXME(@lcnr): This should be refactored and merged with other builtin vtables.
860- #[ derive( Clone , Debug , PartialEq , Eq , TyEncodable , TyDecodable , HashStable ) ]
861- pub struct ImplSourceDiscriminantKindData ;
862-
863- #[ derive( Clone , Debug , PartialEq , Eq , TyEncodable , TyDecodable , HashStable ) ]
864- pub struct ImplSourcePointeeData ;
865-
866843#[ derive( Clone , PartialEq , Eq , TyEncodable , TyDecodable , HashStable , Lift ) ]
867844#[ derive( TypeFoldable , TypeVisitable ) ]
868845pub struct ImplSourceConstDestructData < N > {
0 commit comments