@@ -334,27 +334,27 @@ pub type TraitObligations<'tcx> = Vec<TraitObligation<'tcx>>;
334334/// are used for representing the trait system in the form of
335335/// logic programming clauses. They are part of the interface
336336/// for the chalk SLG solver.
337- #[ derive( Clone , Copy , PartialEq , Eq , Hash , Debug , HashStable , TypeFoldable ) ]
337+ #[ derive( Clone , Copy , PartialEq , Eq , Hash , Debug , HashStable , TypeFoldable , Lift ) ]
338338pub enum WhereClause < ' tcx > {
339339 Implemented ( ty:: TraitPredicate < ' tcx > ) ,
340340 ProjectionEq ( ty:: ProjectionPredicate < ' tcx > ) ,
341341 RegionOutlives ( ty:: RegionOutlivesPredicate < ' tcx > ) ,
342342 TypeOutlives ( ty:: TypeOutlivesPredicate < ' tcx > ) ,
343343}
344344
345- #[ derive( Clone , Copy , PartialEq , Eq , Hash , Debug , HashStable , TypeFoldable ) ]
345+ #[ derive( Clone , Copy , PartialEq , Eq , Hash , Debug , HashStable , TypeFoldable , Lift ) ]
346346pub enum WellFormed < ' tcx > {
347347 Trait ( ty:: TraitPredicate < ' tcx > ) ,
348348 Ty ( Ty < ' tcx > ) ,
349349}
350350
351- #[ derive( Clone , Copy , PartialEq , Eq , Hash , Debug , HashStable , TypeFoldable ) ]
351+ #[ derive( Clone , Copy , PartialEq , Eq , Hash , Debug , HashStable , TypeFoldable , Lift ) ]
352352pub enum FromEnv < ' tcx > {
353353 Trait ( ty:: TraitPredicate < ' tcx > ) ,
354354 Ty ( Ty < ' tcx > ) ,
355355}
356356
357- #[ derive( Clone , Copy , PartialEq , Eq , Hash , Debug , HashStable , TypeFoldable ) ]
357+ #[ derive( Clone , Copy , PartialEq , Eq , Hash , Debug , HashStable , TypeFoldable , Lift ) ]
358358pub enum DomainGoal < ' tcx > {
359359 Holds ( WhereClause < ' tcx > ) ,
360360 WellFormed ( WellFormed < ' tcx > ) ,
@@ -370,7 +370,7 @@ pub enum QuantifierKind {
370370 Existential ,
371371}
372372
373- #[ derive( Copy , Clone , PartialEq , Eq , Hash , Debug , HashStable , TypeFoldable ) ]
373+ #[ derive( Copy , Clone , PartialEq , Eq , Hash , Debug , HashStable , TypeFoldable , Lift ) ]
374374pub enum GoalKind < ' tcx > {
375375 Implies ( Clauses < ' tcx > , Goal < ' tcx > ) ,
376376 And ( Goal < ' tcx > , Goal < ' tcx > ) ,
0 commit comments