@@ -1483,7 +1483,7 @@ impl<'tcx> TyCtxt<'tcx> {
14831483 }
14841484
14851485 pub fn lift < T : Lift < TyCtxt < ' tcx > > > ( self , value : T ) -> Option < T :: Lifted > {
1486- value. lift_to_tcx ( self )
1486+ value. lift_to_interner ( self )
14871487 }
14881488
14891489 /// Creates a type context. To use the context call `fn enter` which
@@ -2086,7 +2086,7 @@ macro_rules! nop_lift {
20862086 ( $set: ident; $ty: ty => $lifted: ty) => {
20872087 impl <' a, ' tcx> Lift <TyCtxt <' tcx>> for $ty {
20882088 type Lifted = $lifted;
2089- fn lift_to_tcx ( self , tcx: TyCtxt <' tcx>) -> Option <Self :: Lifted > {
2089+ fn lift_to_interner ( self , tcx: TyCtxt <' tcx>) -> Option <Self :: Lifted > {
20902090 // Assert that the set has the right type.
20912091 // Given an argument that has an interned type, the return type has the type of
20922092 // the corresponding interner set. This won't actually return anything, we're
@@ -2121,7 +2121,7 @@ macro_rules! nop_list_lift {
21212121 ( $set: ident; $ty: ty => $lifted: ty) => {
21222122 impl <' a, ' tcx> Lift <TyCtxt <' tcx>> for & ' a List <$ty> {
21232123 type Lifted = & ' tcx List <$lifted>;
2124- fn lift_to_tcx ( self , tcx: TyCtxt <' tcx>) -> Option <Self :: Lifted > {
2124+ fn lift_to_interner ( self , tcx: TyCtxt <' tcx>) -> Option <Self :: Lifted > {
21252125 // Assert that the set has the right type.
21262126 if false {
21272127 let _x: & InternedSet <' tcx, List <$lifted>> = & tcx. interners. $set;
@@ -2159,7 +2159,7 @@ macro_rules! nop_slice_lift {
21592159 ( $ty: ty => $lifted: ty) => {
21602160 impl <' a, ' tcx> Lift <TyCtxt <' tcx>> for & ' a [ $ty] {
21612161 type Lifted = & ' tcx [ $lifted] ;
2162- fn lift_to_tcx ( self , tcx: TyCtxt <' tcx>) -> Option <Self :: Lifted > {
2162+ fn lift_to_interner ( self , tcx: TyCtxt <' tcx>) -> Option <Self :: Lifted > {
21632163 if self . is_empty( ) {
21642164 return Some ( & [ ] ) ;
21652165 }
0 commit comments