Use super_fold in RegionsToStatic visitor

This commit is contained in:
Michael Goulet 2024-05-06 12:19:38 -04:00
parent 25e3949aa1
commit 116f95bb46
6 changed files with 28 additions and 1 deletions

View file

@ -455,7 +455,7 @@ impl<I: Interner> TypeFolder<I> for RegionsToStatic<I> {
I::Binder<T>: TypeSuperFoldable<I>,
{
self.binder.shift_in(1);
let t = t.fold_with(self);
let t = t.super_fold_with(self);
self.binder.shift_out(1);
t
}