mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-24 14:12:42 +00:00
Add a facet type rewrite constraint resolution step that is run every time a facet type is constructed, in line with the design here: https://docs.carbon-lang.dev/docs/design/generics/appendix-rewrite-constraints.html#rewrite-constraint-resolution The resolution has multiple steps, and this PR implements the first of them, finding and diagnosing any duplicate rewrites to the same associated constant. We already diagnosed this for impl construction, now we do so for all facet types, which includes the one used for impl construction, so this diagnostic is a superset of the previous.