mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-21 13:56:40 +00:00
The type of `.Self` introduced by `where` may contain a `.Self` inside it. Freeze the type so that we have a consistent view of `.Self` inside the facet type, where they are all frozen. The type of `.Self` only has extend constraints from the LHS of the `where`. So we need to copy any non-extend constraints into the `where_stack` so they are available as early-impls and can be used for impl lookups on the RHS of the where. We need to freeze any `.Self` references in these just as we do for rewrite constraints.