Track bound vars
This commit is contained in:
@@ -460,8 +460,10 @@ where
|
||||
{
|
||||
type Lifted = ty::Binder<'tcx, T::Lifted>;
|
||||
fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted> {
|
||||
// FIXME: need to lift inner values
|
||||
tcx.lift(self.skip_binder()).map(|v| ty::Binder::bind(v))
|
||||
let bound_vars = tcx.lift(self.bound_vars());
|
||||
tcx.lift(self.skip_binder())
|
||||
.zip(bound_vars)
|
||||
.map(|(value, vars)| ty::Binder::bind_with_vars(value, vars))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user