stop folding UnevaluatedConst
This commit is contained in:
@@ -126,13 +126,6 @@ pub trait TypeFolder<'tcx>: FallibleTypeFolder<'tcx, Error = !> {
|
||||
c.super_fold_with(self)
|
||||
}
|
||||
|
||||
fn fold_ty_unevaluated(
|
||||
&mut self,
|
||||
uv: ty::UnevaluatedConst<'tcx>,
|
||||
) -> ty::UnevaluatedConst<'tcx> {
|
||||
uv.super_fold_with(self)
|
||||
}
|
||||
|
||||
fn fold_predicate(&mut self, p: ty::Predicate<'tcx>) -> ty::Predicate<'tcx> {
|
||||
p.super_fold_with(self)
|
||||
}
|
||||
@@ -169,13 +162,6 @@ pub trait FallibleTypeFolder<'tcx>: Sized {
|
||||
c.try_super_fold_with(self)
|
||||
}
|
||||
|
||||
fn try_fold_ty_unevaluated(
|
||||
&mut self,
|
||||
c: ty::UnevaluatedConst<'tcx>,
|
||||
) -> Result<ty::UnevaluatedConst<'tcx>, Self::Error> {
|
||||
c.try_super_fold_with(self)
|
||||
}
|
||||
|
||||
fn try_fold_predicate(
|
||||
&mut self,
|
||||
p: ty::Predicate<'tcx>,
|
||||
@@ -215,13 +201,6 @@ where
|
||||
Ok(self.fold_const(c))
|
||||
}
|
||||
|
||||
fn try_fold_ty_unevaluated(
|
||||
&mut self,
|
||||
c: ty::UnevaluatedConst<'tcx>,
|
||||
) -> Result<ty::UnevaluatedConst<'tcx>, !> {
|
||||
Ok(self.fold_ty_unevaluated(c))
|
||||
}
|
||||
|
||||
fn try_fold_predicate(&mut self, p: ty::Predicate<'tcx>) -> Result<ty::Predicate<'tcx>, !> {
|
||||
Ok(self.fold_predicate(p))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user