@@ -660,9 +660,6 @@ pub enum ImplSource<'tcx, N> {
660
660
661
661
/// ImplSource for trait upcasting coercion
662
662
TraitUpcasting ( ImplSourceTraitUpcastingData < N > ) ,
663
-
664
- /// ImplSource for a trait alias.
665
- TraitAlias ( ImplSourceTraitAliasData < ' tcx , N > ) ,
666
663
}
667
664
668
665
impl < ' tcx , N > ImplSource < ' tcx , N > {
@@ -671,7 +668,6 @@ impl<'tcx, N> ImplSource<'tcx, N> {
671
668
ImplSource :: UserDefined ( i) => i. nested ,
672
669
ImplSource :: Param ( n, _) | ImplSource :: Builtin ( n) => n,
673
670
ImplSource :: Object ( d) => d. nested ,
674
- ImplSource :: TraitAlias ( d) => d. nested ,
675
671
ImplSource :: TraitUpcasting ( d) => d. nested ,
676
672
}
677
673
}
@@ -681,7 +677,6 @@ impl<'tcx, N> ImplSource<'tcx, N> {
681
677
ImplSource :: UserDefined ( i) => & i. nested ,
682
678
ImplSource :: Param ( n, _) | ImplSource :: Builtin ( n) => & n,
683
679
ImplSource :: Object ( d) => & d. nested ,
684
- ImplSource :: TraitAlias ( d) => & d. nested ,
685
680
ImplSource :: TraitUpcasting ( d) => & d. nested ,
686
681
}
687
682
}
@@ -691,7 +686,6 @@ impl<'tcx, N> ImplSource<'tcx, N> {
691
686
ImplSource :: UserDefined ( i) => & mut i. nested ,
692
687
ImplSource :: Param ( n, _) | ImplSource :: Builtin ( n) => n,
693
688
ImplSource :: Object ( d) => & mut d. nested ,
694
- ImplSource :: TraitAlias ( d) => & mut d. nested ,
695
689
ImplSource :: TraitUpcasting ( d) => & mut d. nested ,
696
690
}
697
691
}
@@ -713,11 +707,6 @@ impl<'tcx, N> ImplSource<'tcx, N> {
713
707
vtable_base : o. vtable_base ,
714
708
nested : o. nested . into_iter ( ) . map ( f) . collect ( ) ,
715
709
} ) ,
716
- ImplSource :: TraitAlias ( d) => ImplSource :: TraitAlias ( ImplSourceTraitAliasData {
717
- alias_def_id : d. alias_def_id ,
718
- substs : d. substs ,
719
- nested : d. nested . into_iter ( ) . map ( f) . collect ( ) ,
720
- } ) ,
721
710
ImplSource :: TraitUpcasting ( d) => {
722
711
ImplSource :: TraitUpcasting ( ImplSourceTraitUpcastingData {
723
712
vtable_vptr_slot : d. vtable_vptr_slot ,
@@ -773,14 +762,6 @@ pub struct ImplSourceObjectData<N> {
773
762
pub nested : Vec < N > ,
774
763
}
775
764
776
- #[ derive( Clone , PartialEq , Eq , TyEncodable , TyDecodable , HashStable , Lift ) ]
777
- #[ derive( TypeFoldable , TypeVisitable ) ]
778
- pub struct ImplSourceTraitAliasData < ' tcx , N > {
779
- pub alias_def_id : DefId ,
780
- pub substs : SubstsRef < ' tcx > ,
781
- pub nested : Vec < N > ,
782
- }
783
-
784
765
#[ derive( Clone , Debug , PartialEq , Eq , Hash , HashStable , PartialOrd , Ord ) ]
785
766
pub enum ObjectSafetyViolation {
786
767
/// `Self: Sized` declared on the trait.
0 commit comments