@@ -469,7 +469,7 @@ impl fmt::Display for traits::QuantifierKind {
469469
470470impl < ' tcx > fmt:: Display for traits:: Goal < ' tcx > {
471471 fn fmt ( & self , fmt : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
472- use traits:: Goal :: * ;
472+ use traits:: GoalKind :: * ;
473473
474474 match self {
475475 Implies ( hypotheses, goal) => {
@@ -598,25 +598,25 @@ CloneTypeFoldableAndLiftImpls! {
598598}
599599
600600EnumTypeFoldableImpl ! {
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 ) ,
608608 }
609609}
610610
611611EnumLiftImpl ! {
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 ) ,
620620 }
621621}
622622
@@ -633,7 +633,7 @@ impl<'tcx> TypeFoldable<'tcx> for &'tcx ty::List<traits::Goal<'tcx>> {
633633 }
634634}
635635
636- impl < ' tcx > TypeFoldable < ' tcx > for & ' tcx traits:: Goal < ' tcx > {
636+ impl < ' tcx > TypeFoldable < ' tcx > for traits:: Goal < ' tcx > {
637637 fn super_fold_with < ' gcx : ' tcx , F : TypeFolder < ' gcx , ' tcx > > ( & self , folder : & mut F ) -> Self {
638638 let v = ( * * self ) . fold_with ( folder) ;
639639 folder. tcx ( ) . mk_goal ( v)
0 commit comments