Skip to content

Commit 47eef0e

Browse files
Account for TypeFlags in OpportunisticRegionResolver
1 parent 70dab5a commit 47eef0e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler/rustc_infer/src/infer/resolve.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ impl<'a, 'tcx> TypeFolder<TyCtxt<'tcx>> for OpportunisticRegionResolver<'a, 'tcx
107107
ct.super_fold_with(self)
108108
}
109109
}
110+
111+
fn fold_predicate(&mut self, p: ty::Predicate<'tcx>) -> ty::Predicate<'tcx> {
112+
if !p.has_infer_regions() { p } else { p.super_fold_with(self) }
113+
}
110114
}
111115

112116
///////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)