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