@@ -738,22 +738,11 @@ impl<'a, 'tcx> Lift<'tcx> for ty::error::TypeError<'a> {
738738 ProjectionBoundsLength ( x) => ProjectionBoundsLength ( x) ,
739739 Sorts ( ref x) => return tcx. lift ( x) . map ( Sorts ) ,
740740 ExistentialMismatch ( ref x) => return tcx. lift ( x) . map ( ExistentialMismatch ) ,
741- ConstError ( ref x) => return tcx. lift ( x) . map ( ConstError ) ,
741+ ConstMismatch ( ref x) => return tcx. lift ( x) . map ( ConstMismatch ) ,
742742 } )
743743 }
744744}
745745
746- impl < ' a , ' tcx > Lift < ' tcx > for ty:: error:: ConstError < ' a > {
747- type Lifted = ty:: error:: ConstError < ' tcx > ;
748- fn lift_to_tcx < ' b , ' gcx > ( & self , tcx : TyCtxt < ' b , ' gcx , ' tcx > ) -> Option < Self :: Lifted > {
749- use ty:: error:: ConstError :: * ;
750-
751- match * self {
752- Mismatch ( ref x) => return tcx. lift ( x) . map ( Mismatch ) ,
753- }
754- }
755- }
756-
757746impl < ' a , ' tcx > Lift < ' tcx > for ty:: InstanceDef < ' a > {
758747 type Lifted = ty:: InstanceDef < ' tcx > ;
759748 fn lift_to_tcx < ' b , ' gcx > ( & self , tcx : TyCtxt < ' b , ' gcx , ' tcx > ) -> Option < Self :: Lifted > {
@@ -1332,13 +1321,7 @@ EnumTypeFoldableImpl! {
13321321 ( ty:: error:: TypeError :: ProjectionBoundsLength ) ( x) ,
13331322 ( ty:: error:: TypeError :: Sorts ) ( x) ,
13341323 ( ty:: error:: TypeError :: ExistentialMismatch ) ( x) ,
1335- ( ty:: error:: TypeError :: ConstError ) ( x) ,
1336- }
1337- }
1338-
1339- EnumTypeFoldableImpl ! {
1340- impl <' tcx> TypeFoldable <' tcx> for ty:: error:: ConstError <' tcx> {
1341- ( ty:: error:: ConstError :: Mismatch ) ( x) ,
1324+ ( ty:: error:: TypeError :: ConstMismatch ) ( x) ,
13421325 }
13431326}
13441327
0 commit comments