remove trivial mk_predicates
This commit is contained in:
parent
96dd4690c3
commit
8f8cb710cc
1 changed files with 2 additions and 1 deletions
|
|
@ -987,7 +987,8 @@ impl<'tcx> TypeFoldable<'tcx> for ty::Region<'tcx> {
|
|||
|
||||
impl<'tcx> TypeFoldable<'tcx> for ty::Predicate<'tcx> {
|
||||
fn super_fold_with<F: TypeFolder<'tcx>>(&self, folder: &mut F) -> Self {
|
||||
folder.tcx().mk_predicate(ty::PredicateKind::super_fold_with(self.kind, folder))
|
||||
let new = ty::PredicateKind::super_fold_with(self.kind, folder);
|
||||
if new != *self.kind { folder.tcx().mk_predicate(new) } else { *self }
|
||||
}
|
||||
|
||||
fn super_visit_with<V: TypeVisitor<'tcx>>(&self, visitor: &mut V) -> bool {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue