mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Update impl handling to more closely match other kinds of declaration, including support for declaring and defining gneeric `impl`s. When of performing redeclaration lookup for impls by looking for the self and constraint type, produce a list of impls rather than a single impl because it's possible for there to be multiple impls with different deduced parameters but the same self type and constraint. Following #3763, only consider impls to be redeclarations if they're spelled the same, not just if they have the same self and constraint types. No support yet for impl selection to deduce the arguments of a generic impl. --------- Co-authored-by: Jon Ross-Perkins <jperkins@google.com>