@@ -595,42 +595,6 @@ impl<'a, 'tcx, G: Lift<'tcx>> Lift<'tcx> for traits::InEnvironment<'a, G> {
595
595
}
596
596
}
597
597
598
- impl < ' tcx , C > Lift < ' tcx > for chalk_engine:: ExClause < C >
599
- where
600
- C : chalk_engine:: context:: Context + Clone ,
601
- C : traits:: ChalkContextLift < ' tcx > ,
602
- {
603
- type Lifted = C :: LiftedExClause ;
604
-
605
- fn lift_to_tcx ( & self , tcx : TyCtxt < ' tcx > ) -> Option < Self :: Lifted > {
606
- <C as traits:: ChalkContextLift >:: lift_ex_clause_to_tcx ( self , tcx)
607
- }
608
- }
609
-
610
- impl < ' tcx , C > Lift < ' tcx > for chalk_engine:: DelayedLiteral < C >
611
- where
612
- C : chalk_engine:: context:: Context + Clone ,
613
- C : traits:: ChalkContextLift < ' tcx > ,
614
- {
615
- type Lifted = C :: LiftedDelayedLiteral ;
616
-
617
- fn lift_to_tcx ( & self , tcx : TyCtxt < ' tcx > ) -> Option < Self :: Lifted > {
618
- <C as traits:: ChalkContextLift >:: lift_delayed_literal_to_tcx ( self , tcx)
619
- }
620
- }
621
-
622
- impl < ' tcx , C > Lift < ' tcx > for chalk_engine:: Literal < C >
623
- where
624
- C : chalk_engine:: context:: Context + Clone ,
625
- C : traits:: ChalkContextLift < ' tcx > ,
626
- {
627
- type Lifted = C :: LiftedLiteral ;
628
-
629
- fn lift_to_tcx ( & self , tcx : TyCtxt < ' tcx > ) -> Option < Self :: Lifted > {
630
- <C as traits:: ChalkContextLift >:: lift_literal_to_tcx ( self , tcx)
631
- }
632
- }
633
-
634
598
///////////////////////////////////////////////////////////////////////////
635
599
// TypeFoldable implementations.
636
600
@@ -674,39 +638,3 @@ impl<'tcx> TypeFoldable<'tcx> for traits::Clauses<'tcx> {
674
638
self . iter ( ) . any ( |t| t. visit_with ( visitor) )
675
639
}
676
640
}
677
-
678
- impl < ' tcx , C > TypeFoldable < ' tcx > for chalk_engine:: ExClause < C >
679
- where
680
- C : traits:: ExClauseFold < ' tcx > ,
681
- C :: Substitution : Clone ,
682
- C :: RegionConstraint : Clone ,
683
- {
684
- fn super_fold_with < F : TypeFolder < ' tcx > > ( & self , folder : & mut F ) -> Self {
685
- <C as traits:: ExClauseFold >:: fold_ex_clause_with ( self , folder)
686
- }
687
-
688
- fn super_visit_with < V : TypeVisitor < ' tcx > > ( & self , visitor : & mut V ) -> bool {
689
- <C as traits:: ExClauseFold >:: visit_ex_clause_with ( self , visitor)
690
- }
691
- }
692
-
693
- EnumTypeFoldableImpl ! {
694
- impl <' tcx, C > TypeFoldable <' tcx> for chalk_engine:: DelayedLiteral <C > {
695
- ( chalk_engine:: DelayedLiteral :: CannotProve ) ( a) ,
696
- ( chalk_engine:: DelayedLiteral :: Negative ) ( a) ,
697
- ( chalk_engine:: DelayedLiteral :: Positive ) ( a, b) ,
698
- } where
699
- C : chalk_engine:: context:: Context <CanonicalConstrainedSubst : TypeFoldable <' tcx>> + Clone ,
700
- }
701
-
702
- EnumTypeFoldableImpl ! {
703
- impl <' tcx, C > TypeFoldable <' tcx> for chalk_engine:: Literal <C > {
704
- ( chalk_engine:: Literal :: Negative ) ( a) ,
705
- ( chalk_engine:: Literal :: Positive ) ( a) ,
706
- } where
707
- C : chalk_engine:: context:: Context <GoalInEnvironment : Clone + TypeFoldable <' tcx>> + Clone ,
708
- }
709
-
710
- CloneTypeFoldableAndLiftImpls ! {
711
- chalk_engine:: TableIndex ,
712
- }
0 commit comments