mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-19 20:46:42 +00:00
This imports the entire `NamedConstraint` structure when importing `NamedConstraintDecl`. This will be required to identify a facet type that contains a named constraint, as we will need to pull the `require` decls out of the `NamedConstraint` structure to do so. I tried making the `InterfaceDecl` code path [templated](https://github.com/carbon-language/carbon-lang/pull/6308#discussion_r2482655927) to reuse it, but it was a lot of template parameters including field pointers into `InterfaceDecl`, `GenericInterfaceType`, `SpecificInterface`, and it was very hard to read so I gave up on that approach here.