@@ -469,7 +469,7 @@ impl fmt::Display for traits::QuantifierKind {
469
469
470
470
impl < ' tcx > fmt:: Display for traits:: Goal < ' tcx > {
471
471
fn fmt ( & self , fmt : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
472
- use traits:: Goal :: * ;
472
+ use traits:: GoalKind :: * ;
473
473
474
474
match self {
475
475
Implies ( hypotheses, goal) => {
@@ -598,25 +598,25 @@ CloneTypeFoldableAndLiftImpls! {
598
598
}
599
599
600
600
EnumTypeFoldableImpl ! {
601
- impl <' tcx> TypeFoldable <' tcx> for traits:: Goal <' tcx> {
602
- ( traits:: Goal :: Implies ) ( hypotheses, goal) ,
603
- ( traits:: Goal :: And ) ( goal1, goal2) ,
604
- ( traits:: Goal :: Not ) ( goal) ,
605
- ( traits:: Goal :: DomainGoal ) ( domain_goal) ,
606
- ( traits:: Goal :: Quantified ) ( qkind, goal) ,
607
- ( traits:: Goal :: CannotProve ) ,
601
+ impl <' tcx> TypeFoldable <' tcx> for traits:: GoalKind <' tcx> {
602
+ ( traits:: GoalKind :: Implies ) ( hypotheses, goal) ,
603
+ ( traits:: GoalKind :: And ) ( goal1, goal2) ,
604
+ ( traits:: GoalKind :: Not ) ( goal) ,
605
+ ( traits:: GoalKind :: DomainGoal ) ( domain_goal) ,
606
+ ( traits:: GoalKind :: Quantified ) ( qkind, goal) ,
607
+ ( traits:: GoalKind :: CannotProve ) ,
608
608
}
609
609
}
610
610
611
611
EnumLiftImpl ! {
612
- impl <' a, ' tcx> Lift <' tcx> for traits:: Goal <' a> {
613
- type Lifted = traits:: Goal <' tcx>;
614
- ( traits:: Goal :: Implies ) ( hypotheses, goal) ,
615
- ( traits:: Goal :: And ) ( goal1, goal2) ,
616
- ( traits:: Goal :: Not ) ( goal) ,
617
- ( traits:: Goal :: DomainGoal ) ( domain_goal) ,
618
- ( traits:: Goal :: Quantified ) ( kind, goal) ,
619
- ( traits:: Goal :: CannotProve ) ,
612
+ impl <' a, ' tcx> Lift <' tcx> for traits:: GoalKind <' a> {
613
+ type Lifted = traits:: GoalKind <' tcx>;
614
+ ( traits:: GoalKind :: Implies ) ( hypotheses, goal) ,
615
+ ( traits:: GoalKind :: And ) ( goal1, goal2) ,
616
+ ( traits:: GoalKind :: Not ) ( goal) ,
617
+ ( traits:: GoalKind :: DomainGoal ) ( domain_goal) ,
618
+ ( traits:: GoalKind :: Quantified ) ( kind, goal) ,
619
+ ( traits:: GoalKind :: CannotProve ) ,
620
620
}
621
621
}
622
622
@@ -633,7 +633,7 @@ impl<'tcx> TypeFoldable<'tcx> for &'tcx ty::List<traits::Goal<'tcx>> {
633
633
}
634
634
}
635
635
636
- impl < ' tcx > TypeFoldable < ' tcx > for & ' tcx traits:: Goal < ' tcx > {
636
+ impl < ' tcx > TypeFoldable < ' tcx > for traits:: Goal < ' tcx > {
637
637
fn super_fold_with < ' gcx : ' tcx , F : TypeFolder < ' gcx , ' tcx > > ( & self , folder : & mut F ) -> Self {
638
638
let v = ( * * self ) . fold_with ( folder) ;
639
639
folder. tcx ( ) . mk_goal ( v)
0 commit comments