Add type flags support for Ty and Const late-bound regions
This commit is contained in:
parent
e5d46a5bda
commit
3c41003873
7 changed files with 42 additions and 14 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue