@@ -8,7 +8,6 @@ use rustc_macros::{Decodable_NoContext, Encodable_NoContext};
88use rustc_type_ir_macros:: GenericTypeVisitable ;
99
1010use self :: RegionKind :: * ;
11- use crate :: lift:: Lift ;
1211use crate :: { BoundRegion , BoundVarIndexKind , Interner , PlaceholderRegion } ;
1312
1413rustc_index:: newtype_index! {
@@ -188,33 +187,6 @@ pub enum RegionKind<I: Interner> {
188187
189188impl < I : Interner > Eq for RegionKind < I > { }
190189
191- impl < I : Interner , U : Interner > Lift < U > for RegionKind < I >
192- where
193- I :: EarlyParamRegion : Lift < U , Lifted = U :: EarlyParamRegion > ,
194- BoundRegion < I > : Lift < U , Lifted = BoundRegion < U > > ,
195- I :: LateParamRegion : Lift < U , Lifted = U :: LateParamRegion > ,
196- PlaceholderRegion < I > : Lift < U , Lifted = PlaceholderRegion < U > > ,
197- I :: ErrorGuaranteed : Lift < U , Lifted = U :: ErrorGuaranteed > ,
198- {
199- type Lifted = RegionKind < U > ;
200-
201- fn lift_to_interner ( self , interner : U ) -> Option < Self :: Lifted > {
202- Some ( match self {
203- ReEarlyParam ( region) => ReEarlyParam ( region. lift_to_interner ( interner) ?) ,
204- ReBound ( index, region) => {
205- ReBound ( index. lift_to_interner ( interner) ?, region. lift_to_interner ( interner) ?)
206- }
207- ReLateParam ( region) => ReLateParam ( region. lift_to_interner ( interner) ?) ,
208- ReStatic => ReStatic ,
209- // Inference vars are local to the originating inference context.
210- ReVar ( _) => return None ,
211- RePlaceholder ( placeholder) => RePlaceholder ( placeholder. lift_to_interner ( interner) ?) ,
212- ReErased => ReErased ,
213- ReError ( reported) => ReError ( reported. lift_to_interner ( interner) ?) ,
214- } )
215- }
216- }
217-
218190impl < I : Interner > fmt:: Debug for RegionKind < I > {
219191 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
220192 match self {
0 commit comments