@@ -86,7 +86,7 @@ pub enum Reveal {
8686///
8787/// We do not want to intern this as there are a lot of obligation causes which
8888/// only live for a short period of time.
89- #[ derive( Clone , Debug , PartialEq , Eq , Lift , HashStable , TyEncodable , TyDecodable ) ]
89+ #[ derive( Clone , Debug , PartialEq , Eq , HashStable , TyEncodable , TyDecodable ) ]
9090#[ derive( TypeVisitable , TypeFoldable ) ]
9191pub struct ObligationCause < ' tcx > {
9292 pub span : Span ,
@@ -194,15 +194,15 @@ impl<'tcx> ObligationCause<'tcx> {
194194 }
195195}
196196
197- #[ derive( Clone , Debug , PartialEq , Eq , Lift , HashStable , TyEncodable , TyDecodable ) ]
197+ #[ derive( Clone , Debug , PartialEq , Eq , HashStable , TyEncodable , TyDecodable ) ]
198198#[ derive( TypeVisitable , TypeFoldable ) ]
199199pub struct UnifyReceiverContext < ' tcx > {
200200 pub assoc_item : ty:: AssocItem ,
201201 pub param_env : ty:: ParamEnv < ' tcx > ,
202202 pub args : GenericArgsRef < ' tcx > ,
203203}
204204
205- #[ derive( Clone , PartialEq , Eq , Lift , Default , HashStable ) ]
205+ #[ derive( Clone , PartialEq , Eq , Default , HashStable ) ]
206206#[ derive( TypeVisitable , TypeFoldable , TyEncodable , TyDecodable ) ]
207207pub struct InternedObligationCauseCode < ' tcx > {
208208 /// `None` for `ObligationCauseCode::MiscObligation` (a common case, occurs ~60% of
@@ -238,7 +238,7 @@ impl<'tcx> std::ops::Deref for InternedObligationCauseCode<'tcx> {
238238 }
239239}
240240
241- #[ derive( Clone , Debug , PartialEq , Eq , Lift , HashStable , TyEncodable , TyDecodable ) ]
241+ #[ derive( Clone , Debug , PartialEq , Eq , HashStable , TyEncodable , TyDecodable ) ]
242242#[ derive( TypeVisitable , TypeFoldable ) ]
243243pub enum ObligationCauseCode < ' tcx > {
244244 /// Not well classified or should be obvious from the span.
@@ -470,7 +470,7 @@ pub enum WellFormedLoc {
470470 } ,
471471}
472472
473- #[ derive( Clone , Debug , PartialEq , Eq , Lift , HashStable , TyEncodable , TyDecodable ) ]
473+ #[ derive( Clone , Debug , PartialEq , Eq , HashStable , TyEncodable , TyDecodable ) ]
474474#[ derive( TypeVisitable , TypeFoldable ) ]
475475pub struct ImplDerivedObligationCause < ' tcx > {
476476 pub derived : DerivedObligationCause < ' tcx > ,
@@ -531,7 +531,7 @@ impl<'tcx> ty::Lift<'tcx> for StatementAsExpression {
531531 }
532532}
533533
534- #[ derive( Clone , Debug , PartialEq , Eq , Lift , HashStable , TyEncodable , TyDecodable ) ]
534+ #[ derive( Clone , Debug , PartialEq , Eq , HashStable , TyEncodable , TyDecodable ) ]
535535#[ derive( TypeVisitable , TypeFoldable ) ]
536536pub struct MatchExpressionArmCause < ' tcx > {
537537 pub arm_block_id : Option < hir:: HirId > ,
@@ -547,7 +547,7 @@ pub struct MatchExpressionArmCause<'tcx> {
547547}
548548
549549#[ derive( Copy , Clone , Debug , PartialEq , Eq ) ]
550- #[ derive( Lift , TypeFoldable , TypeVisitable , HashStable , TyEncodable , TyDecodable ) ]
550+ #[ derive( TypeFoldable , TypeVisitable , HashStable , TyEncodable , TyDecodable ) ]
551551pub struct IfExpressionCause < ' tcx > {
552552 pub then_id : hir:: HirId ,
553553 pub else_id : hir:: HirId ,
@@ -557,7 +557,7 @@ pub struct IfExpressionCause<'tcx> {
557557 pub opt_suggest_box_span : Option < Span > ,
558558}
559559
560- #[ derive( Clone , Debug , PartialEq , Eq , Lift , HashStable , TyEncodable , TyDecodable ) ]
560+ #[ derive( Clone , Debug , PartialEq , Eq , HashStable , TyEncodable , TyDecodable ) ]
561561#[ derive( TypeVisitable , TypeFoldable ) ]
562562pub struct DerivedObligationCause < ' tcx > {
563563 /// The trait predicate of the parent obligation that led to the
@@ -570,7 +570,7 @@ pub struct DerivedObligationCause<'tcx> {
570570 pub parent_code : InternedObligationCauseCode < ' tcx > ,
571571}
572572
573- #[ derive( Clone , Debug , TypeVisitable , Lift ) ]
573+ #[ derive( Clone , Debug , TypeVisitable ) ]
574574pub enum SelectionError < ' tcx > {
575575 /// The trait is not implemented.
576576 Unimplemented ,
@@ -593,7 +593,7 @@ pub enum SelectionError<'tcx> {
593593 OpaqueTypeAutoTraitLeakageUnknown ( DefId ) ,
594594}
595595
596- #[ derive( Clone , Debug , TypeVisitable , Lift ) ]
596+ #[ derive( Clone , Debug , TypeVisitable ) ]
597597pub struct SelectionOutputTypeParameterMismatch < ' tcx > {
598598 pub found_trait_ref : ty:: PolyTraitRef < ' tcx > ,
599599 pub expected_trait_ref : ty:: PolyTraitRef < ' tcx > ,
@@ -638,7 +638,7 @@ pub type SelectionResult<'tcx, T> = Result<Option<T>, SelectionError<'tcx>>;
638638/// ### The type parameter `N`
639639///
640640/// See explanation on `ImplSourceUserDefinedData`.
641- #[ derive( Clone , PartialEq , Eq , TyEncodable , TyDecodable , HashStable , Lift ) ]
641+ #[ derive( Clone , PartialEq , Eq , TyEncodable , TyDecodable , HashStable ) ]
642642#[ derive( TypeFoldable , TypeVisitable ) ]
643643pub enum ImplSource < ' tcx , N > {
644644 /// ImplSource identifying a particular impl.
@@ -704,7 +704,7 @@ impl<'tcx, N> ImplSource<'tcx, N> {
704704/// is `Obligation`, as one might expect. During codegen, however, this
705705/// is `()`, because codegen only requires a shallow resolution of an
706706/// impl, and nested obligations are satisfied later.
707- #[ derive( Clone , PartialEq , Eq , TyEncodable , TyDecodable , HashStable , Lift ) ]
707+ #[ derive( Clone , PartialEq , Eq , TyEncodable , TyDecodable , HashStable ) ]
708708#[ derive( TypeFoldable , TypeVisitable ) ]
709709pub struct ImplSourceUserDefinedData < ' tcx , N > {
710710 pub impl_def_id : DefId ,
0 commit comments