@@ -13,7 +13,7 @@ use crate::infer::canonical::Canonical;
13
13
use crate :: mir:: ConstraintCategory ;
14
14
use crate :: ty:: abstract_const:: NotConstEvaluatable ;
15
15
use crate :: ty:: GenericArgsRef ;
16
- use crate :: ty:: { self , AdtKind , Ty , TyCtxt } ;
16
+ use crate :: ty:: { self , AdtKind , Ty } ;
17
17
18
18
use rustc_data_structures:: sync:: Lrc ;
19
19
use rustc_errors:: { Applicability , Diagnostic } ;
@@ -524,13 +524,6 @@ pub enum StatementAsExpression {
524
524
NeedsBoxing ,
525
525
}
526
526
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
-
534
527
#[ derive( Clone , Debug , PartialEq , Eq , HashStable , TyEncodable , TyDecodable ) ]
535
528
#[ derive( TypeVisitable , TypeFoldable ) ]
536
529
pub struct MatchExpressionArmCause < ' tcx > {
@@ -736,7 +729,7 @@ pub enum BuiltinImplSource {
736
729
TupleUnsizing ,
737
730
}
738
731
739
- TrivialTypeTraversalAndLiftImpls ! { BuiltinImplSource }
732
+ TrivialTypeTraversalImpls ! { BuiltinImplSource }
740
733
741
734
#[ derive( Clone , Debug , PartialEq , Eq , Hash , HashStable , PartialOrd , Ord ) ]
742
735
pub enum ObjectSafetyViolation {
0 commit comments