mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-24 12:02:44 +00: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.