mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-16 22:58:12 +00:00
When building a FacetType from an existing FacetType, don't diagnose rewrite constraints that are compatible with the existing FacetType. To do this, we consider two RHS as identical[1] if they have the same constant value after substituting from available rewrite constraints in the being-constructed FacetType, since the syntactic representation of the RHS is lost during eval. [1] https://docs.google.com/document/d/1Yt-i5AmF76LSvD4TrWRIAE_92kii6j5yFiW-S7ahzlg/edit?tab=t.0#heading=h.qti4vn50zwy