1
Fork 0

Add type flags support for Ty and Const late-bound regions

This commit is contained in:
Michael Goulet 2022-12-15 02:38:39 +00:00
parent e5d46a5bda
commit 3c41003873
7 changed files with 42 additions and 14 deletions

View file

@ -1912,7 +1912,7 @@ impl<'tcx> WfCheckingCtxt<'_, 'tcx> {
}
let pred = obligation.predicate;
// Match the existing behavior.
if pred.is_global() && !pred.has_late_bound_regions() {
if pred.is_global() && !pred.has_late_bound_vars() {
let pred = self.normalize(span, None, pred);
let hir_node = tcx.hir().find(self.body_id);