@@ -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
@@ -678,8 +672,6 @@ impl<'tcx, N> ImplSource<'tcx, N> {
678
672
ImplSource :: Generator ( c) => c. nested ,
679
673
ImplSource :: Object ( d) => d. nested ,
680
674
ImplSource :: FnPointer ( d) => d. nested ,
681
- ImplSource :: DiscriminantKind ( ImplSourceDiscriminantKindData )
682
- | ImplSource :: Pointee ( ImplSourcePointeeData ) => vec ! [ ] ,
683
675
ImplSource :: TraitAlias ( d) => d. nested ,
684
676
ImplSource :: TraitUpcasting ( d) => d. nested ,
685
677
ImplSource :: ConstDestruct ( i) => i. nested ,
@@ -696,8 +688,6 @@ impl<'tcx, N> ImplSource<'tcx, N> {
696
688
ImplSource :: Generator ( c) => & c. nested ,
697
689
ImplSource :: Object ( d) => & d. nested ,
698
690
ImplSource :: FnPointer ( d) => & d. nested ,
699
- ImplSource :: DiscriminantKind ( ImplSourceDiscriminantKindData )
700
- | ImplSource :: Pointee ( ImplSourcePointeeData ) => & [ ] ,
701
691
ImplSource :: TraitAlias ( d) => & d. nested ,
702
692
ImplSource :: TraitUpcasting ( d) => & d. nested ,
703
693
ImplSource :: ConstDestruct ( i) => & i. nested ,
@@ -741,12 +731,6 @@ impl<'tcx, N> ImplSource<'tcx, N> {
741
731
fn_ty : p. fn_ty ,
742
732
nested : p. nested . into_iter ( ) . map ( f) . collect ( ) ,
743
733
} ) ,
744
- ImplSource :: DiscriminantKind ( ImplSourceDiscriminantKindData ) => {
745
- ImplSource :: DiscriminantKind ( ImplSourceDiscriminantKindData )
746
- }
747
- ImplSource :: Pointee ( ImplSourcePointeeData ) => {
748
- ImplSource :: Pointee ( ImplSourcePointeeData )
749
- }
750
734
ImplSource :: TraitAlias ( d) => ImplSource :: TraitAlias ( ImplSourceTraitAliasData {
751
735
alias_def_id : d. alias_def_id ,
752
736
substs : d. substs ,
@@ -856,13 +840,6 @@ pub struct ImplSourceFnPointerData<'tcx, N> {
856
840
pub nested : Vec < N > ,
857
841
}
858
842
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
-
866
843
#[ derive( Clone , PartialEq , Eq , TyEncodable , TyDecodable , HashStable , Lift ) ]
867
844
#[ derive( TypeFoldable , TypeVisitable ) ]
868
845
pub struct ImplSourceConstDestructData < N > {
0 commit comments