@@ -441,7 +441,7 @@ bitflags! {
441441
442442 // true if there are "names" of types and regions and so forth
443443 // that are local to a particular fn
444- const HAS_LOCAL_NAMES = 1 << 10 ;
444+ const HAS_FREE_LOCAL_NAMES = 1 << 10 ;
445445
446446 // Present if the type belongs in a local type context.
447447 // Only set for TyInfer other than Fresh.
@@ -455,6 +455,10 @@ bitflags! {
455455 // ought to be true only for the results of canonicalization.
456456 const HAS_CANONICAL_VARS = 1 << 13 ;
457457
458+ /// Does this have any `ReLateBound` regions? Used to check
459+ /// if a global bound is safe to evaluate.
460+ const HAS_RE_LATE_BOUND = 1 << 14 ;
461+
458462 const NEEDS_SUBST = TypeFlags :: HAS_PARAMS . bits |
459463 TypeFlags :: HAS_SELF . bits |
460464 TypeFlags :: HAS_RE_EARLY_BOUND . bits;
@@ -472,9 +476,10 @@ bitflags! {
472476 TypeFlags :: HAS_TY_ERR . bits |
473477 TypeFlags :: HAS_PROJECTION . bits |
474478 TypeFlags :: HAS_TY_CLOSURE . bits |
475- TypeFlags :: HAS_LOCAL_NAMES . bits |
479+ TypeFlags :: HAS_FREE_LOCAL_NAMES . bits |
476480 TypeFlags :: KEEP_IN_LOCAL_TCX . bits |
477- TypeFlags :: HAS_CANONICAL_VARS . bits;
481+ TypeFlags :: HAS_CANONICAL_VARS . bits |
482+ TypeFlags :: HAS_RE_LATE_BOUND . bits;
478483 }
479484}
480485
0 commit comments