mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 15:00:10 +01:00
Forward impl declaration of an incomplete interface (#5168)
Revise rules for what is required and provided by declarations and definitions of interfaces and impls. In particular: - allow `impl` declarations of incomplete interfaces, and - shift from a "use the information from the type definition if it happens to be complete" model to a "only use the information from the definition in contexts where it is required to be defined or complete" model. Resolves questions-for-leads issues [#4566](https://github.com/carbon-language/carbon-lang/issues/4566), [#4672](https://github.com/carbon-language/carbon-lang/issues/4672), [#4579](https://github.com/carbon-language/carbon-lang/issues/4579). --------- Co-authored-by: Josh L <josh11b@users.noreply.github.com> Co-authored-by: Chandler Carruth <chandlerc@gmail.com> Co-authored-by: Carbon Infra Bot <carbon-external-infra@google.com>
This commit is contained in:
co-authored by
Josh L
Chandler Carruth
Carbon Infra Bot
parent
1b96e40b63
commit
ed863d6eae