@@ -651,12 +651,6 @@ pub enum ImplSource<'tcx, N> {
651
651
/// Same as above, but for a function pointer type with the given signature.
652
652
FnPointer ( ImplSourceFnPointerData < ' tcx , N > ) ,
653
653
654
- /// ImplSource for a builtin `DeterminantKind` trait implementation.
655
- DiscriminantKind ( ImplSourceDiscriminantKindData ) ,
656
-
657
- /// ImplSource for a builtin `Pointee` trait implementation.
658
- Pointee ( ImplSourcePointeeData ) ,
659
-
660
654
/// ImplSource automatically generated for a generator.
661
655
Generator ( ImplSourceGeneratorData < ' tcx , N > ) ,
662
656
@@ -682,8 +676,6 @@ impl<'tcx, N> ImplSource<'tcx, N> {
682
676
ImplSource :: Future ( c) => c. nested ,
683
677
ImplSource :: Object ( d) => d. nested ,
684
678
ImplSource :: FnPointer ( d) => d. nested ,
685
- ImplSource :: DiscriminantKind ( ImplSourceDiscriminantKindData )
686
- | ImplSource :: Pointee ( ImplSourcePointeeData ) => vec ! [ ] ,
687
679
ImplSource :: TraitAlias ( d) => d. nested ,
688
680
ImplSource :: TraitUpcasting ( d) => d. nested ,
689
681
ImplSource :: ConstDestruct ( i) => i. nested ,
@@ -701,8 +693,6 @@ impl<'tcx, N> ImplSource<'tcx, N> {
701
693
ImplSource :: Future ( c) => & c. nested ,
702
694
ImplSource :: Object ( d) => & d. nested ,
703
695
ImplSource :: FnPointer ( d) => & d. nested ,
704
- ImplSource :: DiscriminantKind ( ImplSourceDiscriminantKindData )
705
- | ImplSource :: Pointee ( ImplSourcePointeeData ) => & [ ] ,
706
696
ImplSource :: TraitAlias ( d) => & d. nested ,
707
697
ImplSource :: TraitUpcasting ( d) => & d. nested ,
708
698
ImplSource :: ConstDestruct ( i) => & i. nested ,
@@ -751,12 +741,6 @@ impl<'tcx, N> ImplSource<'tcx, N> {
751
741
fn_ty : p. fn_ty ,
752
742
nested : p. nested . into_iter ( ) . map ( f) . collect ( ) ,
753
743
} ) ,
754
- ImplSource :: DiscriminantKind ( ImplSourceDiscriminantKindData ) => {
755
- ImplSource :: DiscriminantKind ( ImplSourceDiscriminantKindData )
756
- }
757
- ImplSource :: Pointee ( ImplSourcePointeeData ) => {
758
- ImplSource :: Pointee ( ImplSourcePointeeData )
759
- }
760
744
ImplSource :: TraitAlias ( d) => ImplSource :: TraitAlias ( ImplSourceTraitAliasData {
761
745
alias_def_id : d. alias_def_id ,
762
746
substs : d. substs ,
@@ -876,13 +860,6 @@ pub struct ImplSourceFnPointerData<'tcx, N> {
876
860
pub nested : Vec < N > ,
877
861
}
878
862
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
-
886
863
#[ derive( Clone , PartialEq , Eq , TyEncodable , TyDecodable , HashStable , Lift ) ]
887
864
#[ derive( TypeFoldable , TypeVisitable ) ]
888
865
pub struct ImplSourceConstDestructData < N > {
0 commit comments