mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-25 20:00:13 +01:00
If an impl lookup finds a final result, cache that and reuse it if we perform the same lookup later. In addition to reducing repeated work, this allows us to produce the same result for repeated lookups that find a C++ operator. This isn't a great solution to that problem, as it's not clear how to extend it to behave correctly across import, but we don't have a solution for that for C++ interop in general.