Skip to content

Commit 876192e

Browse files
committed
fold_with not super_fold_with in TypeFoldable impl for Predicate
1 parent 4cd6f85 commit 876192e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_middle/src/ty/structural_impls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ impl<'tcx> TypeFoldable<'tcx> for ty::Region<'tcx> {
10171017

10181018
impl<'tcx> TypeFoldable<'tcx> for ty::Predicate<'tcx> {
10191019
fn super_fold_with<F: TypeFolder<'tcx>>(self, folder: &mut F) -> Self {
1020-
let new = self.inner.kind.super_fold_with(folder);
1020+
let new = self.inner.kind.fold_with(folder);
10211021
folder.tcx().reuse_or_mk_predicate(self, new)
10221022
}
10231023

src/test/ui/specialization/min_specialization/repeated_projection_type.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: cannot specialize on `ForAll(Binder(ProjectionPredicate(ProjectionTy { substs: [V], item_def_id: DefId(0:6 ~ repeated_projection_type[317d]::Id::This) }, (I,))))`
1+
error: cannot specialize on `Binder(ProjectionPredicate(ProjectionTy { substs: [V], item_def_id: DefId(0:6 ~ repeated_projection_type[317d]::Id::This) }, (I,)))`
22
--> $DIR/repeated_projection_type.rs:19:1
33
|
44
LL | / impl<I, V: Id<This = (I,)>> X for V {

0 commit comments

Comments
 (0)