@@ -1483,7 +1483,7 @@ impl<'tcx> TyCtxt<'tcx> {
1483
1483
}
1484
1484
1485
1485
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 )
1487
1487
}
1488
1488
1489
1489
/// Creates a type context. To use the context call `fn enter` which
@@ -2086,7 +2086,7 @@ macro_rules! nop_lift {
2086
2086
( $set: ident; $ty: ty => $lifted: ty) => {
2087
2087
impl <' a, ' tcx> Lift <TyCtxt <' tcx>> for $ty {
2088
2088
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 > {
2090
2090
// Assert that the set has the right type.
2091
2091
// Given an argument that has an interned type, the return type has the type of
2092
2092
// the corresponding interner set. This won't actually return anything, we're
@@ -2121,7 +2121,7 @@ macro_rules! nop_list_lift {
2121
2121
( $set: ident; $ty: ty => $lifted: ty) => {
2122
2122
impl <' a, ' tcx> Lift <TyCtxt <' tcx>> for & ' a List <$ty> {
2123
2123
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 > {
2125
2125
// Assert that the set has the right type.
2126
2126
if false {
2127
2127
let _x: & InternedSet <' tcx, List <$lifted>> = & tcx. interners. $set;
@@ -2159,7 +2159,7 @@ macro_rules! nop_slice_lift {
2159
2159
( $ty: ty => $lifted: ty) => {
2160
2160
impl <' a, ' tcx> Lift <TyCtxt <' tcx>> for & ' a [ $ty] {
2161
2161
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 > {
2163
2163
if self . is_empty( ) {
2164
2164
return Some ( & [ ] ) ;
2165
2165
}
0 commit comments