@@ -13,7 +13,7 @@ use crate::infer::canonical::Canonical;
1313use crate :: mir:: ConstraintCategory ;
1414use crate :: ty:: abstract_const:: NotConstEvaluatable ;
1515use crate :: ty:: GenericArgsRef ;
16- use crate :: ty:: { self , AdtKind , Ty , TyCtxt } ;
16+ use crate :: ty:: { self , AdtKind , Ty } ;
1717
1818use rustc_data_structures:: sync:: Lrc ;
1919use rustc_errors:: { Applicability , Diagnostic } ;
@@ -524,13 +524,6 @@ pub enum StatementAsExpression {
524524 NeedsBoxing ,
525525}
526526
527- impl < ' tcx > ty:: Lift < ' tcx > for StatementAsExpression {
528- type Lifted = StatementAsExpression ;
529- fn lift_to_tcx ( self , _tcx : TyCtxt < ' tcx > ) -> Option < StatementAsExpression > {
530- Some ( self )
531- }
532- }
533-
534527#[ derive( Clone , Debug , PartialEq , Eq , HashStable , TyEncodable , TyDecodable ) ]
535528#[ derive( TypeVisitable , TypeFoldable ) ]
536529pub struct MatchExpressionArmCause < ' tcx > {
@@ -736,7 +729,7 @@ pub enum BuiltinImplSource {
736729 TupleUnsizing ,
737730}
738731
739- TrivialTypeTraversalAndLiftImpls ! { BuiltinImplSource }
732+ TrivialTypeTraversalImpls ! { BuiltinImplSource }
740733
741734#[ derive( Clone , Debug , PartialEq , Eq , Hash , HashStable , PartialOrd , Ord ) ]
742735pub enum ObjectSafetyViolation {
0 commit comments