mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 19:01:07 +01:00
The `IsPeriodSelf` function is problematic, as it's possible for a FacetType to contain multiple `.Self` bindings which refer to different selves, when one FacetType is nested within another: `I where .Self.J = (K where .Self impls type)`. The `WhereExpr` instruction contains the instruction of the `.Self` of that `where` clause, which is what `IsPeriodSelf` is looking for, so we can compare with its constant value instead.