@@ -1484,7 +1484,7 @@ impl<'tcx> TyCtxt<'tcx> {
14841484 }
14851485
14861486 pub fn lift < T : Lift < TyCtxt < ' tcx > > > ( self , value : T ) -> Option < T :: Lifted > {
1487- value. lift_to_tcx ( self )
1487+ value. lift_to_interner ( self )
14881488 }
14891489
14901490 /// Creates a type context. To use the context call `fn enter` which
@@ -2087,7 +2087,7 @@ macro_rules! nop_lift {
20872087 ( $set: ident; $ty: ty => $lifted: ty) => {
20882088 impl <' a, ' tcx> Lift <TyCtxt <' tcx>> for $ty {
20892089 type Lifted = $lifted;
2090- fn lift_to_tcx ( self , tcx: TyCtxt <' tcx>) -> Option <Self :: Lifted > {
2090+ fn lift_to_interner ( self , tcx: TyCtxt <' tcx>) -> Option <Self :: Lifted > {
20912091 // Assert that the set has the right type.
20922092 // Given an argument that has an interned type, the return type has the type of
20932093 // the corresponding interner set. This won't actually return anything, we're
@@ -2122,7 +2122,7 @@ macro_rules! nop_list_lift {
21222122 ( $set: ident; $ty: ty => $lifted: ty) => {
21232123 impl <' a, ' tcx> Lift <TyCtxt <' tcx>> for & ' a List <$ty> {
21242124 type Lifted = & ' tcx List <$lifted>;
2125- fn lift_to_tcx ( self , tcx: TyCtxt <' tcx>) -> Option <Self :: Lifted > {
2125+ fn lift_to_interner ( self , tcx: TyCtxt <' tcx>) -> Option <Self :: Lifted > {
21262126 // Assert that the set has the right type.
21272127 if false {
21282128 let _x: & InternedSet <' tcx, List <$lifted>> = & tcx. interners. $set;
@@ -2160,7 +2160,7 @@ macro_rules! nop_slice_lift {
21602160 ( $ty: ty => $lifted: ty) => {
21612161 impl <' a, ' tcx> Lift <TyCtxt <' tcx>> for & ' a [ $ty] {
21622162 type Lifted = & ' tcx [ $lifted] ;
2163- fn lift_to_tcx ( self , tcx: TyCtxt <' tcx>) -> Option <Self :: Lifted > {
2163+ fn lift_to_interner ( self , tcx: TyCtxt <' tcx>) -> Option <Self :: Lifted > {
21642164 if self . is_empty( ) {
21652165 return Some ( & [ ] ) ;
21662166 }
0 commit comments